AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CarrierGateway.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/CarrierGatewayState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_EC2_API CarrierGateway();
38 AWS_EC2_API CarrierGateway(const Aws::Utils::Xml::XmlNode& xmlNode);
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& GetCarrierGatewayId() const{ return m_carrierGatewayId; }
50 inline bool CarrierGatewayIdHasBeenSet() const { return m_carrierGatewayIdHasBeenSet; }
51 inline void SetCarrierGatewayId(const Aws::String& value) { m_carrierGatewayIdHasBeenSet = true; m_carrierGatewayId = value; }
52 inline void SetCarrierGatewayId(Aws::String&& value) { m_carrierGatewayIdHasBeenSet = true; m_carrierGatewayId = std::move(value); }
53 inline void SetCarrierGatewayId(const char* value) { m_carrierGatewayIdHasBeenSet = true; m_carrierGatewayId.assign(value); }
54 inline CarrierGateway& WithCarrierGatewayId(const Aws::String& value) { SetCarrierGatewayId(value); return *this;}
55 inline CarrierGateway& WithCarrierGatewayId(Aws::String&& value) { SetCarrierGatewayId(std::move(value)); return *this;}
56 inline CarrierGateway& WithCarrierGatewayId(const char* value) { SetCarrierGatewayId(value); return *this;}
58
60
63 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
64 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
65 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
66 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
67 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
68 inline CarrierGateway& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
69 inline CarrierGateway& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
70 inline CarrierGateway& WithVpcId(const char* value) { SetVpcId(value); return *this;}
72
74
77 inline const CarrierGatewayState& GetState() const{ return m_state; }
78 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
79 inline void SetState(const CarrierGatewayState& value) { m_stateHasBeenSet = true; m_state = value; }
80 inline void SetState(CarrierGatewayState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
81 inline CarrierGateway& WithState(const CarrierGatewayState& value) { SetState(value); return *this;}
82 inline CarrierGateway& WithState(CarrierGatewayState&& value) { SetState(std::move(value)); return *this;}
84
86
89 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
90 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
91 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
92 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
93 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
94 inline CarrierGateway& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
95 inline CarrierGateway& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
96 inline CarrierGateway& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
98
100
103 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
104 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
105 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
106 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
107 inline CarrierGateway& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
108 inline CarrierGateway& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
109 inline CarrierGateway& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
110 inline CarrierGateway& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
112 private:
113
114 Aws::String m_carrierGatewayId;
115 bool m_carrierGatewayIdHasBeenSet = false;
116
117 Aws::String m_vpcId;
118 bool m_vpcIdHasBeenSet = false;
119
120 CarrierGatewayState m_state;
121 bool m_stateHasBeenSet = false;
122
123 Aws::String m_ownerId;
124 bool m_ownerIdHasBeenSet = false;
125
126 Aws::Vector<Tag> m_tags;
127 bool m_tagsHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace EC2
132} // namespace Aws
AWS_EC2_API CarrierGateway(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API CarrierGateway & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CarrierGateway & WithCarrierGatewayId(const Aws::String &value)
void SetCarrierGatewayId(const char *value)
CarrierGateway & WithVpcId(const char *value)
CarrierGateway & WithTags(const Aws::Vector< Tag > &value)
CarrierGateway & WithVpcId(const Aws::String &value)
void SetVpcId(Aws::String &&value)
CarrierGateway & WithOwnerId(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
CarrierGateway & AddTags(Tag &&value)
void SetCarrierGatewayId(Aws::String &&value)
CarrierGateway & WithTags(Aws::Vector< Tag > &&value)
const Aws::String & GetVpcId() const
void SetOwnerId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetOwnerId(Aws::String &&value)
void SetCarrierGatewayId(const Aws::String &value)
CarrierGateway & WithOwnerId(const char *value)
const Aws::String & GetOwnerId() const
void SetTags(const Aws::Vector< Tag > &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CarrierGateway & WithVpcId(Aws::String &&value)
CarrierGateway & WithState(const CarrierGatewayState &value)
CarrierGateway & AddTags(const Tag &value)
void SetOwnerId(const Aws::String &value)
void SetState(const CarrierGatewayState &value)
void SetVpcId(const char *value)
CarrierGateway & WithState(CarrierGatewayState &&value)
const Aws::String & GetCarrierGatewayId() const
void SetTags(Aws::Vector< Tag > &&value)
CarrierGateway & WithCarrierGatewayId(Aws::String &&value)
CarrierGateway & WithCarrierGatewayId(const char *value)
void SetVpcId(const Aws::String &value)
void SetState(CarrierGatewayState &&value)
const CarrierGatewayState & GetState() const
CarrierGateway & WithOwnerId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream