AWS SDK for C++  1.9.132
AWS SDK for C++
AssociatedGateway.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace DirectConnect
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetId() const{ return m_id; }
45 
49  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 
54  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
55 
59  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
60 
64  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
65 
69  inline AssociatedGateway& WithId(const Aws::String& value) { SetId(value); return *this;}
70 
74  inline AssociatedGateway& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
75 
79  inline AssociatedGateway& WithId(const char* value) { SetId(value); return *this;}
80 
81 
85  inline const GatewayType& GetType() const{ return m_type; }
86 
90  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
91 
95  inline void SetType(const GatewayType& value) { m_typeHasBeenSet = true; m_type = value; }
96 
100  inline void SetType(GatewayType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
101 
105  inline AssociatedGateway& WithType(const GatewayType& value) { SetType(value); return *this;}
106 
110  inline AssociatedGateway& WithType(GatewayType&& value) { SetType(std::move(value)); return *this;}
111 
112 
117  inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; }
118 
123  inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
124 
129  inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = value; }
130 
135  inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::move(value); }
136 
141  inline void SetOwnerAccount(const char* value) { m_ownerAccountHasBeenSet = true; m_ownerAccount.assign(value); }
142 
147  inline AssociatedGateway& WithOwnerAccount(const Aws::String& value) { SetOwnerAccount(value); return *this;}
148 
153  inline AssociatedGateway& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(std::move(value)); return *this;}
154 
159  inline AssociatedGateway& WithOwnerAccount(const char* value) { SetOwnerAccount(value); return *this;}
160 
161 
165  inline const Aws::String& GetRegion() const{ return m_region; }
166 
170  inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
171 
175  inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
176 
180  inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
181 
185  inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
186 
190  inline AssociatedGateway& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
191 
195  inline AssociatedGateway& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
196 
200  inline AssociatedGateway& WithRegion(const char* value) { SetRegion(value); return *this;}
201 
202  private:
203 
204  Aws::String m_id;
205  bool m_idHasBeenSet;
206 
207  GatewayType m_type;
208  bool m_typeHasBeenSet;
209 
210  Aws::String m_ownerAccount;
211  bool m_ownerAccountHasBeenSet;
212 
213  Aws::String m_region;
214  bool m_regionHasBeenSet;
215  };
216 
217 } // namespace Model
218 } // namespace DirectConnect
219 } // namespace Aws
Aws::DirectConnect::Model::AssociatedGateway::RegionHasBeenSet
bool RegionHasBeenSet() const
Definition: AssociatedGateway.h:170
Aws::DirectConnect::Model::GatewayType
GatewayType
Definition: GatewayType.h:17
Aws::DirectConnect::Model::AssociatedGateway::SetId
void SetId(const Aws::String &value)
Definition: AssociatedGateway.h:54
Aws::DirectConnect::Model::AssociatedGateway::WithOwnerAccount
AssociatedGateway & WithOwnerAccount(const Aws::String &value)
Definition: AssociatedGateway.h:147
Aws::DirectConnect::Model::AssociatedGateway::WithRegion
AssociatedGateway & WithRegion(const char *value)
Definition: AssociatedGateway.h:200
Aws::DirectConnect::Model::AssociatedGateway::WithId
AssociatedGateway & WithId(const Aws::String &value)
Definition: AssociatedGateway.h:69
Aws::DirectConnect::Model::AssociatedGateway::GetType
const GatewayType & GetType() const
Definition: AssociatedGateway.h:85
Aws::DirectConnect::Model::AssociatedGateway::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: AssociatedGateway.h:90
Aws::DirectConnect::Model::AssociatedGateway::SetType
void SetType(GatewayType &&value)
Definition: AssociatedGateway.h:100
Aws::DirectConnect::Model::AssociatedGateway::SetOwnerAccount
void SetOwnerAccount(const char *value)
Definition: AssociatedGateway.h:141
Aws::DirectConnect::Model::AssociatedGateway
Definition: AssociatedGateway.h:33
DirectConnect_EXPORTS.h
Aws::DirectConnect::Model::AssociatedGateway::SetRegion
void SetRegion(const Aws::String &value)
Definition: AssociatedGateway.h:175
GatewayType.h
Aws::DirectConnect::Model::AssociatedGateway::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DirectConnect::Model::AssociatedGateway::SetType
void SetType(const GatewayType &value)
Definition: AssociatedGateway.h:95
Aws::DirectConnect::Model::AssociatedGateway::WithId
AssociatedGateway & WithId(Aws::String &&value)
Definition: AssociatedGateway.h:74
Aws::DirectConnect::Model::AssociatedGateway::WithOwnerAccount
AssociatedGateway & WithOwnerAccount(Aws::String &&value)
Definition: AssociatedGateway.h:153
Aws::DirectConnect::Model::AssociatedGateway::WithOwnerAccount
AssociatedGateway & WithOwnerAccount(const char *value)
Definition: AssociatedGateway.h:159
Aws::DirectConnect::Model::AssociatedGateway::SetOwnerAccount
void SetOwnerAccount(const Aws::String &value)
Definition: AssociatedGateway.h:129
Aws::DirectConnect::Model::AssociatedGateway::AssociatedGateway
AssociatedGateway()
Aws::DirectConnect::Model::AssociatedGateway::WithId
AssociatedGateway & WithId(const char *value)
Definition: AssociatedGateway.h:79
Aws::DirectConnect::Model::AssociatedGateway::WithRegion
AssociatedGateway & WithRegion(const Aws::String &value)
Definition: AssociatedGateway.h:190
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::DirectConnect::Model::AssociatedGateway::WithType
AssociatedGateway & WithType(GatewayType &&value)
Definition: AssociatedGateway.h:110
Aws::DirectConnect::Model::AssociatedGateway::SetRegion
void SetRegion(const char *value)
Definition: AssociatedGateway.h:185
Aws::DirectConnect::Model::AssociatedGateway::operator=
AssociatedGateway & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectConnect::Model::AssociatedGateway::SetRegion
void SetRegion(Aws::String &&value)
Definition: AssociatedGateway.h:180
Aws::DirectConnect::Model::AssociatedGateway::SetOwnerAccount
void SetOwnerAccount(Aws::String &&value)
Definition: AssociatedGateway.h:135
Aws::DirectConnect::Model::AssociatedGateway::WithRegion
AssociatedGateway & WithRegion(Aws::String &&value)
Definition: AssociatedGateway.h:195
Aws::DirectConnect::Model::AssociatedGateway::SetId
void SetId(const char *value)
Definition: AssociatedGateway.h:64
Aws
Definition: AccessManagementClient.h:15
Aws::DirectConnect::Model::AssociatedGateway::WithType
AssociatedGateway & WithType(const GatewayType &value)
Definition: AssociatedGateway.h:105
Aws::DirectConnect::Model::AssociatedGateway::GetOwnerAccount
const Aws::String & GetOwnerAccount() const
Definition: AssociatedGateway.h:117
Aws::DirectConnect::Model::AssociatedGateway::GetId
const Aws::String & GetId() const
Definition: AssociatedGateway.h:44
Aws::DirectConnect::Model::AssociatedGateway::OwnerAccountHasBeenSet
bool OwnerAccountHasBeenSet() const
Definition: AssociatedGateway.h:123
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectConnect::Model::AssociatedGateway::GetRegion
const Aws::String & GetRegion() const
Definition: AssociatedGateway.h:165
Aws::DirectConnect::Model::AssociatedGateway::SetId
void SetId(Aws::String &&value)
Definition: AssociatedGateway.h:59
AWS_DIRECTCONNECT_API
#define AWS_DIRECTCONNECT_API
Definition: DirectConnect_EXPORTS.h:28
Aws::DirectConnect::Model::AssociatedGateway::IdHasBeenSet
bool IdHasBeenSet() const
Definition: AssociatedGateway.h:49
Aws::DirectConnect::Model::AssociatedGateway::AssociatedGateway
AssociatedGateway(Aws::Utils::Json::JsonView jsonValue)