AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
CustomerGatewayAssociation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/networkmanager/NetworkManager_EXPORTS.h>
9#include <aws/networkmanager/model/CustomerGatewayAssociationState.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace NetworkManager {
21namespace Model {
22
30 public:
31 AWS_NETWORKMANAGER_API CustomerGatewayAssociation() = default;
32 AWS_NETWORKMANAGER_API CustomerGatewayAssociation(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetCustomerGatewayArn() const { return m_customerGatewayArn; }
41 inline bool CustomerGatewayArnHasBeenSet() const { return m_customerGatewayArnHasBeenSet; }
42 template <typename CustomerGatewayArnT = Aws::String>
43 void SetCustomerGatewayArn(CustomerGatewayArnT&& value) {
44 m_customerGatewayArnHasBeenSet = true;
45 m_customerGatewayArn = std::forward<CustomerGatewayArnT>(value);
46 }
47 template <typename CustomerGatewayArnT = Aws::String>
48 CustomerGatewayAssociation& WithCustomerGatewayArn(CustomerGatewayArnT&& value) {
49 SetCustomerGatewayArn(std::forward<CustomerGatewayArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetGlobalNetworkId() const { return m_globalNetworkId; }
59 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
60 template <typename GlobalNetworkIdT = Aws::String>
61 void SetGlobalNetworkId(GlobalNetworkIdT&& value) {
62 m_globalNetworkIdHasBeenSet = true;
63 m_globalNetworkId = std::forward<GlobalNetworkIdT>(value);
64 }
65 template <typename GlobalNetworkIdT = Aws::String>
67 SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
77 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
78 template <typename DeviceIdT = Aws::String>
79 void SetDeviceId(DeviceIdT&& value) {
80 m_deviceIdHasBeenSet = true;
81 m_deviceId = std::forward<DeviceIdT>(value);
82 }
83 template <typename DeviceIdT = Aws::String>
85 SetDeviceId(std::forward<DeviceIdT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetLinkId() const { return m_linkId; }
95 inline bool LinkIdHasBeenSet() const { return m_linkIdHasBeenSet; }
96 template <typename LinkIdT = Aws::String>
97 void SetLinkId(LinkIdT&& value) {
98 m_linkIdHasBeenSet = true;
99 m_linkId = std::forward<LinkIdT>(value);
100 }
101 template <typename LinkIdT = Aws::String>
103 SetLinkId(std::forward<LinkIdT>(value));
104 return *this;
105 }
107
109
112 inline CustomerGatewayAssociationState GetState() const { return m_state; }
113 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
115 m_stateHasBeenSet = true;
116 m_state = value;
117 }
119 SetState(value);
120 return *this;
121 }
123 private:
124 Aws::String m_customerGatewayArn;
125
126 Aws::String m_globalNetworkId;
127
128 Aws::String m_deviceId;
129
130 Aws::String m_linkId;
131
133 bool m_customerGatewayArnHasBeenSet = false;
134 bool m_globalNetworkIdHasBeenSet = false;
135 bool m_deviceIdHasBeenSet = false;
136 bool m_linkIdHasBeenSet = false;
137 bool m_stateHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace NetworkManager
142} // namespace Aws
AWS_NETWORKMANAGER_API CustomerGatewayAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKMANAGER_API CustomerGatewayAssociation()=default
AWS_NETWORKMANAGER_API CustomerGatewayAssociation(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
CustomerGatewayAssociation & WithLinkId(LinkIdT &&value)
CustomerGatewayAssociation & WithCustomerGatewayArn(CustomerGatewayArnT &&value)
CustomerGatewayAssociation & WithGlobalNetworkId(GlobalNetworkIdT &&value)
CustomerGatewayAssociation & WithDeviceId(DeviceIdT &&value)
CustomerGatewayAssociation & WithState(CustomerGatewayAssociationState value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue