AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; }
50 inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); }
51 inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); }
52 inline PeeringTgwInfo& WithTransitGatewayId(const Aws::String& value) { SetTransitGatewayId(value); return *this;}
53 inline PeeringTgwInfo& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;}
54 inline PeeringTgwInfo& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;}
56
58
61 inline const Aws::String& GetCoreNetworkId() const{ return m_coreNetworkId; }
62 inline bool CoreNetworkIdHasBeenSet() const { return m_coreNetworkIdHasBeenSet; }
63 inline void SetCoreNetworkId(const Aws::String& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = value; }
64 inline void SetCoreNetworkId(Aws::String&& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = std::move(value); }
65 inline void SetCoreNetworkId(const char* value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId.assign(value); }
66 inline PeeringTgwInfo& WithCoreNetworkId(const Aws::String& value) { SetCoreNetworkId(value); return *this;}
67 inline PeeringTgwInfo& WithCoreNetworkId(Aws::String&& value) { SetCoreNetworkId(std::move(value)); return *this;}
68 inline PeeringTgwInfo& WithCoreNetworkId(const char* value) { SetCoreNetworkId(value); return *this;}
70
72
75 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
76 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
77 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
78 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
79 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
80 inline PeeringTgwInfo& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
81 inline PeeringTgwInfo& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
82 inline PeeringTgwInfo& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
84
86
89 inline const Aws::String& GetRegion() const{ return m_region; }
90 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
91 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
92 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
93 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
94 inline PeeringTgwInfo& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
95 inline PeeringTgwInfo& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
96 inline PeeringTgwInfo& WithRegion(const char* value) { SetRegion(value); return *this;}
98 private:
99
100 Aws::String m_transitGatewayId;
101 bool m_transitGatewayIdHasBeenSet = false;
102
103 Aws::String m_coreNetworkId;
104 bool m_coreNetworkIdHasBeenSet = false;
105
106 Aws::String m_ownerId;
107 bool m_ownerIdHasBeenSet = false;
108
109 Aws::String m_region;
110 bool m_regionHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace EC2
115} // namespace Aws
PeeringTgwInfo & WithRegion(const Aws::String &value)
void SetTransitGatewayId(Aws::String &&value)
void SetRegion(const char *value)
const Aws::String & GetCoreNetworkId() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetOwnerId(Aws::String &&value)
PeeringTgwInfo & WithCoreNetworkId(Aws::String &&value)
const Aws::String & GetOwnerId() const
PeeringTgwInfo & WithOwnerId(const Aws::String &value)
void SetOwnerId(const char *value)
AWS_EC2_API PeeringTgwInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCoreNetworkId(const char *value)
void SetCoreNetworkId(const Aws::String &value)
PeeringTgwInfo & WithCoreNetworkId(const char *value)
PeeringTgwInfo & WithRegion(const char *value)
PeeringTgwInfo & WithOwnerId(const char *value)
PeeringTgwInfo & WithOwnerId(Aws::String &&value)
const Aws::String & GetTransitGatewayId() const
AWS_EC2_API PeeringTgwInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTransitGatewayId(const Aws::String &value)
const Aws::String & GetRegion() const
void SetOwnerId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetRegion(Aws::String &&value)
void SetRegion(const Aws::String &value)
void SetCoreNetworkId(Aws::String &&value)
PeeringTgwInfo & WithTransitGatewayId(const char *value)
PeeringTgwInfo & WithTransitGatewayId(const Aws::String &value)
void SetTransitGatewayId(const char *value)
PeeringTgwInfo & WithRegion(Aws::String &&value)
PeeringTgwInfo & WithTransitGatewayId(Aws::String &&value)
PeeringTgwInfo & WithCoreNetworkId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream