AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssociatedGateway.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/GatewayType.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
33 {
34 public:
35 AWS_DIRECTCONNECT_API AssociatedGateway();
36 AWS_DIRECTCONNECT_API AssociatedGateway(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DIRECTCONNECT_API AssociatedGateway& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetId() const{ return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
48 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
49 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
50 inline AssociatedGateway& WithId(const Aws::String& value) { SetId(value); return *this;}
51 inline AssociatedGateway& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
52 inline AssociatedGateway& WithId(const char* value) { SetId(value); return *this;}
54
56
59 inline const GatewayType& GetType() const{ return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(const GatewayType& value) { m_typeHasBeenSet = true; m_type = value; }
62 inline void SetType(GatewayType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
63 inline AssociatedGateway& WithType(const GatewayType& value) { SetType(value); return *this;}
64 inline AssociatedGateway& WithType(GatewayType&& value) { SetType(std::move(value)); return *this;}
66
68
72 inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; }
73 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
74 inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = value; }
75 inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::move(value); }
76 inline void SetOwnerAccount(const char* value) { m_ownerAccountHasBeenSet = true; m_ownerAccount.assign(value); }
77 inline AssociatedGateway& WithOwnerAccount(const Aws::String& value) { SetOwnerAccount(value); return *this;}
78 inline AssociatedGateway& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(std::move(value)); return *this;}
79 inline AssociatedGateway& WithOwnerAccount(const char* value) { SetOwnerAccount(value); return *this;}
81
83
86 inline const Aws::String& GetRegion() const{ return m_region; }
87 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
88 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
89 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
90 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
91 inline AssociatedGateway& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
92 inline AssociatedGateway& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
93 inline AssociatedGateway& WithRegion(const char* value) { SetRegion(value); return *this;}
95 private:
96
97 Aws::String m_id;
98 bool m_idHasBeenSet = false;
99
100 GatewayType m_type;
101 bool m_typeHasBeenSet = false;
102
103 Aws::String m_ownerAccount;
104 bool m_ownerAccountHasBeenSet = false;
105
106 Aws::String m_region;
107 bool m_regionHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace DirectConnect
112} // namespace Aws
AssociatedGateway & WithId(const Aws::String &value)
AssociatedGateway & WithRegion(const Aws::String &value)
AssociatedGateway & WithOwnerAccount(Aws::String &&value)
AssociatedGateway & WithOwnerAccount(const char *value)
AssociatedGateway & WithType(GatewayType &&value)
AssociatedGateway & WithOwnerAccount(const Aws::String &value)
AssociatedGateway & WithId(const char *value)
AWS_DIRECTCONNECT_API AssociatedGateway(Aws::Utils::Json::JsonView jsonValue)
AssociatedGateway & WithId(Aws::String &&value)
AssociatedGateway & WithRegion(Aws::String &&value)
void SetOwnerAccount(const Aws::String &value)
AWS_DIRECTCONNECT_API AssociatedGateway & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AssociatedGateway & WithRegion(const char *value)
AssociatedGateway & WithType(const GatewayType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue