1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/cloud9/Cloud9_EXPORTS.h> 8 #include <aws/cloud9/model/EnvironmentStatus.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 template<typename RESULT_TYPE> 15 class AmazonWebServiceResult; 16 17 namespace Utils 18 { 19 namespace Json 20 { 21 class JsonValue; 22 } // namespace Json 23 } // namespace Utils 24 namespace Cloud9 25 { 26 namespace Model 27 { 28 class AWS_CLOUD9_API DescribeEnvironmentStatusResult 29 { 30 public: 31 DescribeEnvironmentStatusResult(); 32 DescribeEnvironmentStatusResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 33 DescribeEnvironmentStatusResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 35 36 /** 37 * <p>The status of the environment. Available values include:</p> <ul> <li> <p> 38 * <code>connecting</code>: The environment is connecting.</p> </li> <li> <p> 39 * <code>creating</code>: The environment is being created.</p> </li> <li> <p> 40 * <code>deleting</code>: The environment is being deleted.</p> </li> <li> <p> 41 * <code>error</code>: The environment is in an error state.</p> </li> <li> <p> 42 * <code>ready</code>: The environment is ready.</p> </li> <li> <p> 43 * <code>stopped</code>: The environment is stopped.</p> </li> <li> <p> 44 * <code>stopping</code>: The environment is stopping.</p> </li> </ul> 45 */ GetStatus()46 inline const EnvironmentStatus& GetStatus() const{ return m_status; } 47 48 /** 49 * <p>The status of the environment. Available values include:</p> <ul> <li> <p> 50 * <code>connecting</code>: The environment is connecting.</p> </li> <li> <p> 51 * <code>creating</code>: The environment is being created.</p> </li> <li> <p> 52 * <code>deleting</code>: The environment is being deleted.</p> </li> <li> <p> 53 * <code>error</code>: The environment is in an error state.</p> </li> <li> <p> 54 * <code>ready</code>: The environment is ready.</p> </li> <li> <p> 55 * <code>stopped</code>: The environment is stopped.</p> </li> <li> <p> 56 * <code>stopping</code>: The environment is stopping.</p> </li> </ul> 57 */ SetStatus(const EnvironmentStatus & value)58 inline void SetStatus(const EnvironmentStatus& value) { m_status = value; } 59 60 /** 61 * <p>The status of the environment. Available values include:</p> <ul> <li> <p> 62 * <code>connecting</code>: The environment is connecting.</p> </li> <li> <p> 63 * <code>creating</code>: The environment is being created.</p> </li> <li> <p> 64 * <code>deleting</code>: The environment is being deleted.</p> </li> <li> <p> 65 * <code>error</code>: The environment is in an error state.</p> </li> <li> <p> 66 * <code>ready</code>: The environment is ready.</p> </li> <li> <p> 67 * <code>stopped</code>: The environment is stopped.</p> </li> <li> <p> 68 * <code>stopping</code>: The environment is stopping.</p> </li> </ul> 69 */ SetStatus(EnvironmentStatus && value)70 inline void SetStatus(EnvironmentStatus&& value) { m_status = std::move(value); } 71 72 /** 73 * <p>The status of the environment. Available values include:</p> <ul> <li> <p> 74 * <code>connecting</code>: The environment is connecting.</p> </li> <li> <p> 75 * <code>creating</code>: The environment is being created.</p> </li> <li> <p> 76 * <code>deleting</code>: The environment is being deleted.</p> </li> <li> <p> 77 * <code>error</code>: The environment is in an error state.</p> </li> <li> <p> 78 * <code>ready</code>: The environment is ready.</p> </li> <li> <p> 79 * <code>stopped</code>: The environment is stopped.</p> </li> <li> <p> 80 * <code>stopping</code>: The environment is stopping.</p> </li> </ul> 81 */ WithStatus(const EnvironmentStatus & value)82 inline DescribeEnvironmentStatusResult& WithStatus(const EnvironmentStatus& value) { SetStatus(value); return *this;} 83 84 /** 85 * <p>The status of the environment. Available values include:</p> <ul> <li> <p> 86 * <code>connecting</code>: The environment is connecting.</p> </li> <li> <p> 87 * <code>creating</code>: The environment is being created.</p> </li> <li> <p> 88 * <code>deleting</code>: The environment is being deleted.</p> </li> <li> <p> 89 * <code>error</code>: The environment is in an error state.</p> </li> <li> <p> 90 * <code>ready</code>: The environment is ready.</p> </li> <li> <p> 91 * <code>stopped</code>: The environment is stopped.</p> </li> <li> <p> 92 * <code>stopping</code>: The environment is stopping.</p> </li> </ul> 93 */ WithStatus(EnvironmentStatus && value)94 inline DescribeEnvironmentStatusResult& WithStatus(EnvironmentStatus&& value) { SetStatus(std::move(value)); return *this;} 95 96 97 /** 98 * <p>Any informational message about the status of the environment.</p> 99 */ GetMessage()100 inline const Aws::String& GetMessage() const{ return m_message; } 101 102 /** 103 * <p>Any informational message about the status of the environment.</p> 104 */ SetMessage(const Aws::String & value)105 inline void SetMessage(const Aws::String& value) { m_message = value; } 106 107 /** 108 * <p>Any informational message about the status of the environment.</p> 109 */ SetMessage(Aws::String && value)110 inline void SetMessage(Aws::String&& value) { m_message = std::move(value); } 111 112 /** 113 * <p>Any informational message about the status of the environment.</p> 114 */ SetMessage(const char * value)115 inline void SetMessage(const char* value) { m_message.assign(value); } 116 117 /** 118 * <p>Any informational message about the status of the environment.</p> 119 */ WithMessage(const Aws::String & value)120 inline DescribeEnvironmentStatusResult& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} 121 122 /** 123 * <p>Any informational message about the status of the environment.</p> 124 */ WithMessage(Aws::String && value)125 inline DescribeEnvironmentStatusResult& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} 126 127 /** 128 * <p>Any informational message about the status of the environment.</p> 129 */ WithMessage(const char * value)130 inline DescribeEnvironmentStatusResult& WithMessage(const char* value) { SetMessage(value); return *this;} 131 132 private: 133 134 EnvironmentStatus m_status; 135 136 Aws::String m_message; 137 }; 138 139 } // namespace Model 140 } // namespace Cloud9 141 } // namespace Aws 142