AWS SDK for C++  1.9.156
AWS SDK for C++
ManagedAgent.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace ECS
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::Utils::DateTime& GetLastStartedAt() const{ return m_lastStartedAt; }
47 
51  inline bool LastStartedAtHasBeenSet() const { return m_lastStartedAtHasBeenSet; }
52 
56  inline void SetLastStartedAt(const Aws::Utils::DateTime& value) { m_lastStartedAtHasBeenSet = true; m_lastStartedAt = value; }
57 
61  inline void SetLastStartedAt(Aws::Utils::DateTime&& value) { m_lastStartedAtHasBeenSet = true; m_lastStartedAt = std::move(value); }
62 
66  inline ManagedAgent& WithLastStartedAt(const Aws::Utils::DateTime& value) { SetLastStartedAt(value); return *this;}
67 
71  inline ManagedAgent& WithLastStartedAt(Aws::Utils::DateTime&& value) { SetLastStartedAt(std::move(value)); return *this;}
72 
73 
78  inline const ManagedAgentName& GetName() const{ return m_name; }
79 
84  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
85 
90  inline void SetName(const ManagedAgentName& value) { m_nameHasBeenSet = true; m_name = value; }
91 
96  inline void SetName(ManagedAgentName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
97 
102  inline ManagedAgent& WithName(const ManagedAgentName& value) { SetName(value); return *this;}
103 
108  inline ManagedAgent& WithName(ManagedAgentName&& value) { SetName(std::move(value)); return *this;}
109 
110 
114  inline const Aws::String& GetReason() const{ return m_reason; }
115 
119  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
120 
124  inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
125 
129  inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
130 
134  inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
135 
139  inline ManagedAgent& WithReason(const Aws::String& value) { SetReason(value); return *this;}
140 
144  inline ManagedAgent& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
145 
149  inline ManagedAgent& WithReason(const char* value) { SetReason(value); return *this;}
150 
151 
155  inline const Aws::String& GetLastStatus() const{ return m_lastStatus; }
156 
160  inline bool LastStatusHasBeenSet() const { return m_lastStatusHasBeenSet; }
161 
165  inline void SetLastStatus(const Aws::String& value) { m_lastStatusHasBeenSet = true; m_lastStatus = value; }
166 
170  inline void SetLastStatus(Aws::String&& value) { m_lastStatusHasBeenSet = true; m_lastStatus = std::move(value); }
171 
175  inline void SetLastStatus(const char* value) { m_lastStatusHasBeenSet = true; m_lastStatus.assign(value); }
176 
180  inline ManagedAgent& WithLastStatus(const Aws::String& value) { SetLastStatus(value); return *this;}
181 
185  inline ManagedAgent& WithLastStatus(Aws::String&& value) { SetLastStatus(std::move(value)); return *this;}
186 
190  inline ManagedAgent& WithLastStatus(const char* value) { SetLastStatus(value); return *this;}
191 
192  private:
193 
194  Aws::Utils::DateTime m_lastStartedAt;
195  bool m_lastStartedAtHasBeenSet;
196 
197  ManagedAgentName m_name;
198  bool m_nameHasBeenSet;
199 
200  Aws::String m_reason;
201  bool m_reasonHasBeenSet;
202 
203  Aws::String m_lastStatus;
204  bool m_lastStatusHasBeenSet;
205  };
206 
207 } // namespace Model
208 } // namespace ECS
209 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::ManagedAgent::WithReason
ManagedAgent & WithReason(Aws::String &&value)
Definition: ManagedAgent.h:144
Aws::ECS::Model::ManagedAgent::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ManagedAgent.h:84
Aws::ECS::Model::ManagedAgent::WithLastStatus
ManagedAgent & WithLastStatus(const char *value)
Definition: ManagedAgent.h:190
DateTime.h
Aws::ECS::Model::ManagedAgent::SetLastStatus
void SetLastStatus(Aws::String &&value)
Definition: ManagedAgent.h:170
Aws::ECS::Model::ManagedAgent::LastStatusHasBeenSet
bool LastStatusHasBeenSet() const
Definition: ManagedAgent.h:160
Aws::ECS::Model::ManagedAgent::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: ManagedAgent.h:119
Aws::ECS::Model::ManagedAgent::GetReason
const Aws::String & GetReason() const
Definition: ManagedAgent.h:114
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::ManagedAgent
Definition: ManagedAgent.h:35
Aws::ECS::Model::ManagedAgent::SetName
void SetName(ManagedAgentName &&value)
Definition: ManagedAgent.h:96
ManagedAgentName.h
Aws::ECS::Model::ManagedAgent::SetLastStartedAt
void SetLastStartedAt(Aws::Utils::DateTime &&value)
Definition: ManagedAgent.h:61
Aws::ECS::Model::ManagedAgent::WithLastStatus
ManagedAgent & WithLastStatus(const Aws::String &value)
Definition: ManagedAgent.h:180
Aws::ECS::Model::ManagedAgent::WithName
ManagedAgent & WithName(ManagedAgentName &&value)
Definition: ManagedAgent.h:108
Aws::ECS::Model::ManagedAgent::GetLastStartedAt
const Aws::Utils::DateTime & GetLastStartedAt() const
Definition: ManagedAgent.h:46
Aws::ECS::Model::ManagedAgent::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::ManagedAgentName
ManagedAgentName
Definition: ManagedAgentName.h:17
Aws::ECS::Model::ManagedAgent::SetLastStatus
void SetLastStatus(const char *value)
Definition: ManagedAgent.h:175
Aws::ECS::Model::ManagedAgent::LastStartedAtHasBeenSet
bool LastStartedAtHasBeenSet() const
Definition: ManagedAgent.h:51
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::ManagedAgent::WithName
ManagedAgent & WithName(const ManagedAgentName &value)
Definition: ManagedAgent.h:102
Aws::ECS::Model::ManagedAgent::SetLastStatus
void SetLastStatus(const Aws::String &value)
Definition: ManagedAgent.h:165
Aws::ECS::Model::ManagedAgent::WithReason
ManagedAgent & WithReason(const char *value)
Definition: ManagedAgent.h:149
Aws::ECS::Model::ManagedAgent::SetName
void SetName(const ManagedAgentName &value)
Definition: ManagedAgent.h:90
Aws::ECS::Model::ManagedAgent::WithLastStatus
ManagedAgent & WithLastStatus(Aws::String &&value)
Definition: ManagedAgent.h:185
Aws::ECS::Model::ManagedAgent::SetReason
void SetReason(const Aws::String &value)
Definition: ManagedAgent.h:124
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::ManagedAgent::WithLastStartedAt
ManagedAgent & WithLastStartedAt(const Aws::Utils::DateTime &value)
Definition: ManagedAgent.h:66
Aws::ECS::Model::ManagedAgent::SetReason
void SetReason(Aws::String &&value)
Definition: ManagedAgent.h:129
Aws::ECS::Model::ManagedAgent::ManagedAgent
ManagedAgent()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::ManagedAgent::GetLastStatus
const Aws::String & GetLastStatus() const
Definition: ManagedAgent.h:155
Aws::ECS::Model::ManagedAgent::SetLastStartedAt
void SetLastStartedAt(const Aws::Utils::DateTime &value)
Definition: ManagedAgent.h:56
Aws::ECS::Model::ManagedAgent::WithReason
ManagedAgent & WithReason(const Aws::String &value)
Definition: ManagedAgent.h:139
Aws::ECS::Model::ManagedAgent::operator=
ManagedAgent & operator=(Aws::Utils::Json::JsonView jsonValue)
ECS_EXPORTS.h
Aws::ECS::Model::ManagedAgent::WithLastStartedAt
ManagedAgent & WithLastStartedAt(Aws::Utils::DateTime &&value)
Definition: ManagedAgent.h:71
Aws::ECS::Model::ManagedAgent::GetName
const ManagedAgentName & GetName() const
Definition: ManagedAgent.h:78
Aws::ECS::Model::ManagedAgent::SetReason
void SetReason(const char *value)
Definition: ManagedAgent.h:134
Aws::ECS::Model::ManagedAgent::ManagedAgent
ManagedAgent(Aws::Utils::Json::JsonView jsonValue)