AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
AssociatedGateway.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/directconnect/DirectConnect_EXPORTS.h>
9#include <aws/directconnect/model/GatewayType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DirectConnect {
21namespace Model {
22
29 public:
30 AWS_DIRECTCONNECT_API AssociatedGateway() = default;
31 AWS_DIRECTCONNECT_API AssociatedGateway(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DIRECTCONNECT_API AssociatedGateway& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
47 AssociatedGateway& WithId(IdT&& value) {
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
57 inline GatewayType GetType() const { return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 inline void SetType(GatewayType value) {
60 m_typeHasBeenSet = true;
61 m_type = value;
62 }
64 SetType(value);
65 return *this;
66 }
68
70
74 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
75 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
76 template <typename OwnerAccountT = Aws::String>
77 void SetOwnerAccount(OwnerAccountT&& value) {
78 m_ownerAccountHasBeenSet = true;
79 m_ownerAccount = std::forward<OwnerAccountT>(value);
80 }
81 template <typename OwnerAccountT = Aws::String>
82 AssociatedGateway& WithOwnerAccount(OwnerAccountT&& value) {
83 SetOwnerAccount(std::forward<OwnerAccountT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetRegion() const { return m_region; }
93 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
94 template <typename RegionT = Aws::String>
95 void SetRegion(RegionT&& value) {
96 m_regionHasBeenSet = true;
97 m_region = std::forward<RegionT>(value);
98 }
99 template <typename RegionT = Aws::String>
100 AssociatedGateway& WithRegion(RegionT&& value) {
101 SetRegion(std::forward<RegionT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_id;
107
109
110 Aws::String m_ownerAccount;
111
112 Aws::String m_region;
113 bool m_idHasBeenSet = false;
114 bool m_typeHasBeenSet = false;
115 bool m_ownerAccountHasBeenSet = false;
116 bool m_regionHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace DirectConnect
121} // namespace Aws
AssociatedGateway & WithId(IdT &&value)
AssociatedGateway & WithRegion(RegionT &&value)
AWS_DIRECTCONNECT_API AssociatedGateway()=default
AssociatedGateway & WithType(GatewayType value)
AWS_DIRECTCONNECT_API AssociatedGateway(Aws::Utils::Json::JsonView jsonValue)
AssociatedGateway & WithOwnerAccount(OwnerAccountT &&value)
AWS_DIRECTCONNECT_API AssociatedGateway & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue