AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
IpAddressMember.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ssm-sap/SsmSap_EXPORTS.h>
9#include <aws/ssm-sap/model/AllocationType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SsmSap {
21namespace Model {
22
29 public:
30 AWS_SSMSAP_API IpAddressMember() = default;
33 AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
40 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
41 template <typename IpAddressT = Aws::String>
42 void SetIpAddress(IpAddressT&& value) {
43 m_ipAddressHasBeenSet = true;
44 m_ipAddress = std::forward<IpAddressT>(value);
45 }
46 template <typename IpAddressT = Aws::String>
47 IpAddressMember& WithIpAddress(IpAddressT&& value) {
48 SetIpAddress(std::forward<IpAddressT>(value));
49 return *this;
50 }
52
54
57 inline bool GetPrimary() const { return m_primary; }
58 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
59 inline void SetPrimary(bool value) {
60 m_primaryHasBeenSet = true;
61 m_primary = value;
62 }
63 inline IpAddressMember& WithPrimary(bool value) {
64 SetPrimary(value);
65 return *this;
66 }
68
70
73 inline AllocationType GetAllocationType() const { return m_allocationType; }
74 inline bool AllocationTypeHasBeenSet() const { return m_allocationTypeHasBeenSet; }
75 inline void SetAllocationType(AllocationType value) {
76 m_allocationTypeHasBeenSet = true;
77 m_allocationType = value;
78 }
80 SetAllocationType(value);
81 return *this;
82 }
84 private:
85 Aws::String m_ipAddress;
86
87 bool m_primary{false};
88
90 bool m_ipAddressHasBeenSet = false;
91 bool m_primaryHasBeenSet = false;
92 bool m_allocationTypeHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace SsmSap
97} // namespace Aws
AWS_SSMSAP_API IpAddressMember & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIpAddress(IpAddressT &&value)
IpAddressMember & WithPrimary(bool value)
AWS_SSMSAP_API IpAddressMember()=default
IpAddressMember & WithIpAddress(IpAddressT &&value)
IpAddressMember & WithAllocationType(AllocationType value)
AWS_SSMSAP_API IpAddressMember(Aws::Utils::Json::JsonView jsonValue)
AllocationType GetAllocationType() const
void SetAllocationType(AllocationType value)
const Aws::String & GetIpAddress() const
AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue