AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCustomerGatewayArn(const Aws::String& value) { m_customerGatewayArnHasBeenSet = true; m_customerGatewayArn = value; }
49 inline void SetCustomerGatewayArn(Aws::String&& value) { m_customerGatewayArnHasBeenSet = true; m_customerGatewayArn = std::move(value); }
50 inline void SetCustomerGatewayArn(const char* value) { m_customerGatewayArnHasBeenSet = true; m_customerGatewayArn.assign(value); }
52 inline CustomerGatewayAssociation& WithCustomerGatewayArn(Aws::String&& value) { SetCustomerGatewayArn(std::move(value)); return *this;}
53 inline CustomerGatewayAssociation& WithCustomerGatewayArn(const char* value) { SetCustomerGatewayArn(value); return *this;}
55
57
60 inline const Aws::String& GetGlobalNetworkId() const{ return m_globalNetworkId; }
61 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
62 inline void SetGlobalNetworkId(const Aws::String& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = value; }
63 inline void SetGlobalNetworkId(Aws::String&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::move(value); }
64 inline void SetGlobalNetworkId(const char* value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId.assign(value); }
66 inline CustomerGatewayAssociation& WithGlobalNetworkId(Aws::String&& value) { SetGlobalNetworkId(std::move(value)); return *this;}
67 inline CustomerGatewayAssociation& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;}
69
71
74 inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
75 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
76 inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
77 inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
78 inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
79 inline CustomerGatewayAssociation& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
80 inline CustomerGatewayAssociation& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
81 inline CustomerGatewayAssociation& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
83
85
88 inline const Aws::String& GetLinkId() const{ return m_linkId; }
89 inline bool LinkIdHasBeenSet() const { return m_linkIdHasBeenSet; }
90 inline void SetLinkId(const Aws::String& value) { m_linkIdHasBeenSet = true; m_linkId = value; }
91 inline void SetLinkId(Aws::String&& value) { m_linkIdHasBeenSet = true; m_linkId = std::move(value); }
92 inline void SetLinkId(const char* value) { m_linkIdHasBeenSet = true; m_linkId.assign(value); }
93 inline CustomerGatewayAssociation& WithLinkId(const Aws::String& value) { SetLinkId(value); return *this;}
94 inline CustomerGatewayAssociation& WithLinkId(Aws::String&& value) { SetLinkId(std::move(value)); return *this;}
95 inline CustomerGatewayAssociation& WithLinkId(const char* value) { SetLinkId(value); return *this;}
97
99
102 inline const CustomerGatewayAssociationState& GetState() const{ return m_state; }
103 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
104 inline void SetState(const CustomerGatewayAssociationState& value) { m_stateHasBeenSet = true; m_state = value; }
105 inline void SetState(CustomerGatewayAssociationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
107 inline CustomerGatewayAssociation& WithState(CustomerGatewayAssociationState&& value) { SetState(std::move(value)); return *this;}
109 private:
110
111 Aws::String m_customerGatewayArn;
112 bool m_customerGatewayArnHasBeenSet = false;
113
114 Aws::String m_globalNetworkId;
115 bool m_globalNetworkIdHasBeenSet = false;
116
117 Aws::String m_deviceId;
118 bool m_deviceIdHasBeenSet = false;
119
120 Aws::String m_linkId;
121 bool m_linkIdHasBeenSet = false;
122
124 bool m_stateHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace NetworkManager
129} // namespace Aws
CustomerGatewayAssociation & WithGlobalNetworkId(Aws::String &&value)
AWS_NETWORKMANAGER_API CustomerGatewayAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKMANAGER_API CustomerGatewayAssociation(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
const CustomerGatewayAssociationState & GetState() const
CustomerGatewayAssociation & WithCustomerGatewayArn(Aws::String &&value)
CustomerGatewayAssociation & WithLinkId(const Aws::String &value)
CustomerGatewayAssociation & WithCustomerGatewayArn(const char *value)
CustomerGatewayAssociation & WithLinkId(const char *value)
void SetState(CustomerGatewayAssociationState &&value)
CustomerGatewayAssociation & WithDeviceId(Aws::String &&value)
CustomerGatewayAssociation & WithGlobalNetworkId(const Aws::String &value)
CustomerGatewayAssociation & WithGlobalNetworkId(const char *value)
CustomerGatewayAssociation & WithDeviceId(const char *value)
CustomerGatewayAssociation & WithCustomerGatewayArn(const Aws::String &value)
CustomerGatewayAssociation & WithLinkId(Aws::String &&value)
CustomerGatewayAssociation & WithDeviceId(const Aws::String &value)
void SetState(const CustomerGatewayAssociationState &value)
CustomerGatewayAssociation & WithState(CustomerGatewayAssociationState &&value)
CustomerGatewayAssociation & WithState(const CustomerGatewayAssociationState &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue