AWS SDK for C++  1.9.160
AWS SDK for C++
VersionInfo.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ECS
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetAgentVersion() const{ return m_agentVersion; }
45 
49  inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
50 
54  inline void SetAgentVersion(const Aws::String& value) { m_agentVersionHasBeenSet = true; m_agentVersion = value; }
55 
59  inline void SetAgentVersion(Aws::String&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::move(value); }
60 
64  inline void SetAgentVersion(const char* value) { m_agentVersionHasBeenSet = true; m_agentVersion.assign(value); }
65 
69  inline VersionInfo& WithAgentVersion(const Aws::String& value) { SetAgentVersion(value); return *this;}
70 
74  inline VersionInfo& WithAgentVersion(Aws::String&& value) { SetAgentVersion(std::move(value)); return *this;}
75 
79  inline VersionInfo& WithAgentVersion(const char* value) { SetAgentVersion(value); return *this;}
80 
81 
87  inline const Aws::String& GetAgentHash() const{ return m_agentHash; }
88 
94  inline bool AgentHashHasBeenSet() const { return m_agentHashHasBeenSet; }
95 
101  inline void SetAgentHash(const Aws::String& value) { m_agentHashHasBeenSet = true; m_agentHash = value; }
102 
108  inline void SetAgentHash(Aws::String&& value) { m_agentHashHasBeenSet = true; m_agentHash = std::move(value); }
109 
115  inline void SetAgentHash(const char* value) { m_agentHashHasBeenSet = true; m_agentHash.assign(value); }
116 
122  inline VersionInfo& WithAgentHash(const Aws::String& value) { SetAgentHash(value); return *this;}
123 
129  inline VersionInfo& WithAgentHash(Aws::String&& value) { SetAgentHash(std::move(value)); return *this;}
130 
136  inline VersionInfo& WithAgentHash(const char* value) { SetAgentHash(value); return *this;}
137 
138 
142  inline const Aws::String& GetDockerVersion() const{ return m_dockerVersion; }
143 
147  inline bool DockerVersionHasBeenSet() const { return m_dockerVersionHasBeenSet; }
148 
152  inline void SetDockerVersion(const Aws::String& value) { m_dockerVersionHasBeenSet = true; m_dockerVersion = value; }
153 
157  inline void SetDockerVersion(Aws::String&& value) { m_dockerVersionHasBeenSet = true; m_dockerVersion = std::move(value); }
158 
162  inline void SetDockerVersion(const char* value) { m_dockerVersionHasBeenSet = true; m_dockerVersion.assign(value); }
163 
167  inline VersionInfo& WithDockerVersion(const Aws::String& value) { SetDockerVersion(value); return *this;}
168 
172  inline VersionInfo& WithDockerVersion(Aws::String&& value) { SetDockerVersion(std::move(value)); return *this;}
173 
177  inline VersionInfo& WithDockerVersion(const char* value) { SetDockerVersion(value); return *this;}
178 
179  private:
180 
181  Aws::String m_agentVersion;
182  bool m_agentVersionHasBeenSet;
183 
184  Aws::String m_agentHash;
185  bool m_agentHashHasBeenSet;
186 
187  Aws::String m_dockerVersion;
188  bool m_dockerVersionHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace ECS
193 } // namespace Aws
Aws::ECS::Model::VersionInfo::VersionInfo
VersionInfo()
Aws::ECS::Model::VersionInfo::SetAgentVersion
void SetAgentVersion(Aws::String &&value)
Definition: VersionInfo.h:59
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::VersionInfo::WithAgentVersion
VersionInfo & WithAgentVersion(Aws::String &&value)
Definition: VersionInfo.h:74
Aws::ECS::Model::VersionInfo::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::VersionInfo::AgentVersionHasBeenSet
bool AgentVersionHasBeenSet() const
Definition: VersionInfo.h:49
Aws::ECS::Model::VersionInfo::GetAgentVersion
const Aws::String & GetAgentVersion() const
Definition: VersionInfo.h:44
Aws::ECS::Model::VersionInfo::GetDockerVersion
const Aws::String & GetDockerVersion() const
Definition: VersionInfo.h:142
Aws::ECS::Model::VersionInfo::DockerVersionHasBeenSet
bool DockerVersionHasBeenSet() const
Definition: VersionInfo.h:147
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::VersionInfo::SetAgentVersion
void SetAgentVersion(const Aws::String &value)
Definition: VersionInfo.h:54
Aws::ECS::Model::VersionInfo::SetAgentVersion
void SetAgentVersion(const char *value)
Definition: VersionInfo.h:64
Aws::ECS::Model::VersionInfo::WithDockerVersion
VersionInfo & WithDockerVersion(const Aws::String &value)
Definition: VersionInfo.h:167
Aws::ECS::Model::VersionInfo::SetDockerVersion
void SetDockerVersion(Aws::String &&value)
Definition: VersionInfo.h:157
Aws::ECS::Model::VersionInfo::WithAgentHash
VersionInfo & WithAgentHash(const char *value)
Definition: VersionInfo.h:136
Aws::ECS::Model::VersionInfo::WithDockerVersion
VersionInfo & WithDockerVersion(const char *value)
Definition: VersionInfo.h:177
Aws::ECS::Model::VersionInfo::WithAgentHash
VersionInfo & WithAgentHash(const Aws::String &value)
Definition: VersionInfo.h:122
Aws::ECS::Model::VersionInfo::SetAgentHash
void SetAgentHash(const Aws::String &value)
Definition: VersionInfo.h:101
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::VersionInfo::WithDockerVersion
VersionInfo & WithDockerVersion(Aws::String &&value)
Definition: VersionInfo.h:172
Aws::ECS::Model::VersionInfo::AgentHashHasBeenSet
bool AgentHashHasBeenSet() const
Definition: VersionInfo.h:94
Aws::ECS::Model::VersionInfo::WithAgentHash
VersionInfo & WithAgentHash(Aws::String &&value)
Definition: VersionInfo.h:129
Aws::ECS::Model::VersionInfo::SetAgentHash
void SetAgentHash(const char *value)
Definition: VersionInfo.h:115
Aws::ECS::Model::VersionInfo::WithAgentVersion
VersionInfo & WithAgentVersion(const Aws::String &value)
Definition: VersionInfo.h:69
Aws::ECS::Model::VersionInfo::SetDockerVersion
void SetDockerVersion(const Aws::String &value)
Definition: VersionInfo.h:152
Aws::ECS::Model::VersionInfo::SetDockerVersion
void SetDockerVersion(const char *value)
Definition: VersionInfo.h:162
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::ECS::Model::VersionInfo::GetAgentHash
const Aws::String & GetAgentHash() const
Definition: VersionInfo.h:87
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::VersionInfo::SetAgentHash
void SetAgentHash(Aws::String &&value)
Definition: VersionInfo.h:108
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::VersionInfo::WithAgentVersion
VersionInfo & WithAgentVersion(const char *value)
Definition: VersionInfo.h:79
Aws::ECS::Model::VersionInfo::operator=
VersionInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::VersionInfo
Definition: VersionInfo.h:33
Aws::ECS::Model::VersionInfo::VersionInfo
VersionInfo(Aws::Utils::Json::JsonView jsonValue)
ECS_EXPORTS.h