AWS SDK for C++  0.12.9
AWS SDK for C++
InstanceInformation.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/ssm/SSM_EXPORTS.h>
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace SSM
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  InstanceInformation& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
50  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
51 
55  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
56 
60  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
61 
65  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
66 
70  inline InstanceInformation& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
71 
75  inline InstanceInformation& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
76 
80  inline InstanceInformation& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
81 
85  inline const PingStatus& GetPingStatus() const{ return m_pingStatus; }
86 
90  inline void SetPingStatus(const PingStatus& value) { m_pingStatusHasBeenSet = true; m_pingStatus = value; }
91 
95  inline void SetPingStatus(PingStatus&& value) { m_pingStatusHasBeenSet = true; m_pingStatus = value; }
96 
100  inline InstanceInformation& WithPingStatus(const PingStatus& value) { SetPingStatus(value); return *this;}
101 
105  inline InstanceInformation& WithPingStatus(PingStatus&& value) { SetPingStatus(value); return *this;}
106 
110  inline const Aws::Utils::DateTime& GetLastPingDateTime() const{ return m_lastPingDateTime; }
111 
115  inline void SetLastPingDateTime(const Aws::Utils::DateTime& value) { m_lastPingDateTimeHasBeenSet = true; m_lastPingDateTime = value; }
116 
120  inline void SetLastPingDateTime(Aws::Utils::DateTime&& value) { m_lastPingDateTimeHasBeenSet = true; m_lastPingDateTime = value; }
121 
125  inline InstanceInformation& WithLastPingDateTime(const Aws::Utils::DateTime& value) { SetLastPingDateTime(value); return *this;}
126 
130  inline InstanceInformation& WithLastPingDateTime(Aws::Utils::DateTime&& value) { SetLastPingDateTime(value); return *this;}
131 
135  inline const Aws::String& GetAgentVersion() const{ return m_agentVersion; }
136 
140  inline void SetAgentVersion(const Aws::String& value) { m_agentVersionHasBeenSet = true; m_agentVersion = value; }
141 
145  inline void SetAgentVersion(Aws::String&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = value; }
146 
150  inline void SetAgentVersion(const char* value) { m_agentVersionHasBeenSet = true; m_agentVersion.assign(value); }
151 
155  inline InstanceInformation& WithAgentVersion(const Aws::String& value) { SetAgentVersion(value); return *this;}
156 
160  inline InstanceInformation& WithAgentVersion(Aws::String&& value) { SetAgentVersion(value); return *this;}
161 
165  inline InstanceInformation& WithAgentVersion(const char* value) { SetAgentVersion(value); return *this;}
166 
171  inline bool GetIsLatestVersion() const{ return m_isLatestVersion; }
172 
177  inline void SetIsLatestVersion(bool value) { m_isLatestVersionHasBeenSet = true; m_isLatestVersion = value; }
178 
183  inline InstanceInformation& WithIsLatestVersion(bool value) { SetIsLatestVersion(value); return *this;}
184 
188  inline const PlatformType& GetPlatformType() const{ return m_platformType; }
189 
193  inline void SetPlatformType(const PlatformType& value) { m_platformTypeHasBeenSet = true; m_platformType = value; }
194 
198  inline void SetPlatformType(PlatformType&& value) { m_platformTypeHasBeenSet = true; m_platformType = value; }
199 
203  inline InstanceInformation& WithPlatformType(const PlatformType& value) { SetPlatformType(value); return *this;}
204 
208  inline InstanceInformation& WithPlatformType(PlatformType&& value) { SetPlatformType(value); return *this;}
209 
213  inline const Aws::String& GetPlatformName() const{ return m_platformName; }
214 
218  inline void SetPlatformName(const Aws::String& value) { m_platformNameHasBeenSet = true; m_platformName = value; }
219 
223  inline void SetPlatformName(Aws::String&& value) { m_platformNameHasBeenSet = true; m_platformName = value; }
224 
228  inline void SetPlatformName(const char* value) { m_platformNameHasBeenSet = true; m_platformName.assign(value); }
229 
233  inline InstanceInformation& WithPlatformName(const Aws::String& value) { SetPlatformName(value); return *this;}
234 
238  inline InstanceInformation& WithPlatformName(Aws::String&& value) { SetPlatformName(value); return *this;}
239 
243  inline InstanceInformation& WithPlatformName(const char* value) { SetPlatformName(value); return *this;}
244 
248  inline const Aws::String& GetPlatformVersion() const{ return m_platformVersion; }
249 
253  inline void SetPlatformVersion(const Aws::String& value) { m_platformVersionHasBeenSet = true; m_platformVersion = value; }
254 
258  inline void SetPlatformVersion(Aws::String&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = value; }
259 
263  inline void SetPlatformVersion(const char* value) { m_platformVersionHasBeenSet = true; m_platformVersion.assign(value); }
264 
268  inline InstanceInformation& WithPlatformVersion(const Aws::String& value) { SetPlatformVersion(value); return *this;}
269 
273  inline InstanceInformation& WithPlatformVersion(Aws::String&& value) { SetPlatformVersion(value); return *this;}
274 
278  inline InstanceInformation& WithPlatformVersion(const char* value) { SetPlatformVersion(value); return *this;}
279 
280  private:
281  Aws::String m_instanceId;
282  bool m_instanceIdHasBeenSet;
283  PingStatus m_pingStatus;
284  bool m_pingStatusHasBeenSet;
285  Aws::Utils::DateTime m_lastPingDateTime;
286  bool m_lastPingDateTimeHasBeenSet;
287  Aws::String m_agentVersion;
288  bool m_agentVersionHasBeenSet;
289  bool m_isLatestVersion;
290  bool m_isLatestVersionHasBeenSet;
291  PlatformType m_platformType;
292  bool m_platformTypeHasBeenSet;
293  Aws::String m_platformName;
294  bool m_platformNameHasBeenSet;
295  Aws::String m_platformVersion;
296  bool m_platformVersionHasBeenSet;
297  };
298 
299 } // namespace Model
300 } // namespace SSM
301 } // namespace Aws
void SetPlatformVersion(const Aws::String &value)
InstanceInformation & WithPlatformName(const Aws::String &value)
const Aws::String & GetInstanceId() const
void SetInstanceId(const Aws::String &value)
InstanceInformation & WithPingStatus(const PingStatus &value)
InstanceInformation & WithPlatformVersion(Aws::String &&value)
InstanceInformation & WithPlatformName(const char *value)
void SetPlatformVersion(Aws::String &&value)
InstanceInformation & WithAgentVersion(const char *value)
InstanceInformation & WithPingStatus(PingStatus &&value)
const Aws::String & GetAgentVersion() const
void SetPlatformVersion(const char *value)
void SetPingStatus(const PingStatus &value)
void SetPlatformType(const PlatformType &value)
void SetLastPingDateTime(Aws::Utils::DateTime &&value)
InstanceInformation & WithAgentVersion(Aws::String &&value)
const Aws::Utils::DateTime & GetLastPingDateTime() const
const PingStatus & GetPingStatus() const
const Aws::String & GetPlatformVersion() const
InstanceInformation & WithPlatformVersion(const Aws::String &value)
InstanceInformation & WithPlatformVersion(const char *value)
const PlatformType & GetPlatformType() const
InstanceInformation & WithLastPingDateTime(Aws::Utils::DateTime &&value)
InstanceInformation & WithLastPingDateTime(const Aws::Utils::DateTime &value)
void SetPingStatus(PingStatus &&value)
void SetAgentVersion(const Aws::String &value)
void SetPlatformType(PlatformType &&value)
InstanceInformation & WithInstanceId(Aws::String &&value)
InstanceInformation & WithInstanceId(const Aws::String &value)
InstanceInformation & WithIsLatestVersion(bool value)
void SetPlatformName(Aws::String &&value)
void SetInstanceId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetLastPingDateTime(const Aws::Utils::DateTime &value)
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:34
InstanceInformation & WithPlatformName(Aws::String &&value)
InstanceInformation & WithInstanceId(const char *value)
void SetPlatformName(const Aws::String &value)
InstanceInformation & WithAgentVersion(const Aws::String &value)
InstanceInformation & WithPlatformType(const PlatformType &value)
void SetAgentVersion(Aws::String &&value)
const Aws::String & GetPlatformName() const
JSON (JavaScript Object Notation).
InstanceInformation & WithPlatformType(PlatformType &&value)