AWS SDK for C++  1.9.71
AWS SDK for C++
TransitGatewayRouteAttachment.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 
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& GetResourceId() const{ return m_resourceId; }
47 
51  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
52 
56  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
57 
61  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
62 
66  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
67 
71  inline TransitGatewayRouteAttachment& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
72 
76  inline TransitGatewayRouteAttachment& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
77 
81  inline TransitGatewayRouteAttachment& WithResourceId(const char* value) { SetResourceId(value); return *this;}
82 
83 
87  inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
88 
92  inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
93 
97  inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
98 
102  inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
103 
107  inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
108 
112  inline TransitGatewayRouteAttachment& WithTransitGatewayAttachmentId(const Aws::String& value) { SetTransitGatewayAttachmentId(value); return *this;}
113 
117  inline TransitGatewayRouteAttachment& WithTransitGatewayAttachmentId(Aws::String&& value) { SetTransitGatewayAttachmentId(std::move(value)); return *this;}
118 
122  inline TransitGatewayRouteAttachment& WithTransitGatewayAttachmentId(const char* value) { SetTransitGatewayAttachmentId(value); return *this;}
123 
124 
129  inline const TransitGatewayAttachmentResourceType& GetResourceType() const{ return m_resourceType; }
130 
135  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
136 
141  inline void SetResourceType(const TransitGatewayAttachmentResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
142 
147  inline void SetResourceType(TransitGatewayAttachmentResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
148 
153  inline TransitGatewayRouteAttachment& WithResourceType(const TransitGatewayAttachmentResourceType& value) { SetResourceType(value); return *this;}
154 
159  inline TransitGatewayRouteAttachment& WithResourceType(TransitGatewayAttachmentResourceType&& value) { SetResourceType(std::move(value)); return *this;}
160 
161  private:
162 
163  Aws::String m_resourceId;
164  bool m_resourceIdHasBeenSet;
165 
166  Aws::String m_transitGatewayAttachmentId;
167  bool m_transitGatewayAttachmentIdHasBeenSet;
168 
170  bool m_resourceTypeHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace EC2
175 } // namespace Aws
Aws::EC2::Model::TransitGatewayRouteAttachment::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::TransitGatewayRouteAttachment::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: TransitGatewayRouteAttachment.h:61
Aws::EC2::Model::TransitGatewayRouteAttachment::WithResourceId
TransitGatewayRouteAttachment & WithResourceId(Aws::String &&value)
Definition: TransitGatewayRouteAttachment.h:76
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::TransitGatewayRouteAttachment::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::TransitGatewayRouteAttachment::WithTransitGatewayAttachmentId
TransitGatewayRouteAttachment & WithTransitGatewayAttachmentId(const char *value)
Definition: TransitGatewayRouteAttachment.h:122
Aws::EC2::Model::TransitGatewayAttachmentResourceType
TransitGatewayAttachmentResourceType
Definition: TransitGatewayAttachmentResourceType.h:17
Aws::EC2::Model::TransitGatewayRouteAttachment::WithResourceId
TransitGatewayRouteAttachment & WithResourceId(const char *value)
Definition: TransitGatewayRouteAttachment.h:81
Aws::EC2::Model::TransitGatewayRouteAttachment::GetResourceType
const TransitGatewayAttachmentResourceType & GetResourceType() const
Definition: TransitGatewayRouteAttachment.h:129
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
TransitGatewayAttachmentResourceType.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TransitGatewayRouteAttachment::SetResourceId
void SetResourceId(const char *value)
Definition: TransitGatewayRouteAttachment.h:66
Aws::EC2::Model::TransitGatewayRouteAttachment::TransitGatewayRouteAttachment
TransitGatewayRouteAttachment()
Aws::EC2::Model::TransitGatewayRouteAttachment::TransitGatewayAttachmentIdHasBeenSet
bool TransitGatewayAttachmentIdHasBeenSet() const
Definition: TransitGatewayRouteAttachment.h:92
Aws::EC2::Model::TransitGatewayRouteAttachment::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: TransitGatewayRouteAttachment.h:56
Aws::EC2::Model::TransitGatewayRouteAttachment::WithResourceType
TransitGatewayRouteAttachment & WithResourceType(const TransitGatewayAttachmentResourceType &value)
Definition: TransitGatewayRouteAttachment.h:153
Aws::EC2::Model::TransitGatewayRouteAttachment::SetResourceType
void SetResourceType(TransitGatewayAttachmentResourceType &&value)
Definition: TransitGatewayRouteAttachment.h:147
AWSString.h
Aws::EC2::Model::TransitGatewayRouteAttachment::operator=
TransitGatewayRouteAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayRouteAttachment::WithResourceId
TransitGatewayRouteAttachment & WithResourceId(const Aws::String &value)
Definition: TransitGatewayRouteAttachment.h:71
Aws::EC2::Model::TransitGatewayRouteAttachment::TransitGatewayRouteAttachment
TransitGatewayRouteAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayRouteAttachment::SetResourceType
void SetResourceType(const TransitGatewayAttachmentResourceType &value)
Definition: TransitGatewayRouteAttachment.h:141
Aws::EC2::Model::TransitGatewayRouteAttachment::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const Aws::String &value)
Definition: TransitGatewayRouteAttachment.h:97
Aws::EC2::Model::TransitGatewayRouteAttachment::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: TransitGatewayRouteAttachment.h:51
Aws::EC2::Model::TransitGatewayRouteAttachment::GetResourceId
const Aws::String & GetResourceId() const
Definition: TransitGatewayRouteAttachment.h:46
Aws::EC2::Model::TransitGatewayRouteAttachment::WithResourceType
TransitGatewayRouteAttachment & WithResourceType(TransitGatewayAttachmentResourceType &&value)
Definition: TransitGatewayRouteAttachment.h:159
Aws::EC2::Model::TransitGatewayRouteAttachment::WithTransitGatewayAttachmentId
TransitGatewayRouteAttachment & WithTransitGatewayAttachmentId(const Aws::String &value)
Definition: TransitGatewayRouteAttachment.h:112
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TransitGatewayRouteAttachment::WithTransitGatewayAttachmentId
TransitGatewayRouteAttachment & WithTransitGatewayAttachmentId(Aws::String &&value)
Definition: TransitGatewayRouteAttachment.h:117
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::TransitGatewayRouteAttachment::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(Aws::String &&value)
Definition: TransitGatewayRouteAttachment.h:102
Aws::EC2::Model::TransitGatewayRouteAttachment
Definition: TransitGatewayRouteAttachment.h:33
EC2_EXPORTS.h
Aws::EC2::Model::TransitGatewayRouteAttachment::GetTransitGatewayAttachmentId
const Aws::String & GetTransitGatewayAttachmentId() const
Definition: TransitGatewayRouteAttachment.h:87
Aws::EC2::Model::TransitGatewayRouteAttachment::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const char *value)
Definition: TransitGatewayRouteAttachment.h:107
Aws::EC2::Model::TransitGatewayRouteAttachment::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: TransitGatewayRouteAttachment.h:135