AWS SDK for C++  0.14.3
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>
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace SSM
33 {
34 namespace Model
35 {
36 
41  {
42  public:
45  InstanceInformation& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
51  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
52 
56  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
57 
61  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
62 
66  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
67 
71  inline InstanceInformation& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
72 
76  inline InstanceInformation& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
77 
81  inline InstanceInformation& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
82 
86  inline const PingStatus& GetPingStatus() const{ return m_pingStatus; }
87 
91  inline void SetPingStatus(const PingStatus& value) { m_pingStatusHasBeenSet = true; m_pingStatus = value; }
92 
96  inline void SetPingStatus(PingStatus&& value) { m_pingStatusHasBeenSet = true; m_pingStatus = value; }
97 
101  inline InstanceInformation& WithPingStatus(const PingStatus& value) { SetPingStatus(value); return *this;}
102 
106  inline InstanceInformation& WithPingStatus(PingStatus&& value) { SetPingStatus(value); return *this;}
107 
111  inline const Aws::Utils::DateTime& GetLastPingDateTime() const{ return m_lastPingDateTime; }
112 
116  inline void SetLastPingDateTime(const Aws::Utils::DateTime& value) { m_lastPingDateTimeHasBeenSet = true; m_lastPingDateTime = value; }
117 
121  inline void SetLastPingDateTime(Aws::Utils::DateTime&& value) { m_lastPingDateTimeHasBeenSet = true; m_lastPingDateTime = value; }
122 
126  inline InstanceInformation& WithLastPingDateTime(const Aws::Utils::DateTime& value) { SetLastPingDateTime(value); return *this;}
127 
131  inline InstanceInformation& WithLastPingDateTime(Aws::Utils::DateTime&& value) { SetLastPingDateTime(value); return *this;}
132 
136  inline const Aws::String& GetAgentVersion() const{ return m_agentVersion; }
137 
141  inline void SetAgentVersion(const Aws::String& value) { m_agentVersionHasBeenSet = true; m_agentVersion = value; }
142 
146  inline void SetAgentVersion(Aws::String&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = value; }
147 
151  inline void SetAgentVersion(const char* value) { m_agentVersionHasBeenSet = true; m_agentVersion.assign(value); }
152 
156  inline InstanceInformation& WithAgentVersion(const Aws::String& value) { SetAgentVersion(value); return *this;}
157 
161  inline InstanceInformation& WithAgentVersion(Aws::String&& value) { SetAgentVersion(value); return *this;}
162 
166  inline InstanceInformation& WithAgentVersion(const char* value) { SetAgentVersion(value); return *this;}
167 
172  inline bool GetIsLatestVersion() const{ return m_isLatestVersion; }
173 
178  inline void SetIsLatestVersion(bool value) { m_isLatestVersionHasBeenSet = true; m_isLatestVersion = value; }
179 
184  inline InstanceInformation& WithIsLatestVersion(bool value) { SetIsLatestVersion(value); return *this;}
185 
189  inline const PlatformType& GetPlatformType() const{ return m_platformType; }
190 
194  inline void SetPlatformType(const PlatformType& value) { m_platformTypeHasBeenSet = true; m_platformType = value; }
195 
199  inline void SetPlatformType(PlatformType&& value) { m_platformTypeHasBeenSet = true; m_platformType = value; }
200 
204  inline InstanceInformation& WithPlatformType(const PlatformType& value) { SetPlatformType(value); return *this;}
205 
209  inline InstanceInformation& WithPlatformType(PlatformType&& value) { SetPlatformType(value); return *this;}
210 
214  inline const Aws::String& GetPlatformName() const{ return m_platformName; }
215 
219  inline void SetPlatformName(const Aws::String& value) { m_platformNameHasBeenSet = true; m_platformName = value; }
220 
224  inline void SetPlatformName(Aws::String&& value) { m_platformNameHasBeenSet = true; m_platformName = value; }
225 
229  inline void SetPlatformName(const char* value) { m_platformNameHasBeenSet = true; m_platformName.assign(value); }
230 
234  inline InstanceInformation& WithPlatformName(const Aws::String& value) { SetPlatformName(value); return *this;}
235 
239  inline InstanceInformation& WithPlatformName(Aws::String&& value) { SetPlatformName(value); return *this;}
240 
244  inline InstanceInformation& WithPlatformName(const char* value) { SetPlatformName(value); return *this;}
245 
249  inline const Aws::String& GetPlatformVersion() const{ return m_platformVersion; }
250 
254  inline void SetPlatformVersion(const Aws::String& value) { m_platformVersionHasBeenSet = true; m_platformVersion = value; }
255 
259  inline void SetPlatformVersion(Aws::String&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = value; }
260 
264  inline void SetPlatformVersion(const char* value) { m_platformVersionHasBeenSet = true; m_platformVersion.assign(value); }
265 
269  inline InstanceInformation& WithPlatformVersion(const Aws::String& value) { SetPlatformVersion(value); return *this;}
270 
274  inline InstanceInformation& WithPlatformVersion(Aws::String&& value) { SetPlatformVersion(value); return *this;}
275 
279  inline InstanceInformation& WithPlatformVersion(const char* value) { SetPlatformVersion(value); return *this;}
280 
284  inline const Aws::String& GetActivationId() const{ return m_activationId; }
285 
289  inline void SetActivationId(const Aws::String& value) { m_activationIdHasBeenSet = true; m_activationId = value; }
290 
294  inline void SetActivationId(Aws::String&& value) { m_activationIdHasBeenSet = true; m_activationId = value; }
295 
299  inline void SetActivationId(const char* value) { m_activationIdHasBeenSet = true; m_activationId.assign(value); }
300 
304  inline InstanceInformation& WithActivationId(const Aws::String& value) { SetActivationId(value); return *this;}
305 
309  inline InstanceInformation& WithActivationId(Aws::String&& value) { SetActivationId(value); return *this;}
310 
314  inline InstanceInformation& WithActivationId(const char* value) { SetActivationId(value); return *this;}
315 
320  inline const Aws::String& GetIamRole() const{ return m_iamRole; }
321 
326  inline void SetIamRole(const Aws::String& value) { m_iamRoleHasBeenSet = true; m_iamRole = value; }
327 
332  inline void SetIamRole(Aws::String&& value) { m_iamRoleHasBeenSet = true; m_iamRole = value; }
333 
338  inline void SetIamRole(const char* value) { m_iamRoleHasBeenSet = true; m_iamRole.assign(value); }
339 
344  inline InstanceInformation& WithIamRole(const Aws::String& value) { SetIamRole(value); return *this;}
345 
350  inline InstanceInformation& WithIamRole(Aws::String&& value) { SetIamRole(value); return *this;}
351 
356  inline InstanceInformation& WithIamRole(const char* value) { SetIamRole(value); return *this;}
357 
361  inline const Aws::Utils::DateTime& GetRegistrationDate() const{ return m_registrationDate; }
362 
366  inline void SetRegistrationDate(const Aws::Utils::DateTime& value) { m_registrationDateHasBeenSet = true; m_registrationDate = value; }
367 
371  inline void SetRegistrationDate(Aws::Utils::DateTime&& value) { m_registrationDateHasBeenSet = true; m_registrationDate = value; }
372 
376  inline InstanceInformation& WithRegistrationDate(const Aws::Utils::DateTime& value) { SetRegistrationDate(value); return *this;}
377 
381  inline InstanceInformation& WithRegistrationDate(Aws::Utils::DateTime&& value) { SetRegistrationDate(value); return *this;}
382 
387  inline const ResourceType& GetResourceType() const{ return m_resourceType; }
388 
393  inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
394 
399  inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
400 
405  inline InstanceInformation& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
406 
411  inline InstanceInformation& WithResourceType(ResourceType&& value) { SetResourceType(value); return *this;}
412 
416  inline const Aws::String& GetName() const{ return m_name; }
417 
421  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
422 
426  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
427 
431  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
432 
436  inline InstanceInformation& WithName(const Aws::String& value) { SetName(value); return *this;}
437 
441  inline InstanceInformation& WithName(Aws::String&& value) { SetName(value); return *this;}
442 
446  inline InstanceInformation& WithName(const char* value) { SetName(value); return *this;}
447 
451  inline const Aws::String& GetIPAddress() const{ return m_iPAddress; }
452 
456  inline void SetIPAddress(const Aws::String& value) { m_iPAddressHasBeenSet = true; m_iPAddress = value; }
457 
461  inline void SetIPAddress(Aws::String&& value) { m_iPAddressHasBeenSet = true; m_iPAddress = value; }
462 
466  inline void SetIPAddress(const char* value) { m_iPAddressHasBeenSet = true; m_iPAddress.assign(value); }
467 
471  inline InstanceInformation& WithIPAddress(const Aws::String& value) { SetIPAddress(value); return *this;}
472 
476  inline InstanceInformation& WithIPAddress(Aws::String&& value) { SetIPAddress(value); return *this;}
477 
481  inline InstanceInformation& WithIPAddress(const char* value) { SetIPAddress(value); return *this;}
482 
486  inline const Aws::String& GetComputerName() const{ return m_computerName; }
487 
491  inline void SetComputerName(const Aws::String& value) { m_computerNameHasBeenSet = true; m_computerName = value; }
492 
496  inline void SetComputerName(Aws::String&& value) { m_computerNameHasBeenSet = true; m_computerName = value; }
497 
501  inline void SetComputerName(const char* value) { m_computerNameHasBeenSet = true; m_computerName.assign(value); }
502 
506  inline InstanceInformation& WithComputerName(const Aws::String& value) { SetComputerName(value); return *this;}
507 
511  inline InstanceInformation& WithComputerName(Aws::String&& value) { SetComputerName(value); return *this;}
512 
516  inline InstanceInformation& WithComputerName(const char* value) { SetComputerName(value); return *this;}
517 
518  private:
519  Aws::String m_instanceId;
520  bool m_instanceIdHasBeenSet;
521  PingStatus m_pingStatus;
522  bool m_pingStatusHasBeenSet;
523  Aws::Utils::DateTime m_lastPingDateTime;
524  bool m_lastPingDateTimeHasBeenSet;
525  Aws::String m_agentVersion;
526  bool m_agentVersionHasBeenSet;
527  bool m_isLatestVersion;
528  bool m_isLatestVersionHasBeenSet;
529  PlatformType m_platformType;
530  bool m_platformTypeHasBeenSet;
531  Aws::String m_platformName;
532  bool m_platformNameHasBeenSet;
533  Aws::String m_platformVersion;
534  bool m_platformVersionHasBeenSet;
535  Aws::String m_activationId;
536  bool m_activationIdHasBeenSet;
537  Aws::String m_iamRole;
538  bool m_iamRoleHasBeenSet;
539  Aws::Utils::DateTime m_registrationDate;
540  bool m_registrationDateHasBeenSet;
541  ResourceType m_resourceType;
542  bool m_resourceTypeHasBeenSet;
543  Aws::String m_name;
544  bool m_nameHasBeenSet;
545  Aws::String m_iPAddress;
546  bool m_iPAddressHasBeenSet;
547  Aws::String m_computerName;
548  bool m_computerNameHasBeenSet;
549  };
550 
551 } // namespace Model
552 } // namespace SSM
553 } // namespace Aws
InstanceInformation & WithResourceType(const ResourceType &value)
InstanceInformation & WithIamRole(const Aws::String &value)
void SetPlatformVersion(const Aws::String &value)
InstanceInformation & WithResourceType(ResourceType &&value)
void SetIPAddress(const Aws::String &value)
InstanceInformation & WithPlatformName(const Aws::String &value)
const Aws::String & GetInstanceId() const
void SetInstanceId(const Aws::String &value)
const ResourceType & GetResourceType() const
InstanceInformation & WithPingStatus(const PingStatus &value)
InstanceInformation & WithIamRole(const char *value)
InstanceInformation & WithPlatformVersion(Aws::String &&value)
InstanceInformation & WithPlatformName(const char *value)
InstanceInformation & WithIPAddress(const char *value)
InstanceInformation & WithActivationId(Aws::String &&value)
InstanceInformation & WithActivationId(const Aws::String &value)
void SetPlatformVersion(Aws::String &&value)
void SetResourceType(ResourceType &&value)
InstanceInformation & WithName(const char *value)
InstanceInformation & WithRegistrationDate(Aws::Utils::DateTime &&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 SetResourceType(const ResourceType &value)
void SetPlatformType(const PlatformType &value)
const Aws::String & GetActivationId() const
void SetLastPingDateTime(Aws::Utils::DateTime &&value)
InstanceInformation & WithAgentVersion(Aws::String &&value)
const Aws::Utils::DateTime & GetLastPingDateTime() const
const Aws::String & GetIamRole() const
const PingStatus & GetPingStatus() const
InstanceInformation & WithComputerName(Aws::String &&value)
const Aws::String & GetPlatformVersion() const
void SetName(const Aws::String &value)
void SetActivationId(Aws::String &&value)
InstanceInformation & WithPlatformVersion(const Aws::String &value)
void SetIPAddress(Aws::String &&value)
InstanceInformation & WithIPAddress(Aws::String &&value)
InstanceInformation & WithPlatformVersion(const char *value)
const PlatformType & GetPlatformType() const
InstanceInformation & WithLastPingDateTime(Aws::Utils::DateTime &&value)
const Aws::String & GetName() const
void SetRegistrationDate(const Aws::Utils::DateTime &value)
InstanceInformation & WithLastPingDateTime(const Aws::Utils::DateTime &value)
void SetPingStatus(PingStatus &&value)
InstanceInformation & WithRegistrationDate(const Aws::Utils::DateTime &value)
void SetAgentVersion(const Aws::String &value)
void SetComputerName(Aws::String &&value)
void SetPlatformType(PlatformType &&value)
InstanceInformation & WithInstanceId(Aws::String &&value)
InstanceInformation & WithIamRole(Aws::String &&value)
InstanceInformation & WithIPAddress(const Aws::String &value)
InstanceInformation & WithComputerName(const char *value)
InstanceInformation & WithComputerName(const Aws::String &value)
void SetActivationId(const Aws::String &value)
InstanceInformation & WithInstanceId(const Aws::String &value)
InstanceInformation & WithIsLatestVersion(bool value)
void SetComputerName(const Aws::String &value)
void SetRegistrationDate(Aws::Utils::DateTime &&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)
void SetIamRole(const Aws::String &value)
InstanceInformation & WithName(Aws::String &&value)
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:37
InstanceInformation & WithPlatformName(Aws::String &&value)
const Aws::Utils::DateTime & GetRegistrationDate() const
InstanceInformation & WithInstanceId(const char *value)
const Aws::String & GetComputerName() const
InstanceInformation & WithActivationId(const char *value)
void SetPlatformName(const Aws::String &value)
InstanceInformation & WithName(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)
const Aws::String & GetIPAddress() const