AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LocalGateway.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/Tag.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
34 {
35 public:
36 AWS_EC2_API LocalGateway();
37 AWS_EC2_API LocalGateway(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_EC2_API LocalGateway& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetLocalGatewayId() const{ return m_localGatewayId; }
49 inline bool LocalGatewayIdHasBeenSet() const { return m_localGatewayIdHasBeenSet; }
50 inline void SetLocalGatewayId(const Aws::String& value) { m_localGatewayIdHasBeenSet = true; m_localGatewayId = value; }
51 inline void SetLocalGatewayId(Aws::String&& value) { m_localGatewayIdHasBeenSet = true; m_localGatewayId = std::move(value); }
52 inline void SetLocalGatewayId(const char* value) { m_localGatewayIdHasBeenSet = true; m_localGatewayId.assign(value); }
53 inline LocalGateway& WithLocalGatewayId(const Aws::String& value) { SetLocalGatewayId(value); return *this;}
54 inline LocalGateway& WithLocalGatewayId(Aws::String&& value) { SetLocalGatewayId(std::move(value)); return *this;}
55 inline LocalGateway& WithLocalGatewayId(const char* value) { SetLocalGatewayId(value); return *this;}
57
59
62 inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
63 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
64 inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; }
65 inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); }
66 inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); }
67 inline LocalGateway& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;}
68 inline LocalGateway& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;}
69 inline LocalGateway& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;}
71
73
76 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
77 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
78 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
79 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
80 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
81 inline LocalGateway& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
82 inline LocalGateway& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
83 inline LocalGateway& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
85
87
90 inline const Aws::String& GetState() const{ return m_state; }
91 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
92 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
93 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
94 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
95 inline LocalGateway& WithState(const Aws::String& value) { SetState(value); return *this;}
96 inline LocalGateway& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
97 inline LocalGateway& WithState(const char* value) { SetState(value); return *this;}
99
101
104 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
105 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
106 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
107 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
108 inline LocalGateway& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
109 inline LocalGateway& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
110 inline LocalGateway& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
111 inline LocalGateway& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
113 private:
114
115 Aws::String m_localGatewayId;
116 bool m_localGatewayIdHasBeenSet = false;
117
118 Aws::String m_outpostArn;
119 bool m_outpostArnHasBeenSet = false;
120
121 Aws::String m_ownerId;
122 bool m_ownerIdHasBeenSet = false;
123
124 Aws::String m_state;
125 bool m_stateHasBeenSet = false;
126
127 Aws::Vector<Tag> m_tags;
128 bool m_tagsHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace EC2
133} // namespace Aws
AWS_EC2_API LocalGateway & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Tag > & GetTags() const
void SetState(Aws::String &&value)
void SetLocalGatewayId(const char *value)
void SetOwnerId(const Aws::String &value)
LocalGateway & WithState(Aws::String &&value)
void SetTags(Aws::Vector< Tag > &&value)
LocalGateway & WithTags(const Aws::Vector< Tag > &value)
void SetLocalGatewayId(Aws::String &&value)
LocalGateway & WithTags(Aws::Vector< Tag > &&value)
void SetState(const char *value)
void SetLocalGatewayId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetOutpostArn(const Aws::String &value)
LocalGateway & AddTags(const Tag &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LocalGateway & WithLocalGatewayId(const Aws::String &value)
const Aws::String & GetState() const
void SetState(const Aws::String &value)
const Aws::String & GetOutpostArn() const
LocalGateway & WithOwnerId(const Aws::String &value)
void SetOutpostArn(Aws::String &&value)
LocalGateway & WithOutpostArn(const Aws::String &value)
LocalGateway & WithOwnerId(const char *value)
LocalGateway & WithState(const char *value)
LocalGateway & WithLocalGatewayId(const char *value)
bool LocalGatewayIdHasBeenSet() const
void SetOwnerId(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
LocalGateway & WithState(const Aws::String &value)
const Aws::String & GetOwnerId() const
const Aws::String & GetLocalGatewayId() const
LocalGateway & AddTags(Tag &&value)
LocalGateway & WithOutpostArn(Aws::String &&value)
AWS_EC2_API LocalGateway(const Aws::Utils::Xml::XmlNode &xmlNode)
LocalGateway & WithOutpostArn(const char *value)
LocalGateway & WithOwnerId(Aws::String &&value)
LocalGateway & WithLocalGatewayId(Aws::String &&value)
void SetOutpostArn(const char *value)
void SetOwnerId(const char *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