AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TransitGatewayRouteAttachment.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 <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_EC2_API TransitGatewayRouteAttachment() = default;
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetResourceId() const { return m_resourceId; }
48 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
49 template<typename ResourceIdT = Aws::String>
50 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
51 template<typename ResourceIdT = Aws::String>
52 TransitGatewayRouteAttachment& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
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) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::forward<TransitGatewayAttachmentIdT>(value); }
63 template<typename TransitGatewayAttachmentIdT = Aws::String>
64 TransitGatewayRouteAttachment& WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) { SetTransitGatewayAttachmentId(std::forward<TransitGatewayAttachmentIdT>(value)); return *this;}
66
68
72 inline TransitGatewayAttachmentResourceType GetResourceType() const { return m_resourceType; }
73 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
74 inline void SetResourceType(TransitGatewayAttachmentResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
77 private:
78
79 Aws::String m_resourceId;
80 bool m_resourceIdHasBeenSet = false;
81
82 Aws::String m_transitGatewayAttachmentId;
83 bool m_transitGatewayAttachmentIdHasBeenSet = false;
84
86 bool m_resourceTypeHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace EC2
91} // 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