AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PeeringTgwInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
29 public:
30 AWS_EC2_API PeeringTgwInfo() = default;
31 AWS_EC2_API PeeringTgwInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetTransitGatewayId() const { return m_transitGatewayId; }
42 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
43 template <typename TransitGatewayIdT = Aws::String>
44 void SetTransitGatewayId(TransitGatewayIdT&& value) {
45 m_transitGatewayIdHasBeenSet = true;
46 m_transitGatewayId = std::forward<TransitGatewayIdT>(value);
47 }
48 template <typename TransitGatewayIdT = Aws::String>
49 PeeringTgwInfo& WithTransitGatewayId(TransitGatewayIdT&& value) {
50 SetTransitGatewayId(std::forward<TransitGatewayIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetCoreNetworkId() const { return m_coreNetworkId; }
60 inline bool CoreNetworkIdHasBeenSet() const { return m_coreNetworkIdHasBeenSet; }
61 template <typename CoreNetworkIdT = Aws::String>
62 void SetCoreNetworkId(CoreNetworkIdT&& value) {
63 m_coreNetworkIdHasBeenSet = true;
64 m_coreNetworkId = std::forward<CoreNetworkIdT>(value);
65 }
66 template <typename CoreNetworkIdT = Aws::String>
67 PeeringTgwInfo& WithCoreNetworkId(CoreNetworkIdT&& value) {
68 SetCoreNetworkId(std::forward<CoreNetworkIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
78 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
79 template <typename OwnerIdT = Aws::String>
80 void SetOwnerId(OwnerIdT&& value) {
81 m_ownerIdHasBeenSet = true;
82 m_ownerId = std::forward<OwnerIdT>(value);
83 }
84 template <typename OwnerIdT = Aws::String>
85 PeeringTgwInfo& WithOwnerId(OwnerIdT&& value) {
86 SetOwnerId(std::forward<OwnerIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetRegion() const { return m_region; }
96 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
97 template <typename RegionT = Aws::String>
98 void SetRegion(RegionT&& value) {
99 m_regionHasBeenSet = true;
100 m_region = std::forward<RegionT>(value);
101 }
102 template <typename RegionT = Aws::String>
103 PeeringTgwInfo& WithRegion(RegionT&& value) {
104 SetRegion(std::forward<RegionT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_transitGatewayId;
110
111 Aws::String m_coreNetworkId;
112
113 Aws::String m_ownerId;
114
115 Aws::String m_region;
116 bool m_transitGatewayIdHasBeenSet = false;
117 bool m_coreNetworkIdHasBeenSet = false;
118 bool m_ownerIdHasBeenSet = false;
119 bool m_regionHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace EC2
124} // namespace Aws
void SetOwnerId(OwnerIdT &&value)
void SetCoreNetworkId(CoreNetworkIdT &&value)
const Aws::String & GetCoreNetworkId() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetOwnerId() const
PeeringTgwInfo & WithRegion(RegionT &&value)
AWS_EC2_API PeeringTgwInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PeeringTgwInfo & WithCoreNetworkId(CoreNetworkIdT &&value)
PeeringTgwInfo & WithTransitGatewayId(TransitGatewayIdT &&value)
const Aws::String & GetTransitGatewayId() const
AWS_EC2_API PeeringTgwInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetRegion(RegionT &&value)
const Aws::String & GetRegion() const
PeeringTgwInfo & WithOwnerId(OwnerIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API PeeringTgwInfo()=default
void SetTransitGatewayId(TransitGatewayIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream