AWS SDK for C++  1.9.71
AWS SDK for C++
TransitGatewayPrefixListAttachment.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
48 
52  inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
53 
57  inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
58 
62  inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
63 
67  inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
68 
72  inline TransitGatewayPrefixListAttachment& WithTransitGatewayAttachmentId(const Aws::String& value) { SetTransitGatewayAttachmentId(value); return *this;}
73 
77  inline TransitGatewayPrefixListAttachment& WithTransitGatewayAttachmentId(Aws::String&& value) { SetTransitGatewayAttachmentId(std::move(value)); return *this;}
78 
82  inline TransitGatewayPrefixListAttachment& WithTransitGatewayAttachmentId(const char* value) { SetTransitGatewayAttachmentId(value); return *this;}
83 
84 
89  inline const TransitGatewayAttachmentResourceType& GetResourceType() const{ return m_resourceType; }
90 
95  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
96 
101  inline void SetResourceType(const TransitGatewayAttachmentResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
102 
107  inline void SetResourceType(TransitGatewayAttachmentResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
108 
113  inline TransitGatewayPrefixListAttachment& WithResourceType(const TransitGatewayAttachmentResourceType& value) { SetResourceType(value); return *this;}
114 
119  inline TransitGatewayPrefixListAttachment& WithResourceType(TransitGatewayAttachmentResourceType&& value) { SetResourceType(std::move(value)); return *this;}
120 
121 
125  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
126 
130  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
131 
135  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
136 
140  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
141 
145  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
146 
150  inline TransitGatewayPrefixListAttachment& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
151 
155  inline TransitGatewayPrefixListAttachment& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
156 
160  inline TransitGatewayPrefixListAttachment& WithResourceId(const char* value) { SetResourceId(value); return *this;}
161 
162  private:
163 
164  Aws::String m_transitGatewayAttachmentId;
165  bool m_transitGatewayAttachmentIdHasBeenSet;
166 
168  bool m_resourceTypeHasBeenSet;
169 
170  Aws::String m_resourceId;
171  bool m_resourceIdHasBeenSet;
172  };
173 
174 } // namespace Model
175 } // namespace EC2
176 } // namespace Aws
Aws::EC2::Model::TransitGatewayPrefixListAttachment::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::TransitGatewayPrefixListAttachment::TransitGatewayPrefixListAttachment
TransitGatewayPrefixListAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayPrefixListAttachment::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(Aws::String &&value)
Definition: TransitGatewayPrefixListAttachment.h:62
Aws::EC2::Model::TransitGatewayPrefixListAttachment::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: TransitGatewayPrefixListAttachment.h:130
Aws::EC2::Model::TransitGatewayPrefixListAttachment::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const char *value)
Definition: TransitGatewayPrefixListAttachment.h:67
Aws::EC2::Model::TransitGatewayPrefixListAttachment::WithResourceId
TransitGatewayPrefixListAttachment & WithResourceId(const char *value)
Definition: TransitGatewayPrefixListAttachment.h:160
Aws::EC2::Model::TransitGatewayPrefixListAttachment::TransitGatewayAttachmentIdHasBeenSet
bool TransitGatewayAttachmentIdHasBeenSet() const
Definition: TransitGatewayPrefixListAttachment.h:52
Aws::EC2::Model::TransitGatewayPrefixListAttachment::TransitGatewayPrefixListAttachment
TransitGatewayPrefixListAttachment()
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TransitGatewayPrefixListAttachment::SetResourceId
void SetResourceId(const char *value)
Definition: TransitGatewayPrefixListAttachment.h:145
Aws::EC2::Model::TransitGatewayPrefixListAttachment::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: TransitGatewayPrefixListAttachment.h:140
AWSStreamFwd.h
Aws::EC2::Model::TransitGatewayPrefixListAttachment::operator=
TransitGatewayPrefixListAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayPrefixListAttachment::GetResourceId
const Aws::String & GetResourceId() const
Definition: TransitGatewayPrefixListAttachment.h:125
Aws::EC2::Model::TransitGatewayAttachmentResourceType
TransitGatewayAttachmentResourceType
Definition: TransitGatewayAttachmentResourceType.h:17
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::TransitGatewayPrefixListAttachment::WithResourceId
TransitGatewayPrefixListAttachment & WithResourceId(const Aws::String &value)
Definition: TransitGatewayPrefixListAttachment.h:150
Aws::EC2::Model::TransitGatewayPrefixListAttachment::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const Aws::String &value)
Definition: TransitGatewayPrefixListAttachment.h:57
Aws::EC2::Model::TransitGatewayPrefixListAttachment::WithTransitGatewayAttachmentId
TransitGatewayPrefixListAttachment & WithTransitGatewayAttachmentId(const Aws::String &value)
Definition: TransitGatewayPrefixListAttachment.h:72
TransitGatewayAttachmentResourceType.h
Aws::EC2::Model::TransitGatewayPrefixListAttachment::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: TransitGatewayPrefixListAttachment.h:95
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TransitGatewayPrefixListAttachment
Definition: TransitGatewayPrefixListAttachment.h:34
AWSString.h
Aws::EC2::Model::TransitGatewayPrefixListAttachment::SetResourceType
void SetResourceType(TransitGatewayAttachmentResourceType &&value)
Definition: TransitGatewayPrefixListAttachment.h:107
Aws::EC2::Model::TransitGatewayPrefixListAttachment::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::TransitGatewayPrefixListAttachment::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: TransitGatewayPrefixListAttachment.h:135
Aws::EC2::Model::TransitGatewayPrefixListAttachment::SetResourceType
void SetResourceType(const TransitGatewayAttachmentResourceType &value)
Definition: TransitGatewayPrefixListAttachment.h:101
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TransitGatewayPrefixListAttachment::WithTransitGatewayAttachmentId
TransitGatewayPrefixListAttachment & WithTransitGatewayAttachmentId(Aws::String &&value)
Definition: TransitGatewayPrefixListAttachment.h:77
Aws::EC2::Model::TransitGatewayPrefixListAttachment::GetResourceType
const TransitGatewayAttachmentResourceType & GetResourceType() const
Definition: TransitGatewayPrefixListAttachment.h:89
Aws::EC2::Model::TransitGatewayPrefixListAttachment::WithResourceType
TransitGatewayPrefixListAttachment & WithResourceType(const TransitGatewayAttachmentResourceType &value)
Definition: TransitGatewayPrefixListAttachment.h:113
Aws::EC2::Model::TransitGatewayPrefixListAttachment::GetTransitGatewayAttachmentId
const Aws::String & GetTransitGatewayAttachmentId() const
Definition: TransitGatewayPrefixListAttachment.h:47
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::TransitGatewayPrefixListAttachment::WithResourceType
TransitGatewayPrefixListAttachment & WithResourceType(TransitGatewayAttachmentResourceType &&value)
Definition: TransitGatewayPrefixListAttachment.h:119
Aws::EC2::Model::TransitGatewayPrefixListAttachment::WithResourceId
TransitGatewayPrefixListAttachment & WithResourceId(Aws::String &&value)
Definition: TransitGatewayPrefixListAttachment.h:155
EC2_EXPORTS.h
Aws::EC2::Model::TransitGatewayPrefixListAttachment::WithTransitGatewayAttachmentId
TransitGatewayPrefixListAttachment & WithTransitGatewayAttachmentId(const char *value)
Definition: TransitGatewayPrefixListAttachment.h:82