AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename IdT = Aws::String>
48 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
49 template<typename IdT = Aws::String>
50 AssociatedGateway& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
52
54
57 inline GatewayType GetType() const { return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 inline void SetType(GatewayType value) { m_typeHasBeenSet = true; m_type = value; }
60 inline AssociatedGateway& WithType(GatewayType value) { SetType(value); return *this;}
62
64
68 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
69 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
70 template<typename OwnerAccountT = Aws::String>
71 void SetOwnerAccount(OwnerAccountT&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::forward<OwnerAccountT>(value); }
72 template<typename OwnerAccountT = Aws::String>
73 AssociatedGateway& WithOwnerAccount(OwnerAccountT&& value) { SetOwnerAccount(std::forward<OwnerAccountT>(value)); return *this;}
75
77
80 inline const Aws::String& GetRegion() const { return m_region; }
81 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
82 template<typename RegionT = Aws::String>
83 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
84 template<typename RegionT = Aws::String>
85 AssociatedGateway& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
87 private:
88
89 Aws::String m_id;
90 bool m_idHasBeenSet = false;
91
93 bool m_typeHasBeenSet = false;
94
95 Aws::String m_ownerAccount;
96 bool m_ownerAccountHasBeenSet = false;
97
98 Aws::String m_region;
99 bool m_regionHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace DirectConnect
104} // 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