AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
50 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
51 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
52 inline TransitGatewayRouteAttachment& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
53 inline TransitGatewayRouteAttachment& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
54 inline TransitGatewayRouteAttachment& WithResourceId(const char* value) { SetResourceId(value); return *this;}
56
58
61 inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
62 inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
63 inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
64 inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
65 inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
70
72
76 inline const TransitGatewayAttachmentResourceType& GetResourceType() const{ return m_resourceType; }
77 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
78 inline void SetResourceType(const TransitGatewayAttachmentResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
79 inline void SetResourceType(TransitGatewayAttachmentResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
83 private:
84
85 Aws::String m_resourceId;
86 bool m_resourceIdHasBeenSet = false;
87
88 Aws::String m_transitGatewayAttachmentId;
89 bool m_transitGatewayAttachmentIdHasBeenSet = false;
90
92 bool m_resourceTypeHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace EC2
97} // namespace Aws
TransitGatewayRouteAttachment & WithResourceId(const char *value)
TransitGatewayRouteAttachment & WithResourceId(const Aws::String &value)
TransitGatewayRouteAttachment & WithTransitGatewayAttachmentId(const Aws::String &value)
AWS_EC2_API TransitGatewayRouteAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayRouteAttachment & WithTransitGatewayAttachmentId(const char *value)
TransitGatewayRouteAttachment & WithResourceId(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TransitGatewayRouteAttachment & WithResourceType(const TransitGatewayAttachmentResourceType &value)
void SetResourceType(TransitGatewayAttachmentResourceType &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayRouteAttachment & WithResourceType(TransitGatewayAttachmentResourceType &&value)
TransitGatewayRouteAttachment & WithTransitGatewayAttachmentId(Aws::String &&value)
const TransitGatewayAttachmentResourceType & GetResourceType() const
void SetResourceType(const 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