AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TransitGatewayRouteAttachment.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/TransitGatewayAttachmentResourceType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
29 public:
30 AWS_EC2_API TransitGatewayRouteAttachment() = default;
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetResourceId() const { return m_resourceId; }
42 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
43 template <typename ResourceIdT = Aws::String>
44 void SetResourceId(ResourceIdT&& value) {
45 m_resourceIdHasBeenSet = true;
46 m_resourceId = std::forward<ResourceIdT>(value);
47 }
48 template <typename ResourceIdT = Aws::String>
50 SetResourceId(std::forward<ResourceIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetTransitGatewayAttachmentId() const { return m_transitGatewayAttachmentId; }
60 inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
61 template <typename TransitGatewayAttachmentIdT = Aws::String>
62 void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) {
63 m_transitGatewayAttachmentIdHasBeenSet = true;
64 m_transitGatewayAttachmentId = std::forward<TransitGatewayAttachmentIdT>(value);
65 }
66 template <typename TransitGatewayAttachmentIdT = Aws::String>
67 TransitGatewayRouteAttachment& WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) {
68 SetTransitGatewayAttachmentId(std::forward<TransitGatewayAttachmentIdT>(value));
69 return *this;
70 }
72
74
78 inline TransitGatewayAttachmentResourceType GetResourceType() const { return m_resourceType; }
79 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
81 m_resourceTypeHasBeenSet = true;
82 m_resourceType = value;
83 }
85 SetResourceType(value);
86 return *this;
87 }
89 private:
90 Aws::String m_resourceId;
91
92 Aws::String m_transitGatewayAttachmentId;
93
95 bool m_resourceIdHasBeenSet = false;
96 bool m_transitGatewayAttachmentIdHasBeenSet = false;
97 bool m_resourceTypeHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace EC2
102} // namespace Aws
void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
TransitGatewayAttachmentResourceType GetResourceType() const
AWS_EC2_API TransitGatewayRouteAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetResourceType(TransitGatewayAttachmentResourceType value)
TransitGatewayRouteAttachment & WithResourceId(ResourceIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayRouteAttachment & WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
TransitGatewayRouteAttachment & WithResourceType(TransitGatewayAttachmentResourceType value)
AWS_EC2_API TransitGatewayRouteAttachment & operator=(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