AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DirectConnectGateway.h
1
6#pragma once
7#include <aws/directconnect/DirectConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/directconnect/model/DirectConnectGatewayState.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 DirectConnect
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_DIRECTCONNECT_API DirectConnectGateway();
38 AWS_DIRECTCONNECT_API DirectConnectGateway(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetDirectConnectGatewayId() const{ return m_directConnectGatewayId; }
48 inline bool DirectConnectGatewayIdHasBeenSet() const { return m_directConnectGatewayIdHasBeenSet; }
49 inline void SetDirectConnectGatewayId(const Aws::String& value) { m_directConnectGatewayIdHasBeenSet = true; m_directConnectGatewayId = value; }
50 inline void SetDirectConnectGatewayId(Aws::String&& value) { m_directConnectGatewayIdHasBeenSet = true; m_directConnectGatewayId = std::move(value); }
51 inline void SetDirectConnectGatewayId(const char* value) { m_directConnectGatewayIdHasBeenSet = true; m_directConnectGatewayId.assign(value); }
53 inline DirectConnectGateway& WithDirectConnectGatewayId(Aws::String&& value) { SetDirectConnectGatewayId(std::move(value)); return *this;}
54 inline DirectConnectGateway& WithDirectConnectGatewayId(const char* value) { SetDirectConnectGatewayId(value); return *this;}
56
58
61 inline const Aws::String& GetDirectConnectGatewayName() const{ return m_directConnectGatewayName; }
62 inline bool DirectConnectGatewayNameHasBeenSet() const { return m_directConnectGatewayNameHasBeenSet; }
63 inline void SetDirectConnectGatewayName(const Aws::String& value) { m_directConnectGatewayNameHasBeenSet = true; m_directConnectGatewayName = value; }
64 inline void SetDirectConnectGatewayName(Aws::String&& value) { m_directConnectGatewayNameHasBeenSet = true; m_directConnectGatewayName = std::move(value); }
65 inline void SetDirectConnectGatewayName(const char* value) { m_directConnectGatewayNameHasBeenSet = true; m_directConnectGatewayName.assign(value); }
68 inline DirectConnectGateway& WithDirectConnectGatewayName(const char* value) { SetDirectConnectGatewayName(value); return *this;}
70
72
75 inline long long GetAmazonSideAsn() const{ return m_amazonSideAsn; }
76 inline bool AmazonSideAsnHasBeenSet() const { return m_amazonSideAsnHasBeenSet; }
77 inline void SetAmazonSideAsn(long long value) { m_amazonSideAsnHasBeenSet = true; m_amazonSideAsn = value; }
78 inline DirectConnectGateway& WithAmazonSideAsn(long long value) { SetAmazonSideAsn(value); return *this;}
80
82
86 inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; }
87 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
88 inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = value; }
89 inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::move(value); }
90 inline void SetOwnerAccount(const char* value) { m_ownerAccountHasBeenSet = true; m_ownerAccount.assign(value); }
91 inline DirectConnectGateway& WithOwnerAccount(const Aws::String& value) { SetOwnerAccount(value); return *this;}
92 inline DirectConnectGateway& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(std::move(value)); return *this;}
93 inline DirectConnectGateway& WithOwnerAccount(const char* value) { SetOwnerAccount(value); return *this;}
95
97
106 inline const DirectConnectGatewayState& GetDirectConnectGatewayState() const{ return m_directConnectGatewayState; }
107 inline bool DirectConnectGatewayStateHasBeenSet() const { return m_directConnectGatewayStateHasBeenSet; }
108 inline void SetDirectConnectGatewayState(const DirectConnectGatewayState& value) { m_directConnectGatewayStateHasBeenSet = true; m_directConnectGatewayState = value; }
109 inline void SetDirectConnectGatewayState(DirectConnectGatewayState&& value) { m_directConnectGatewayStateHasBeenSet = true; m_directConnectGatewayState = std::move(value); }
113
115
118 inline const Aws::String& GetStateChangeError() const{ return m_stateChangeError; }
119 inline bool StateChangeErrorHasBeenSet() const { return m_stateChangeErrorHasBeenSet; }
120 inline void SetStateChangeError(const Aws::String& value) { m_stateChangeErrorHasBeenSet = true; m_stateChangeError = value; }
121 inline void SetStateChangeError(Aws::String&& value) { m_stateChangeErrorHasBeenSet = true; m_stateChangeError = std::move(value); }
122 inline void SetStateChangeError(const char* value) { m_stateChangeErrorHasBeenSet = true; m_stateChangeError.assign(value); }
123 inline DirectConnectGateway& WithStateChangeError(const Aws::String& value) { SetStateChangeError(value); return *this;}
124 inline DirectConnectGateway& WithStateChangeError(Aws::String&& value) { SetStateChangeError(std::move(value)); return *this;}
125 inline DirectConnectGateway& WithStateChangeError(const char* value) { SetStateChangeError(value); return *this;}
127 private:
128
129 Aws::String m_directConnectGatewayId;
130 bool m_directConnectGatewayIdHasBeenSet = false;
131
132 Aws::String m_directConnectGatewayName;
133 bool m_directConnectGatewayNameHasBeenSet = false;
134
135 long long m_amazonSideAsn;
136 bool m_amazonSideAsnHasBeenSet = false;
137
138 Aws::String m_ownerAccount;
139 bool m_ownerAccountHasBeenSet = false;
140
141 DirectConnectGatewayState m_directConnectGatewayState;
142 bool m_directConnectGatewayStateHasBeenSet = false;
143
144 Aws::String m_stateChangeError;
145 bool m_stateChangeErrorHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace DirectConnect
150} // namespace Aws
DirectConnectGateway & WithStateChangeError(const Aws::String &value)
DirectConnectGateway & WithAmazonSideAsn(long long value)
void SetDirectConnectGatewayName(const Aws::String &value)
DirectConnectGateway & WithDirectConnectGatewayName(Aws::String &&value)
DirectConnectGateway & WithDirectConnectGatewayId(Aws::String &&value)
void SetDirectConnectGatewayState(const DirectConnectGatewayState &value)
DirectConnectGateway & WithDirectConnectGatewayName(const Aws::String &value)
DirectConnectGateway & WithDirectConnectGatewayName(const char *value)
AWS_DIRECTCONNECT_API DirectConnectGateway(Aws::Utils::Json::JsonView jsonValue)
DirectConnectGateway & WithDirectConnectGatewayState(DirectConnectGatewayState &&value)
void SetDirectConnectGatewayState(DirectConnectGatewayState &&value)
DirectConnectGateway & WithDirectConnectGatewayId(const Aws::String &value)
DirectConnectGateway & WithStateChangeError(const char *value)
DirectConnectGateway & WithDirectConnectGatewayState(const DirectConnectGatewayState &value)
const DirectConnectGatewayState & GetDirectConnectGatewayState() const
DirectConnectGateway & WithDirectConnectGatewayId(const char *value)
AWS_DIRECTCONNECT_API DirectConnectGateway & operator=(Aws::Utils::Json::JsonView jsonValue)
DirectConnectGateway & WithOwnerAccount(const Aws::String &value)
DirectConnectGateway & WithStateChangeError(Aws::String &&value)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
DirectConnectGateway & WithOwnerAccount(Aws::String &&value)
void SetDirectConnectGatewayId(const Aws::String &value)
DirectConnectGateway & WithOwnerAccount(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue