AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VersionInfo.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECS
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_ECS_API VersionInfo() = default;
39
40
42
45 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
46 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
47 template<typename AgentVersionT = Aws::String>
48 void SetAgentVersion(AgentVersionT&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::forward<AgentVersionT>(value); }
49 template<typename AgentVersionT = Aws::String>
50 VersionInfo& WithAgentVersion(AgentVersionT&& value) { SetAgentVersion(std::forward<AgentVersionT>(value)); return *this;}
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) { m_agentHashHasBeenSet = true; m_agentHash = std::forward<AgentHashT>(value); }
63 template<typename AgentHashT = Aws::String>
64 VersionInfo& WithAgentHash(AgentHashT&& value) { SetAgentHash(std::forward<AgentHashT>(value)); return *this;}
66
68
71 inline const Aws::String& GetDockerVersion() const { return m_dockerVersion; }
72 inline bool DockerVersionHasBeenSet() const { return m_dockerVersionHasBeenSet; }
73 template<typename DockerVersionT = Aws::String>
74 void SetDockerVersion(DockerVersionT&& value) { m_dockerVersionHasBeenSet = true; m_dockerVersion = std::forward<DockerVersionT>(value); }
75 template<typename DockerVersionT = Aws::String>
76 VersionInfo& WithDockerVersion(DockerVersionT&& value) { SetDockerVersion(std::forward<DockerVersionT>(value)); return *this;}
78 private:
79
80 Aws::String m_agentVersion;
81 bool m_agentVersionHasBeenSet = false;
82
83 Aws::String m_agentHash;
84 bool m_agentHashHasBeenSet = false;
85
86 Aws::String m_dockerVersion;
87 bool m_dockerVersionHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace ECS
92} // namespace Aws
void SetAgentVersion(AgentVersionT &&value)
Definition VersionInfo.h:48
AWS_ECS_API VersionInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
bool DockerVersionHasBeenSet() const
Definition VersionInfo.h:72
VersionInfo & WithAgentVersion(AgentVersionT &&value)
Definition VersionInfo.h:50
void SetDockerVersion(DockerVersionT &&value)
Definition VersionInfo.h:74
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:45
void SetAgentHash(AgentHashT &&value)
Definition VersionInfo.h:62
bool AgentVersionHasBeenSet() const
Definition VersionInfo.h:46
VersionInfo & WithAgentHash(AgentHashT &&value)
Definition VersionInfo.h:64
VersionInfo & WithDockerVersion(DockerVersionT &&value)
Definition VersionInfo.h:76
AWS_ECS_API VersionInfo()=default
const Aws::String & GetDockerVersion() const
Definition VersionInfo.h:71
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue