AWS SDK for C++  1.9.126
AWS SDK for C++
PeeringTgwInfo.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; }
47 
51  inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
52 
56  inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; }
57 
61  inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); }
62 
66  inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); }
67 
71  inline PeeringTgwInfo& WithTransitGatewayId(const Aws::String& value) { SetTransitGatewayId(value); return *this;}
72 
76  inline PeeringTgwInfo& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;}
77 
81  inline PeeringTgwInfo& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;}
82 
83 
87  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
88 
92  inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
93 
97  inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
98 
102  inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
103 
107  inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
108 
112  inline PeeringTgwInfo& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
113 
117  inline PeeringTgwInfo& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
118 
122  inline PeeringTgwInfo& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
123 
124 
128  inline const Aws::String& GetRegion() const{ return m_region; }
129 
133  inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
134 
138  inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
139 
143  inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
144 
148  inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
149 
153  inline PeeringTgwInfo& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
154 
158  inline PeeringTgwInfo& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
159 
163  inline PeeringTgwInfo& WithRegion(const char* value) { SetRegion(value); return *this;}
164 
165  private:
166 
167  Aws::String m_transitGatewayId;
168  bool m_transitGatewayIdHasBeenSet;
169 
170  Aws::String m_ownerId;
171  bool m_ownerIdHasBeenSet;
172 
173  Aws::String m_region;
174  bool m_regionHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace EC2
179 } // namespace Aws
Aws::EC2::Model::PeeringTgwInfo::OwnerIdHasBeenSet
bool OwnerIdHasBeenSet() const
Definition: PeeringTgwInfo.h:92
Aws::EC2::Model::PeeringTgwInfo::WithOwnerId
PeeringTgwInfo & WithOwnerId(const Aws::String &value)
Definition: PeeringTgwInfo.h:112
Aws::EC2::Model::PeeringTgwInfo::TransitGatewayIdHasBeenSet
bool TransitGatewayIdHasBeenSet() const
Definition: PeeringTgwInfo.h:51
Aws::EC2::Model::PeeringTgwInfo::WithRegion
PeeringTgwInfo & WithRegion(const Aws::String &value)
Definition: PeeringTgwInfo.h:153
Aws::EC2::Model::PeeringTgwInfo::WithTransitGatewayId
PeeringTgwInfo & WithTransitGatewayId(Aws::String &&value)
Definition: PeeringTgwInfo.h:76
Aws::EC2::Model::PeeringTgwInfo::GetTransitGatewayId
const Aws::String & GetTransitGatewayId() const
Definition: PeeringTgwInfo.h:46
Aws::EC2::Model::PeeringTgwInfo::SetRegion
void SetRegion(const Aws::String &value)
Definition: PeeringTgwInfo.h:138
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::PeeringTgwInfo::WithOwnerId
PeeringTgwInfo & WithOwnerId(const char *value)
Definition: PeeringTgwInfo.h:122
AWSStreamFwd.h
Aws::EC2::Model::PeeringTgwInfo
Definition: PeeringTgwInfo.h:33
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::PeeringTgwInfo::PeeringTgwInfo
PeeringTgwInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::PeeringTgwInfo::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::PeeringTgwInfo::WithRegion
PeeringTgwInfo & WithRegion(const char *value)
Definition: PeeringTgwInfo.h:163
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::PeeringTgwInfo::SetTransitGatewayId
void SetTransitGatewayId(const char *value)
Definition: PeeringTgwInfo.h:66
Aws::EC2::Model::PeeringTgwInfo::WithTransitGatewayId
PeeringTgwInfo & WithTransitGatewayId(const char *value)
Definition: PeeringTgwInfo.h:81
Aws::EC2::Model::PeeringTgwInfo::GetOwnerId
const Aws::String & GetOwnerId() const
Definition: PeeringTgwInfo.h:87
Aws::EC2::Model::PeeringTgwInfo::WithTransitGatewayId
PeeringTgwInfo & WithTransitGatewayId(const Aws::String &value)
Definition: PeeringTgwInfo.h:71
Aws::EC2::Model::PeeringTgwInfo::WithOwnerId
PeeringTgwInfo & WithOwnerId(Aws::String &&value)
Definition: PeeringTgwInfo.h:117
AWSString.h
Aws::EC2::Model::PeeringTgwInfo::SetOwnerId
void SetOwnerId(Aws::String &&value)
Definition: PeeringTgwInfo.h:102
Aws::EC2::Model::PeeringTgwInfo::GetRegion
const Aws::String & GetRegion() const
Definition: PeeringTgwInfo.h:128
Aws::EC2::Model::PeeringTgwInfo::SetTransitGatewayId
void SetTransitGatewayId(const Aws::String &value)
Definition: PeeringTgwInfo.h:56
Aws::EC2::Model::PeeringTgwInfo::SetRegion
void SetRegion(const char *value)
Definition: PeeringTgwInfo.h:148
Aws::EC2::Model::PeeringTgwInfo::SetTransitGatewayId
void SetTransitGatewayId(Aws::String &&value)
Definition: PeeringTgwInfo.h:61
Aws::EC2::Model::PeeringTgwInfo::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::PeeringTgwInfo::SetRegion
void SetRegion(Aws::String &&value)
Definition: PeeringTgwInfo.h:143
Aws::EC2::Model::PeeringTgwInfo::SetOwnerId
void SetOwnerId(const char *value)
Definition: PeeringTgwInfo.h:107
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::PeeringTgwInfo::PeeringTgwInfo
PeeringTgwInfo()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::PeeringTgwInfo::SetOwnerId
void SetOwnerId(const Aws::String &value)
Definition: PeeringTgwInfo.h:97
Aws::EC2::Model::PeeringTgwInfo::WithRegion
PeeringTgwInfo & WithRegion(Aws::String &&value)
Definition: PeeringTgwInfo.h:158
EC2_EXPORTS.h
Aws::EC2::Model::PeeringTgwInfo::RegionHasBeenSet
bool RegionHasBeenSet() const
Definition: PeeringTgwInfo.h:133
Aws::EC2::Model::PeeringTgwInfo::operator=
PeeringTgwInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)