AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssociatedHost.h
1
6#pragma once
7#include <aws/ssm-sap/SsmSap_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm-sap/model/IpAddressMember.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SsmSap
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SSMSAP_API AssociatedHost();
38 AWS_SSMSAP_API AssociatedHost(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetHostname() const{ return m_hostname; }
48 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
49 inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
50 inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); }
51 inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); }
52 inline AssociatedHost& WithHostname(const Aws::String& value) { SetHostname(value); return *this;}
53 inline AssociatedHost& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;}
54 inline AssociatedHost& WithHostname(const char* value) { SetHostname(value); return *this;}
56
58
61 inline const Aws::String& GetEc2InstanceId() const{ return m_ec2InstanceId; }
62 inline bool Ec2InstanceIdHasBeenSet() const { return m_ec2InstanceIdHasBeenSet; }
63 inline void SetEc2InstanceId(const Aws::String& value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId = value; }
64 inline void SetEc2InstanceId(Aws::String&& value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId = std::move(value); }
65 inline void SetEc2InstanceId(const char* value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId.assign(value); }
66 inline AssociatedHost& WithEc2InstanceId(const Aws::String& value) { SetEc2InstanceId(value); return *this;}
67 inline AssociatedHost& WithEc2InstanceId(Aws::String&& value) { SetEc2InstanceId(std::move(value)); return *this;}
68 inline AssociatedHost& WithEc2InstanceId(const char* value) { SetEc2InstanceId(value); return *this;}
70
72
75 inline const Aws::Vector<IpAddressMember>& GetIpAddresses() const{ return m_ipAddresses; }
76 inline bool IpAddressesHasBeenSet() const { return m_ipAddressesHasBeenSet; }
77 inline void SetIpAddresses(const Aws::Vector<IpAddressMember>& value) { m_ipAddressesHasBeenSet = true; m_ipAddresses = value; }
78 inline void SetIpAddresses(Aws::Vector<IpAddressMember>&& value) { m_ipAddressesHasBeenSet = true; m_ipAddresses = std::move(value); }
79 inline AssociatedHost& WithIpAddresses(const Aws::Vector<IpAddressMember>& value) { SetIpAddresses(value); return *this;}
80 inline AssociatedHost& WithIpAddresses(Aws::Vector<IpAddressMember>&& value) { SetIpAddresses(std::move(value)); return *this;}
81 inline AssociatedHost& AddIpAddresses(const IpAddressMember& value) { m_ipAddressesHasBeenSet = true; m_ipAddresses.push_back(value); return *this; }
82 inline AssociatedHost& AddIpAddresses(IpAddressMember&& value) { m_ipAddressesHasBeenSet = true; m_ipAddresses.push_back(std::move(value)); return *this; }
84
86
89 inline const Aws::String& GetOsVersion() const{ return m_osVersion; }
90 inline bool OsVersionHasBeenSet() const { return m_osVersionHasBeenSet; }
91 inline void SetOsVersion(const Aws::String& value) { m_osVersionHasBeenSet = true; m_osVersion = value; }
92 inline void SetOsVersion(Aws::String&& value) { m_osVersionHasBeenSet = true; m_osVersion = std::move(value); }
93 inline void SetOsVersion(const char* value) { m_osVersionHasBeenSet = true; m_osVersion.assign(value); }
94 inline AssociatedHost& WithOsVersion(const Aws::String& value) { SetOsVersion(value); return *this;}
95 inline AssociatedHost& WithOsVersion(Aws::String&& value) { SetOsVersion(std::move(value)); return *this;}
96 inline AssociatedHost& WithOsVersion(const char* value) { SetOsVersion(value); return *this;}
98 private:
99
100 Aws::String m_hostname;
101 bool m_hostnameHasBeenSet = false;
102
103 Aws::String m_ec2InstanceId;
104 bool m_ec2InstanceIdHasBeenSet = false;
105
106 Aws::Vector<IpAddressMember> m_ipAddresses;
107 bool m_ipAddressesHasBeenSet = false;
108
109 Aws::String m_osVersion;
110 bool m_osVersionHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace SsmSap
115} // namespace Aws
void SetOsVersion(Aws::String &&value)
void SetEc2InstanceId(const Aws::String &value)
void SetOsVersion(const char *value)
AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEc2InstanceId(Aws::String &&value)
AssociatedHost & WithEc2InstanceId(const Aws::String &value)
AWS_SSMSAP_API AssociatedHost(Aws::Utils::Json::JsonView jsonValue)
AssociatedHost & WithEc2InstanceId(const char *value)
void SetIpAddresses(Aws::Vector< IpAddressMember > &&value)
const Aws::String & GetOsVersion() const
AssociatedHost & AddIpAddresses(const IpAddressMember &value)
AssociatedHost & WithIpAddresses(Aws::Vector< IpAddressMember > &&value)
void SetHostname(const Aws::String &value)
AssociatedHost & WithHostname(const Aws::String &value)
AssociatedHost & WithIpAddresses(const Aws::Vector< IpAddressMember > &value)
AssociatedHost & WithOsVersion(Aws::String &&value)
void SetIpAddresses(const Aws::Vector< IpAddressMember > &value)
const Aws::String & GetHostname() const
AssociatedHost & WithHostname(const char *value)
AssociatedHost & WithEc2InstanceId(Aws::String &&value)
AssociatedHost & WithHostname(Aws::String &&value)
void SetHostname(const char *value)
const Aws::Vector< IpAddressMember > & GetIpAddresses() const
AssociatedHost & AddIpAddresses(IpAddressMember &&value)
AssociatedHost & WithOsVersion(const Aws::String &value)
const Aws::String & GetEc2InstanceId() const
AssociatedHost & WithOsVersion(const char *value)
void SetHostname(Aws::String &&value)
void SetEc2InstanceId(const char *value)
void SetOsVersion(const Aws::String &value)
AWS_SSMSAP_API AssociatedHost & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue