AWS SDK for C++  1.9.104
AWS SDK for C++
EC2SecurityGroup.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/redshift/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace Redshift
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  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 
113  inline EC2SecurityGroup& WithEC2SecurityGroupName(const Aws::String& value) { SetEC2SecurityGroupName(value); return *this;}
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 
160  inline EC2SecurityGroup& WithEC2SecurityGroupOwnerId(const Aws::String& value) { SetEC2SecurityGroupOwnerId(value); return *this;}
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;
219 
220  Aws::String m_eC2SecurityGroupName;
221  bool m_eC2SecurityGroupNameHasBeenSet;
222 
223  Aws::String m_eC2SecurityGroupOwnerId;
224  bool m_eC2SecurityGroupOwnerIdHasBeenSet;
225 
226  Aws::Vector<Tag> m_tags;
227  bool m_tagsHasBeenSet;
228  };
229 
230 } // namespace Model
231 } // namespace Redshift
232 } // namespace Aws
Aws::Redshift::Model::Tag
Definition: Tag.h:33
Aws::Redshift::Model::EC2SecurityGroup::SetStatus
void SetStatus(const char *value)
Definition: EC2SecurityGroup.h:67
Aws::Redshift::Model::EC2SecurityGroup::SetEC2SecurityGroupName
void SetEC2SecurityGroupName(const char *value)
Definition: EC2SecurityGroup.h:108
Aws::Redshift::Model::EC2SecurityGroup::WithEC2SecurityGroupName
EC2SecurityGroup & WithEC2SecurityGroupName(Aws::String &&value)
Definition: EC2SecurityGroup.h:118
Aws::Redshift::Model::EC2SecurityGroup::SetEC2SecurityGroupName
void SetEC2SecurityGroupName(Aws::String &&value)
Definition: EC2SecurityGroup.h:103
Aws::Redshift::Model::EC2SecurityGroup::WithStatus
EC2SecurityGroup & WithStatus(const Aws::String &value)
Definition: EC2SecurityGroup.h:72
Aws::Redshift::Model::EC2SecurityGroup::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: EC2SecurityGroup.h:178
Aws::Redshift::Model::EC2SecurityGroup::SetStatus
void SetStatus(Aws::String &&value)
Definition: EC2SecurityGroup.h:62
Aws::Redshift::Model::EC2SecurityGroup::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: EC2SecurityGroup.h:188
Aws::Redshift::Model::EC2SecurityGroup::WithEC2SecurityGroupName
EC2SecurityGroup & WithEC2SecurityGroupName(const Aws::String &value)
Definition: EC2SecurityGroup.h:113
Aws::Redshift::Model::EC2SecurityGroup
Definition: EC2SecurityGroup.h:34
Aws::Redshift::Model::EC2SecurityGroup::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::EC2SecurityGroup::SetEC2SecurityGroupOwnerId
void SetEC2SecurityGroupOwnerId(Aws::String &&value)
Definition: EC2SecurityGroup.h:148
Aws::Redshift::Model::EC2SecurityGroup::operator=
EC2SecurityGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Tag.h
Aws::Redshift::Model::EC2SecurityGroup::WithStatus
EC2SecurityGroup & WithStatus(const char *value)
Definition: EC2SecurityGroup.h:82
Aws::Redshift::Model::EC2SecurityGroup::WithTags
EC2SecurityGroup & WithTags(Aws::Vector< Tag > &&value)
Definition: EC2SecurityGroup.h:203
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::Redshift::Model::EC2SecurityGroup::GetEC2SecurityGroupOwnerId
const Aws::String & GetEC2SecurityGroupOwnerId() const
Definition: EC2SecurityGroup.h:130
AWSVector.h
Aws::Redshift::Model::EC2SecurityGroup::SetEC2SecurityGroupName
void SetEC2SecurityGroupName(const Aws::String &value)
Definition: EC2SecurityGroup.h:98
Aws::Redshift::Model::EC2SecurityGroup::EC2SecurityGroup
EC2SecurityGroup()
Aws::Redshift::Model::EC2SecurityGroup::AddTags
EC2SecurityGroup & AddTags(const Tag &value)
Definition: EC2SecurityGroup.h:208
Aws::Redshift::Model::EC2SecurityGroup::SetEC2SecurityGroupOwnerId
void SetEC2SecurityGroupOwnerId(const char *value)
Definition: EC2SecurityGroup.h:154
Aws::Redshift::Model::EC2SecurityGroup::WithStatus
EC2SecurityGroup & WithStatus(Aws::String &&value)
Definition: EC2SecurityGroup.h:77
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::EC2SecurityGroup::WithTags
EC2SecurityGroup & WithTags(const Aws::Vector< Tag > &value)
Definition: EC2SecurityGroup.h:198
Aws::Redshift::Model::EC2SecurityGroup::AddTags
EC2SecurityGroup & AddTags(Tag &&value)
Definition: EC2SecurityGroup.h:213
Aws::Redshift::Model::EC2SecurityGroup::WithEC2SecurityGroupName
EC2SecurityGroup & WithEC2SecurityGroupName(const char *value)
Definition: EC2SecurityGroup.h:123
Aws::Redshift::Model::EC2SecurityGroup::WithEC2SecurityGroupOwnerId
EC2SecurityGroup & WithEC2SecurityGroupOwnerId(const Aws::String &value)
Definition: EC2SecurityGroup.h:160
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::EC2SecurityGroup::SetEC2SecurityGroupOwnerId
void SetEC2SecurityGroupOwnerId(const Aws::String &value)
Definition: EC2SecurityGroup.h:142
AWSString.h
Aws::Redshift::Model::EC2SecurityGroup::GetEC2SecurityGroupName
const Aws::String & GetEC2SecurityGroupName() const
Definition: EC2SecurityGroup.h:88
Aws::Redshift::Model::EC2SecurityGroup::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: EC2SecurityGroup.h:183
Aws::Redshift::Model::EC2SecurityGroup::EC2SecurityGroupOwnerIdHasBeenSet
bool EC2SecurityGroupOwnerIdHasBeenSet() const
Definition: EC2SecurityGroup.h:136
Aws::Redshift::Model::EC2SecurityGroup::WithEC2SecurityGroupOwnerId
EC2SecurityGroup & WithEC2SecurityGroupOwnerId(const char *value)
Definition: EC2SecurityGroup.h:172
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::EC2SecurityGroup::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: EC2SecurityGroup.h:52
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::EC2SecurityGroup::EC2SecurityGroup
EC2SecurityGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::EC2SecurityGroup::EC2SecurityGroupNameHasBeenSet
bool EC2SecurityGroupNameHasBeenSet() const
Definition: EC2SecurityGroup.h:93
Aws::Redshift::Model::EC2SecurityGroup::SetStatus
void SetStatus(const Aws::String &value)
Definition: EC2SecurityGroup.h:57
Aws::Redshift::Model::EC2SecurityGroup::WithEC2SecurityGroupOwnerId
EC2SecurityGroup & WithEC2SecurityGroupOwnerId(Aws::String &&value)
Definition: EC2SecurityGroup.h:166
Aws::Redshift::Model::EC2SecurityGroup::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: EC2SecurityGroup.h:193
Aws::Redshift::Model::EC2SecurityGroup::GetStatus
const Aws::String & GetStatus() const
Definition: EC2SecurityGroup.h:47
Aws::Redshift::Model::EC2SecurityGroup::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const