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/EnvironmentLifecycleStatus.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace Utils 15 { 16 namespace Json 17 { 18 class JsonValue; 19 class JsonView; 20 } // namespace Json 21 } // namespace Utils 22 namespace Cloud9 23 { 24 namespace Model 25 { 26 27 /** 28 * <p>Information about the current creation or deletion lifecycle state of an 29 * Cloud9 development environment.</p><p><h3>See Also:</h3> <a 30 * href="http://docs.aws.amazon.com/goto/WebAPI/cloud9-2017-09-23/EnvironmentLifecycle">AWS 31 * API Reference</a></p> 32 */ 33 class AWS_CLOUD9_API EnvironmentLifecycle 34 { 35 public: 36 EnvironmentLifecycle(); 37 EnvironmentLifecycle(Aws::Utils::Json::JsonView jsonValue); 38 EnvironmentLifecycle& operator=(Aws::Utils::Json::JsonView jsonValue); 39 Aws::Utils::Json::JsonValue Jsonize() const; 40 41 42 /** 43 * <p>The current creation or deletion lifecycle state of the environment.</p> <ul> 44 * <li> <p> <code>CREATING</code>: The environment is in the process of being 45 * created.</p> </li> <li> <p> <code>CREATED</code>: The environment was 46 * successfully created.</p> </li> <li> <p> <code>CREATE_FAILED</code>: The 47 * environment failed to be created.</p> </li> <li> <p> <code>DELETING</code>: The 48 * environment is in the process of being deleted.</p> </li> <li> <p> 49 * <code>DELETE_FAILED</code>: The environment failed to delete.</p> </li> </ul> 50 */ GetStatus()51 inline const EnvironmentLifecycleStatus& GetStatus() const{ return m_status; } 52 53 /** 54 * <p>The current creation or deletion lifecycle state of the environment.</p> <ul> 55 * <li> <p> <code>CREATING</code>: The environment is in the process of being 56 * created.</p> </li> <li> <p> <code>CREATED</code>: The environment was 57 * successfully created.</p> </li> <li> <p> <code>CREATE_FAILED</code>: The 58 * environment failed to be created.</p> </li> <li> <p> <code>DELETING</code>: The 59 * environment is in the process of being deleted.</p> </li> <li> <p> 60 * <code>DELETE_FAILED</code>: The environment failed to delete.</p> </li> </ul> 61 */ StatusHasBeenSet()62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } 63 64 /** 65 * <p>The current creation or deletion lifecycle state of the environment.</p> <ul> 66 * <li> <p> <code>CREATING</code>: The environment is in the process of being 67 * created.</p> </li> <li> <p> <code>CREATED</code>: The environment was 68 * successfully created.</p> </li> <li> <p> <code>CREATE_FAILED</code>: The 69 * environment failed to be created.</p> </li> <li> <p> <code>DELETING</code>: The 70 * environment is in the process of being deleted.</p> </li> <li> <p> 71 * <code>DELETE_FAILED</code>: The environment failed to delete.</p> </li> </ul> 72 */ SetStatus(const EnvironmentLifecycleStatus & value)73 inline void SetStatus(const EnvironmentLifecycleStatus& value) { m_statusHasBeenSet = true; m_status = value; } 74 75 /** 76 * <p>The current creation or deletion lifecycle state of the environment.</p> <ul> 77 * <li> <p> <code>CREATING</code>: The environment is in the process of being 78 * created.</p> </li> <li> <p> <code>CREATED</code>: The environment was 79 * successfully created.</p> </li> <li> <p> <code>CREATE_FAILED</code>: The 80 * environment failed to be created.</p> </li> <li> <p> <code>DELETING</code>: The 81 * environment is in the process of being deleted.</p> </li> <li> <p> 82 * <code>DELETE_FAILED</code>: The environment failed to delete.</p> </li> </ul> 83 */ SetStatus(EnvironmentLifecycleStatus && value)84 inline void SetStatus(EnvironmentLifecycleStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } 85 86 /** 87 * <p>The current creation or deletion lifecycle state of the environment.</p> <ul> 88 * <li> <p> <code>CREATING</code>: The environment is in the process of being 89 * created.</p> </li> <li> <p> <code>CREATED</code>: The environment was 90 * successfully created.</p> </li> <li> <p> <code>CREATE_FAILED</code>: The 91 * environment failed to be created.</p> </li> <li> <p> <code>DELETING</code>: The 92 * environment is in the process of being deleted.</p> </li> <li> <p> 93 * <code>DELETE_FAILED</code>: The environment failed to delete.</p> </li> </ul> 94 */ WithStatus(const EnvironmentLifecycleStatus & value)95 inline EnvironmentLifecycle& WithStatus(const EnvironmentLifecycleStatus& value) { SetStatus(value); return *this;} 96 97 /** 98 * <p>The current creation or deletion lifecycle state of the environment.</p> <ul> 99 * <li> <p> <code>CREATING</code>: The environment is in the process of being 100 * created.</p> </li> <li> <p> <code>CREATED</code>: The environment was 101 * successfully created.</p> </li> <li> <p> <code>CREATE_FAILED</code>: The 102 * environment failed to be created.</p> </li> <li> <p> <code>DELETING</code>: The 103 * environment is in the process of being deleted.</p> </li> <li> <p> 104 * <code>DELETE_FAILED</code>: The environment failed to delete.</p> </li> </ul> 105 */ WithStatus(EnvironmentLifecycleStatus && value)106 inline EnvironmentLifecycle& WithStatus(EnvironmentLifecycleStatus&& value) { SetStatus(std::move(value)); return *this;} 107 108 109 /** 110 * <p>Any informational message about the lifecycle state of the environment.</p> 111 */ GetReason()112 inline const Aws::String& GetReason() const{ return m_reason; } 113 114 /** 115 * <p>Any informational message about the lifecycle state of the environment.</p> 116 */ ReasonHasBeenSet()117 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } 118 119 /** 120 * <p>Any informational message about the lifecycle state of the environment.</p> 121 */ SetReason(const Aws::String & value)122 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } 123 124 /** 125 * <p>Any informational message about the lifecycle state of the environment.</p> 126 */ SetReason(Aws::String && value)127 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } 128 129 /** 130 * <p>Any informational message about the lifecycle state of the environment.</p> 131 */ SetReason(const char * value)132 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } 133 134 /** 135 * <p>Any informational message about the lifecycle state of the environment.</p> 136 */ WithReason(const Aws::String & value)137 inline EnvironmentLifecycle& WithReason(const Aws::String& value) { SetReason(value); return *this;} 138 139 /** 140 * <p>Any informational message about the lifecycle state of the environment.</p> 141 */ WithReason(Aws::String && value)142 inline EnvironmentLifecycle& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} 143 144 /** 145 * <p>Any informational message about the lifecycle state of the environment.</p> 146 */ WithReason(const char * value)147 inline EnvironmentLifecycle& WithReason(const char* value) { SetReason(value); return *this;} 148 149 150 /** 151 * <p>If the environment failed to delete, the Amazon Resource Name (ARN) of the 152 * related Amazon Web Services resource.</p> 153 */ GetFailureResource()154 inline const Aws::String& GetFailureResource() const{ return m_failureResource; } 155 156 /** 157 * <p>If the environment failed to delete, the Amazon Resource Name (ARN) of the 158 * related Amazon Web Services resource.</p> 159 */ FailureResourceHasBeenSet()160 inline bool FailureResourceHasBeenSet() const { return m_failureResourceHasBeenSet; } 161 162 /** 163 * <p>If the environment failed to delete, the Amazon Resource Name (ARN) of the 164 * related Amazon Web Services resource.</p> 165 */ SetFailureResource(const Aws::String & value)166 inline void SetFailureResource(const Aws::String& value) { m_failureResourceHasBeenSet = true; m_failureResource = value; } 167 168 /** 169 * <p>If the environment failed to delete, the Amazon Resource Name (ARN) of the 170 * related Amazon Web Services resource.</p> 171 */ SetFailureResource(Aws::String && value)172 inline void SetFailureResource(Aws::String&& value) { m_failureResourceHasBeenSet = true; m_failureResource = std::move(value); } 173 174 /** 175 * <p>If the environment failed to delete, the Amazon Resource Name (ARN) of the 176 * related Amazon Web Services resource.</p> 177 */ SetFailureResource(const char * value)178 inline void SetFailureResource(const char* value) { m_failureResourceHasBeenSet = true; m_failureResource.assign(value); } 179 180 /** 181 * <p>If the environment failed to delete, the Amazon Resource Name (ARN) of the 182 * related Amazon Web Services resource.</p> 183 */ WithFailureResource(const Aws::String & value)184 inline EnvironmentLifecycle& WithFailureResource(const Aws::String& value) { SetFailureResource(value); return *this;} 185 186 /** 187 * <p>If the environment failed to delete, the Amazon Resource Name (ARN) of the 188 * related Amazon Web Services resource.</p> 189 */ WithFailureResource(Aws::String && value)190 inline EnvironmentLifecycle& WithFailureResource(Aws::String&& value) { SetFailureResource(std::move(value)); return *this;} 191 192 /** 193 * <p>If the environment failed to delete, the Amazon Resource Name (ARN) of the 194 * related Amazon Web Services resource.</p> 195 */ WithFailureResource(const char * value)196 inline EnvironmentLifecycle& WithFailureResource(const char* value) { SetFailureResource(value); return *this;} 197 198 private: 199 200 EnvironmentLifecycleStatus m_status; 201 bool m_statusHasBeenSet; 202 203 Aws::String m_reason; 204 bool m_reasonHasBeenSet; 205 206 Aws::String m_failureResource; 207 bool m_failureResourceHasBeenSet; 208 }; 209 210 } // namespace Model 211 } // namespace Cloud9 212 } // namespace Aws 213