AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
VersionInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ECS {
20namespace Model {
21
29 public:
30 AWS_ECS_API VersionInfo() = default;
34
36
39 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
40 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
41 template <typename AgentVersionT = Aws::String>
42 void SetAgentVersion(AgentVersionT&& value) {
43 m_agentVersionHasBeenSet = true;
44 m_agentVersion = std::forward<AgentVersionT>(value);
45 }
46 template <typename AgentVersionT = Aws::String>
47 VersionInfo& WithAgentVersion(AgentVersionT&& value) {
48 SetAgentVersion(std::forward<AgentVersionT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetAgentHash() const { return m_agentHash; }
60 inline bool AgentHashHasBeenSet() const { return m_agentHashHasBeenSet; }
61 template <typename AgentHashT = Aws::String>
62 void SetAgentHash(AgentHashT&& value) {
63 m_agentHashHasBeenSet = true;
64 m_agentHash = std::forward<AgentHashT>(value);
65 }
66 template <typename AgentHashT = Aws::String>
67 VersionInfo& WithAgentHash(AgentHashT&& value) {
68 SetAgentHash(std::forward<AgentHashT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDockerVersion() const { return m_dockerVersion; }
78 inline bool DockerVersionHasBeenSet() const { return m_dockerVersionHasBeenSet; }
79 template <typename DockerVersionT = Aws::String>
80 void SetDockerVersion(DockerVersionT&& value) {
81 m_dockerVersionHasBeenSet = true;
82 m_dockerVersion = std::forward<DockerVersionT>(value);
83 }
84 template <typename DockerVersionT = Aws::String>
85 VersionInfo& WithDockerVersion(DockerVersionT&& value) {
86 SetDockerVersion(std::forward<DockerVersionT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_agentVersion;
92
93 Aws::String m_agentHash;
94
95 Aws::String m_dockerVersion;
96 bool m_agentVersionHasBeenSet = false;
97 bool m_agentHashHasBeenSet = false;
98 bool m_dockerVersionHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace ECS
103} // namespace Aws
void SetAgentVersion(AgentVersionT &&value)
Definition VersionInfo.h:42
AWS_ECS_API VersionInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
bool DockerVersionHasBeenSet() const
Definition VersionInfo.h:78
VersionInfo & WithAgentVersion(AgentVersionT &&value)
Definition VersionInfo.h:47
void SetDockerVersion(DockerVersionT &&value)
Definition VersionInfo.h:80
AWS_ECS_API VersionInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAgentHash() const
Definition VersionInfo.h:59
const Aws::String & GetAgentVersion() const
Definition VersionInfo.h:39
void SetAgentHash(AgentHashT &&value)
Definition VersionInfo.h:62
bool AgentVersionHasBeenSet() const
Definition VersionInfo.h:40
VersionInfo & WithAgentHash(AgentHashT &&value)
Definition VersionInfo.h:67
VersionInfo & WithDockerVersion(DockerVersionT &&value)
Definition VersionInfo.h:85
AWS_ECS_API VersionInfo()=default
const Aws::String & GetDockerVersion() const
Definition VersionInfo.h:77
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue