AWS SDK for C++  0.14.3
AWS SDK for C++
VersionInfo.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ecs/ECS_EXPORTS.h>
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace ECS
29 {
30 namespace Model
31 {
32 
38  {
39  public:
40  VersionInfo();
41  VersionInfo(const Aws::Utils::Json::JsonValue& jsonValue);
42  VersionInfo& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetAgentVersion() const{ return m_agentVersion; }
49 
53  inline void SetAgentVersion(const Aws::String& value) { m_agentVersionHasBeenSet = true; m_agentVersion = value; }
54 
58  inline void SetAgentVersion(Aws::String&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = value; }
59 
63  inline void SetAgentVersion(const char* value) { m_agentVersionHasBeenSet = true; m_agentVersion.assign(value); }
64 
68  inline VersionInfo& WithAgentVersion(const Aws::String& value) { SetAgentVersion(value); return *this;}
69 
73  inline VersionInfo& WithAgentVersion(Aws::String&& value) { SetAgentVersion(value); return *this;}
74 
78  inline VersionInfo& WithAgentVersion(const char* value) { SetAgentVersion(value); return *this;}
79 
85  inline const Aws::String& GetAgentHash() const{ return m_agentHash; }
86 
92  inline void SetAgentHash(const Aws::String& value) { m_agentHashHasBeenSet = true; m_agentHash = value; }
93 
99  inline void SetAgentHash(Aws::String&& value) { m_agentHashHasBeenSet = true; m_agentHash = value; }
100 
106  inline void SetAgentHash(const char* value) { m_agentHashHasBeenSet = true; m_agentHash.assign(value); }
107 
113  inline VersionInfo& WithAgentHash(const Aws::String& value) { SetAgentHash(value); return *this;}
114 
120  inline VersionInfo& WithAgentHash(Aws::String&& value) { SetAgentHash(value); return *this;}
121 
127  inline VersionInfo& WithAgentHash(const char* value) { SetAgentHash(value); return *this;}
128 
132  inline const Aws::String& GetDockerVersion() const{ return m_dockerVersion; }
133 
137  inline void SetDockerVersion(const Aws::String& value) { m_dockerVersionHasBeenSet = true; m_dockerVersion = value; }
138 
142  inline void SetDockerVersion(Aws::String&& value) { m_dockerVersionHasBeenSet = true; m_dockerVersion = value; }
143 
147  inline void SetDockerVersion(const char* value) { m_dockerVersionHasBeenSet = true; m_dockerVersion.assign(value); }
148 
152  inline VersionInfo& WithDockerVersion(const Aws::String& value) { SetDockerVersion(value); return *this;}
153 
157  inline VersionInfo& WithDockerVersion(Aws::String&& value) { SetDockerVersion(value); return *this;}
158 
162  inline VersionInfo& WithDockerVersion(const char* value) { SetDockerVersion(value); return *this;}
163 
164  private:
165  Aws::String m_agentVersion;
166  bool m_agentVersionHasBeenSet;
167  Aws::String m_agentHash;
168  bool m_agentHashHasBeenSet;
169  Aws::String m_dockerVersion;
170  bool m_dockerVersionHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace ECS
175 } // namespace Aws
VersionInfo & WithAgentVersion(Aws::String &&value)
Definition: VersionInfo.h:73
VersionInfo & WithAgentVersion(const char *value)
Definition: VersionInfo.h:78
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:37
void SetAgentVersion(Aws::String &&value)
Definition: VersionInfo.h:58
void SetAgentVersion(const char *value)
Definition: VersionInfo.h:63
const Aws::String & GetAgentVersion() const
Definition: VersionInfo.h:48
void SetAgentVersion(const Aws::String &value)
Definition: VersionInfo.h:53
VersionInfo & WithAgentHash(Aws::String &&value)
Definition: VersionInfo.h:120
VersionInfo & WithAgentHash(const char *value)
Definition: VersionInfo.h:127
VersionInfo & WithDockerVersion(Aws::String &&value)
Definition: VersionInfo.h:157
const Aws::String & GetDockerVersion() const
Definition: VersionInfo.h:132
VersionInfo & WithDockerVersion(const Aws::String &value)
Definition: VersionInfo.h:152
VersionInfo & WithAgentHash(const Aws::String &value)
Definition: VersionInfo.h:113
void SetDockerVersion(Aws::String &&value)
Definition: VersionInfo.h:142
void SetAgentHash(const Aws::String &value)
Definition: VersionInfo.h:92
VersionInfo & WithDockerVersion(const char *value)
Definition: VersionInfo.h:162
VersionInfo & WithAgentVersion(const Aws::String &value)
Definition: VersionInfo.h:68
void SetAgentHash(Aws::String &&value)
Definition: VersionInfo.h:99
void SetAgentHash(const char *value)
Definition: VersionInfo.h:106
void SetDockerVersion(const char *value)
Definition: VersionInfo.h:147
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetDockerVersion(const Aws::String &value)
Definition: VersionInfo.h:137
const Aws::String & GetAgentHash() const
Definition: VersionInfo.h:85
JSON (JavaScript Object Notation).