AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
EC2SecurityGroup.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace Redshift
24{
25namespace Model
26{
27
34 {
35 public:
39
40 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
47 inline const Aws::String& GetStatus() const{ return m_status; }
48
52 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
53
57 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
58
62 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
63
67 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
68
72 inline EC2SecurityGroup& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
73
77 inline EC2SecurityGroup& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
78
82 inline EC2SecurityGroup& WithStatus(const char* value) { SetStatus(value); return *this;}
83
84
88 inline const Aws::String& GetEC2SecurityGroupName() const{ return m_eC2SecurityGroupName; }
89
93 inline bool EC2SecurityGroupNameHasBeenSet() const { return m_eC2SecurityGroupNameHasBeenSet; }
94
98 inline void SetEC2SecurityGroupName(const Aws::String& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = value; }
99
103 inline void SetEC2SecurityGroupName(Aws::String&& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = std::move(value); }
104
108 inline void SetEC2SecurityGroupName(const char* value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName.assign(value); }
109
114
118 inline EC2SecurityGroup& WithEC2SecurityGroupName(Aws::String&& value) { SetEC2SecurityGroupName(std::move(value)); return *this;}
119
123 inline EC2SecurityGroup& WithEC2SecurityGroupName(const char* value) { SetEC2SecurityGroupName(value); return *this;}
124
125
130 inline const Aws::String& GetEC2SecurityGroupOwnerId() const{ return m_eC2SecurityGroupOwnerId; }
131
136 inline bool EC2SecurityGroupOwnerIdHasBeenSet() const { return m_eC2SecurityGroupOwnerIdHasBeenSet; }
137
142 inline void SetEC2SecurityGroupOwnerId(const Aws::String& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = value; }
143
148 inline void SetEC2SecurityGroupOwnerId(Aws::String&& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = std::move(value); }
149
154 inline void SetEC2SecurityGroupOwnerId(const char* value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId.assign(value); }
155
161
166 inline EC2SecurityGroup& WithEC2SecurityGroupOwnerId(Aws::String&& value) { SetEC2SecurityGroupOwnerId(std::move(value)); return *this;}
167
172 inline EC2SecurityGroup& WithEC2SecurityGroupOwnerId(const char* value) { SetEC2SecurityGroupOwnerId(value); return *this;}
173
174
178 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
179
183 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
184
188 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
189
193 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
194
198 inline EC2SecurityGroup& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
199
203 inline EC2SecurityGroup& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
204
208 inline EC2SecurityGroup& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
209
213 inline EC2SecurityGroup& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
214
215 private:
216
217 Aws::String m_status;
218 bool m_statusHasBeenSet = false;
219
220 Aws::String m_eC2SecurityGroupName;
221 bool m_eC2SecurityGroupNameHasBeenSet = false;
222
223 Aws::String m_eC2SecurityGroupOwnerId;
224 bool m_eC2SecurityGroupOwnerIdHasBeenSet = false;
225
226 Aws::Vector<Tag> m_tags;
227 bool m_tagsHasBeenSet = false;
228 };
229
230} // namespace Model
231} // namespace Redshift
232} // namespace Aws
#define AWS_REDSHIFT_API
void SetEC2SecurityGroupName(const Aws::String &value)
EC2SecurityGroup & WithStatus(const char *value)
EC2SecurityGroup & WithEC2SecurityGroupOwnerId(const Aws::String &value)
EC2SecurityGroup & WithEC2SecurityGroupName(const Aws::String &value)
EC2SecurityGroup & WithEC2SecurityGroupName(Aws::String &&value)
void SetEC2SecurityGroupOwnerId(const Aws::String &value)
const Aws::String & GetStatus() const
void SetStatus(Aws::String &&value)
EC2SecurityGroup & WithTags(const Aws::Vector< Tag > &value)
void SetTags(const Aws::Vector< Tag > &value)
EC2SecurityGroup & WithStatus(Aws::String &&value)
const Aws::String & GetEC2SecurityGroupName() const
const Aws::Vector< Tag > & GetTags() const
EC2SecurityGroup & AddTags(Tag &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetEC2SecurityGroupOwnerId() const
EC2SecurityGroup & WithTags(Aws::Vector< Tag > &&value)
EC2SecurityGroup & WithEC2SecurityGroupName(const char *value)
void SetEC2SecurityGroupOwnerId(const char *value)
EC2SecurityGroup & WithEC2SecurityGroupOwnerId(const char *value)
EC2SecurityGroup & WithStatus(const Aws::String &value)
EC2SecurityGroup & WithEC2SecurityGroupOwnerId(Aws::String &&value)
EC2SecurityGroup & AddTags(const Tag &value)
AWS_REDSHIFT_API EC2SecurityGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTags(Aws::Vector< Tag > &&value)
void SetStatus(const Aws::String &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetEC2SecurityGroupName(const char *value)
AWS_REDSHIFT_API EC2SecurityGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEC2SecurityGroupOwnerId(Aws::String &&value)
void SetEC2SecurityGroupName(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