AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PeeringTgwInfo.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_EC2_API PeeringTgwInfo() = default;
36 AWS_EC2_API PeeringTgwInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetTransitGatewayId() const { return m_transitGatewayId; }
48 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
49 template<typename TransitGatewayIdT = Aws::String>
50 void SetTransitGatewayId(TransitGatewayIdT&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::forward<TransitGatewayIdT>(value); }
51 template<typename TransitGatewayIdT = Aws::String>
52 PeeringTgwInfo& WithTransitGatewayId(TransitGatewayIdT&& value) { SetTransitGatewayId(std::forward<TransitGatewayIdT>(value)); return *this;}
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) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = std::forward<CoreNetworkIdT>(value); }
63 template<typename CoreNetworkIdT = Aws::String>
64 PeeringTgwInfo& WithCoreNetworkId(CoreNetworkIdT&& value) { SetCoreNetworkId(std::forward<CoreNetworkIdT>(value)); return *this;}
66
68
71 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
72 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
73 template<typename OwnerIdT = Aws::String>
74 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
75 template<typename OwnerIdT = Aws::String>
76 PeeringTgwInfo& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
78
80
83 inline const Aws::String& GetRegion() const { return m_region; }
84 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
85 template<typename RegionT = Aws::String>
86 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
87 template<typename RegionT = Aws::String>
88 PeeringTgwInfo& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
90 private:
91
92 Aws::String m_transitGatewayId;
93 bool m_transitGatewayIdHasBeenSet = false;
94
95 Aws::String m_coreNetworkId;
96 bool m_coreNetworkIdHasBeenSet = false;
97
98 Aws::String m_ownerId;
99 bool m_ownerIdHasBeenSet = false;
100
101 Aws::String m_region;
102 bool m_regionHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace EC2
107} // 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