AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CustomerGatewayAssociation.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/networkmanager/model/CustomerGatewayAssociationState.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace NetworkManager
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_NETWORKMANAGER_API CustomerGatewayAssociation() = default;
37 AWS_NETWORKMANAGER_API CustomerGatewayAssociation(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetCustomerGatewayArn() const { return m_customerGatewayArn; }
47 inline bool CustomerGatewayArnHasBeenSet() const { return m_customerGatewayArnHasBeenSet; }
48 template<typename CustomerGatewayArnT = Aws::String>
49 void SetCustomerGatewayArn(CustomerGatewayArnT&& value) { m_customerGatewayArnHasBeenSet = true; m_customerGatewayArn = std::forward<CustomerGatewayArnT>(value); }
50 template<typename CustomerGatewayArnT = Aws::String>
51 CustomerGatewayAssociation& WithCustomerGatewayArn(CustomerGatewayArnT&& value) { SetCustomerGatewayArn(std::forward<CustomerGatewayArnT>(value)); return *this;}
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) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::forward<GlobalNetworkIdT>(value); }
62 template<typename GlobalNetworkIdT = Aws::String>
63 CustomerGatewayAssociation& WithGlobalNetworkId(GlobalNetworkIdT&& value) { SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
71 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
72 template<typename DeviceIdT = Aws::String>
73 void SetDeviceId(DeviceIdT&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::forward<DeviceIdT>(value); }
74 template<typename DeviceIdT = Aws::String>
75 CustomerGatewayAssociation& WithDeviceId(DeviceIdT&& value) { SetDeviceId(std::forward<DeviceIdT>(value)); return *this;}
77
79
82 inline const Aws::String& GetLinkId() const { return m_linkId; }
83 inline bool LinkIdHasBeenSet() const { return m_linkIdHasBeenSet; }
84 template<typename LinkIdT = Aws::String>
85 void SetLinkId(LinkIdT&& value) { m_linkIdHasBeenSet = true; m_linkId = std::forward<LinkIdT>(value); }
86 template<typename LinkIdT = Aws::String>
87 CustomerGatewayAssociation& WithLinkId(LinkIdT&& value) { SetLinkId(std::forward<LinkIdT>(value)); return *this;}
89
91
94 inline CustomerGatewayAssociationState GetState() const { return m_state; }
95 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
96 inline void SetState(CustomerGatewayAssociationState value) { m_stateHasBeenSet = true; m_state = value; }
99 private:
100
101 Aws::String m_customerGatewayArn;
102 bool m_customerGatewayArnHasBeenSet = false;
103
104 Aws::String m_globalNetworkId;
105 bool m_globalNetworkIdHasBeenSet = false;
106
107 Aws::String m_deviceId;
108 bool m_deviceIdHasBeenSet = false;
109
110 Aws::String m_linkId;
111 bool m_linkIdHasBeenSet = false;
112
114 bool m_stateHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace NetworkManager
119} // 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