AWS SDK for C++  1.9.175
AWS SDK for C++
EnvironmentLifecycle.h
Go to the documentation of this file.
1 
6 #pragma once
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 
34  {
35  public:
40 
41 
51  inline const EnvironmentLifecycleStatus& GetStatus() const{ return m_status; }
52 
62  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 
73  inline void SetStatus(const EnvironmentLifecycleStatus& value) { m_statusHasBeenSet = true; m_status = value; }
74 
84  inline void SetStatus(EnvironmentLifecycleStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
85 
95  inline EnvironmentLifecycle& WithStatus(const EnvironmentLifecycleStatus& value) { SetStatus(value); return *this;}
96 
106  inline EnvironmentLifecycle& WithStatus(EnvironmentLifecycleStatus&& value) { SetStatus(std::move(value)); return *this;}
107 
108 
112  inline const Aws::String& GetReason() const{ return m_reason; }
113 
117  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
118 
122  inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
123 
127  inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
128 
132  inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
133 
137  inline EnvironmentLifecycle& WithReason(const Aws::String& value) { SetReason(value); return *this;}
138 
142  inline EnvironmentLifecycle& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
143 
147  inline EnvironmentLifecycle& WithReason(const char* value) { SetReason(value); return *this;}
148 
149 
154  inline const Aws::String& GetFailureResource() const{ return m_failureResource; }
155 
160  inline bool FailureResourceHasBeenSet() const { return m_failureResourceHasBeenSet; }
161 
166  inline void SetFailureResource(const Aws::String& value) { m_failureResourceHasBeenSet = true; m_failureResource = value; }
167 
172  inline void SetFailureResource(Aws::String&& value) { m_failureResourceHasBeenSet = true; m_failureResource = std::move(value); }
173 
178  inline void SetFailureResource(const char* value) { m_failureResourceHasBeenSet = true; m_failureResource.assign(value); }
179 
184  inline EnvironmentLifecycle& WithFailureResource(const Aws::String& value) { SetFailureResource(value); return *this;}
185 
190  inline EnvironmentLifecycle& WithFailureResource(Aws::String&& value) { SetFailureResource(std::move(value)); return *this;}
191 
196  inline EnvironmentLifecycle& WithFailureResource(const char* value) { SetFailureResource(value); return *this;}
197 
198  private:
199 
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
Aws::Cloud9::Model::EnvironmentLifecycle::WithReason
EnvironmentLifecycle & WithReason(const Aws::String &value)
Definition: EnvironmentLifecycle.h:137
Aws::Cloud9::Model::EnvironmentLifecycle::SetStatus
void SetStatus(EnvironmentLifecycleStatus &&value)
Definition: EnvironmentLifecycle.h:84
Aws::Cloud9::Model::EnvironmentLifecycle::EnvironmentLifecycle
EnvironmentLifecycle(Aws::Utils::Json::JsonView jsonValue)
Aws::Cloud9::Model::EnvironmentLifecycle::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: EnvironmentLifecycle.h:117
AWS_CLOUD9_API
#define AWS_CLOUD9_API
Definition: Cloud9_EXPORTS.h:28
Aws::Cloud9::Model::EnvironmentLifecycle::SetReason
void SetReason(const char *value)
Definition: EnvironmentLifecycle.h:132
Aws::Cloud9::Model::EnvironmentLifecycle::operator=
EnvironmentLifecycle & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Cloud9::Model::EnvironmentLifecycle::FailureResourceHasBeenSet
bool FailureResourceHasBeenSet() const
Definition: EnvironmentLifecycle.h:160
Aws::Cloud9::Model::EnvironmentLifecycle::WithReason
EnvironmentLifecycle & WithReason(const char *value)
Definition: EnvironmentLifecycle.h:147
Aws::Cloud9::Model::EnvironmentLifecycle
Definition: EnvironmentLifecycle.h:34
Aws::Cloud9::Model::EnvironmentLifecycle::SetReason
void SetReason(Aws::String &&value)
Definition: EnvironmentLifecycle.h:127
Aws::Cloud9::Model::EnvironmentLifecycle::WithStatus
EnvironmentLifecycle & WithStatus(const EnvironmentLifecycleStatus &value)
Definition: EnvironmentLifecycle.h:95
Aws::Cloud9::Model::EnvironmentLifecycle::WithReason
EnvironmentLifecycle & WithReason(Aws::String &&value)
Definition: EnvironmentLifecycle.h:142
Aws::Cloud9::Model::EnvironmentLifecycle::WithFailureResource
EnvironmentLifecycle & WithFailureResource(const Aws::String &value)
Definition: EnvironmentLifecycle.h:184
Aws::Cloud9::Model::EnvironmentLifecycle::WithFailureResource
EnvironmentLifecycle & WithFailureResource(const char *value)
Definition: EnvironmentLifecycle.h:196
EnvironmentLifecycleStatus.h
Aws::Cloud9::Model::EnvironmentLifecycle::SetReason
void SetReason(const Aws::String &value)
Definition: EnvironmentLifecycle.h:122
Aws::Cloud9::Model::EnvironmentLifecycle::WithStatus
EnvironmentLifecycle & WithStatus(EnvironmentLifecycleStatus &&value)
Definition: EnvironmentLifecycle.h:106
Aws::Cloud9::Model::EnvironmentLifecycle::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: EnvironmentLifecycle.h:62
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Cloud9::Model::EnvironmentLifecycle::SetFailureResource
void SetFailureResource(const char *value)
Definition: EnvironmentLifecycle.h:178
Aws::Cloud9::Model::EnvironmentLifecycle::GetFailureResource
const Aws::String & GetFailureResource() const
Definition: EnvironmentLifecycle.h:154
Aws::Cloud9::Model::EnvironmentLifecycle::GetStatus
const EnvironmentLifecycleStatus & GetStatus() const
Definition: EnvironmentLifecycle.h:51
Aws::Cloud9::Model::EnvironmentLifecycle::SetFailureResource
void SetFailureResource(const Aws::String &value)
Definition: EnvironmentLifecycle.h:166
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Cloud9::Model::EnvironmentLifecycle::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Cloud9::Model::EnvironmentLifecycle::EnvironmentLifecycle
EnvironmentLifecycle()
Aws::Cloud9::Model::EnvironmentLifecycleStatus
EnvironmentLifecycleStatus
Definition: EnvironmentLifecycleStatus.h:17
Aws::Cloud9::Model::EnvironmentLifecycle::SetStatus
void SetStatus(const EnvironmentLifecycleStatus &value)
Definition: EnvironmentLifecycle.h:73
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Cloud9::Model::EnvironmentLifecycle::GetReason
const Aws::String & GetReason() const
Definition: EnvironmentLifecycle.h:112
Aws::Cloud9::Model::EnvironmentLifecycle::WithFailureResource
EnvironmentLifecycle & WithFailureResource(Aws::String &&value)
Definition: EnvironmentLifecycle.h:190
Cloud9_EXPORTS.h
Aws::Cloud9::Model::EnvironmentLifecycle::SetFailureResource
void SetFailureResource(Aws::String &&value)
Definition: EnvironmentLifecycle.h:172