AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TransitGatewayAssociation.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 <aws/ec2/model/TransitGatewayAttachmentResourceType.h>
11#include <aws/ec2/model/TransitGatewayAssociationState.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
35 {
36 public:
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetTransitGatewayRouteTableId() const{ return m_transitGatewayRouteTableId; }
50 inline bool TransitGatewayRouteTableIdHasBeenSet() const { return m_transitGatewayRouteTableIdHasBeenSet; }
51 inline void SetTransitGatewayRouteTableId(const Aws::String& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = value; }
52 inline void SetTransitGatewayRouteTableId(Aws::String&& value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId = std::move(value); }
53 inline void SetTransitGatewayRouteTableId(const char* value) { m_transitGatewayRouteTableIdHasBeenSet = true; m_transitGatewayRouteTableId.assign(value); }
58
60
63 inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
64 inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
65 inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
66 inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
67 inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
72
74
77 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
78 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
79 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
80 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
81 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
82 inline TransitGatewayAssociation& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
83 inline TransitGatewayAssociation& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
84 inline TransitGatewayAssociation& WithResourceId(const char* value) { SetResourceId(value); return *this;}
86
88
92 inline const TransitGatewayAttachmentResourceType& GetResourceType() const{ return m_resourceType; }
93 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
94 inline void SetResourceType(const TransitGatewayAttachmentResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
95 inline void SetResourceType(TransitGatewayAttachmentResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
99
101
104 inline const TransitGatewayAssociationState& GetState() const{ return m_state; }
105 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
106 inline void SetState(const TransitGatewayAssociationState& value) { m_stateHasBeenSet = true; m_state = value; }
107 inline void SetState(TransitGatewayAssociationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
108 inline TransitGatewayAssociation& WithState(const TransitGatewayAssociationState& value) { SetState(value); return *this;}
109 inline TransitGatewayAssociation& WithState(TransitGatewayAssociationState&& value) { SetState(std::move(value)); return *this;}
111 private:
112
113 Aws::String m_transitGatewayRouteTableId;
114 bool m_transitGatewayRouteTableIdHasBeenSet = false;
115
116 Aws::String m_transitGatewayAttachmentId;
117 bool m_transitGatewayAttachmentIdHasBeenSet = false;
118
119 Aws::String m_resourceId;
120 bool m_resourceIdHasBeenSet = false;
121
123 bool m_resourceTypeHasBeenSet = false;
124
126 bool m_stateHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace EC2
131} // namespace Aws
void SetState(TransitGatewayAssociationState &&value)
TransitGatewayAssociation & WithResourceId(const Aws::String &value)
TransitGatewayAssociation & WithTransitGatewayAttachmentId(const Aws::String &value)
TransitGatewayAssociation & WithTransitGatewayRouteTableId(const char *value)
const TransitGatewayAssociationState & GetState() const
void SetTransitGatewayRouteTableId(const Aws::String &value)
TransitGatewayAssociation & WithTransitGatewayRouteTableId(const Aws::String &value)
void SetResourceType(const TransitGatewayAttachmentResourceType &value)
TransitGatewayAssociation & WithResourceId(Aws::String &&value)
TransitGatewayAssociation & WithResourceType(const TransitGatewayAttachmentResourceType &value)
void SetTransitGatewayAttachmentId(const Aws::String &value)
TransitGatewayAssociation & WithState(TransitGatewayAssociationState &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TransitGatewayAssociation & WithState(const TransitGatewayAssociationState &value)
AWS_EC2_API TransitGatewayAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayAssociation & WithResourceType(TransitGatewayAttachmentResourceType &&value)
TransitGatewayAssociation & WithTransitGatewayRouteTableId(Aws::String &&value)
TransitGatewayAssociation & WithTransitGatewayAttachmentId(Aws::String &&value)
TransitGatewayAssociation & WithResourceId(const char *value)
void SetResourceType(TransitGatewayAttachmentResourceType &&value)
const TransitGatewayAttachmentResourceType & GetResourceType() const
void SetState(const TransitGatewayAssociationState &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayAssociation & WithTransitGatewayAttachmentId(const char *value)
AWS_EC2_API TransitGatewayAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream