AWS SDK for C++  1.9.109
AWS SDK for C++
EC2SecurityGroup.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace RDS
22 {
23 namespace Model
24 {
25 
36  {
37  public:
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
50  inline const Aws::String& GetStatus() const{ return m_status; }
51 
56  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
57 
62  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
63 
68  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
69 
74  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
75 
80  inline EC2SecurityGroup& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
81 
86  inline EC2SecurityGroup& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
87 
92  inline EC2SecurityGroup& WithStatus(const char* value) { SetStatus(value); return *this;}
93 
94 
98  inline const Aws::String& GetEC2SecurityGroupName() const{ return m_eC2SecurityGroupName; }
99 
103  inline bool EC2SecurityGroupNameHasBeenSet() const { return m_eC2SecurityGroupNameHasBeenSet; }
104 
108  inline void SetEC2SecurityGroupName(const Aws::String& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = value; }
109 
113  inline void SetEC2SecurityGroupName(Aws::String&& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = std::move(value); }
114 
118  inline void SetEC2SecurityGroupName(const char* value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName.assign(value); }
119 
123  inline EC2SecurityGroup& WithEC2SecurityGroupName(const Aws::String& value) { SetEC2SecurityGroupName(value); return *this;}
124 
128  inline EC2SecurityGroup& WithEC2SecurityGroupName(Aws::String&& value) { SetEC2SecurityGroupName(std::move(value)); return *this;}
129 
133  inline EC2SecurityGroup& WithEC2SecurityGroupName(const char* value) { SetEC2SecurityGroupName(value); return *this;}
134 
135 
139  inline const Aws::String& GetEC2SecurityGroupId() const{ return m_eC2SecurityGroupId; }
140 
144  inline bool EC2SecurityGroupIdHasBeenSet() const { return m_eC2SecurityGroupIdHasBeenSet; }
145 
149  inline void SetEC2SecurityGroupId(const Aws::String& value) { m_eC2SecurityGroupIdHasBeenSet = true; m_eC2SecurityGroupId = value; }
150 
154  inline void SetEC2SecurityGroupId(Aws::String&& value) { m_eC2SecurityGroupIdHasBeenSet = true; m_eC2SecurityGroupId = std::move(value); }
155 
159  inline void SetEC2SecurityGroupId(const char* value) { m_eC2SecurityGroupIdHasBeenSet = true; m_eC2SecurityGroupId.assign(value); }
160 
164  inline EC2SecurityGroup& WithEC2SecurityGroupId(const Aws::String& value) { SetEC2SecurityGroupId(value); return *this;}
165 
169  inline EC2SecurityGroup& WithEC2SecurityGroupId(Aws::String&& value) { SetEC2SecurityGroupId(std::move(value)); return *this;}
170 
174  inline EC2SecurityGroup& WithEC2SecurityGroupId(const char* value) { SetEC2SecurityGroupId(value); return *this;}
175 
176 
181  inline const Aws::String& GetEC2SecurityGroupOwnerId() const{ return m_eC2SecurityGroupOwnerId; }
182 
187  inline bool EC2SecurityGroupOwnerIdHasBeenSet() const { return m_eC2SecurityGroupOwnerIdHasBeenSet; }
188 
193  inline void SetEC2SecurityGroupOwnerId(const Aws::String& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = value; }
194 
199  inline void SetEC2SecurityGroupOwnerId(Aws::String&& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = std::move(value); }
200 
205  inline void SetEC2SecurityGroupOwnerId(const char* value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId.assign(value); }
206 
211  inline EC2SecurityGroup& WithEC2SecurityGroupOwnerId(const Aws::String& value) { SetEC2SecurityGroupOwnerId(value); return *this;}
212 
217  inline EC2SecurityGroup& WithEC2SecurityGroupOwnerId(Aws::String&& value) { SetEC2SecurityGroupOwnerId(std::move(value)); return *this;}
218 
223  inline EC2SecurityGroup& WithEC2SecurityGroupOwnerId(const char* value) { SetEC2SecurityGroupOwnerId(value); return *this;}
224 
225  private:
226 
227  Aws::String m_status;
228  bool m_statusHasBeenSet;
229 
230  Aws::String m_eC2SecurityGroupName;
231  bool m_eC2SecurityGroupNameHasBeenSet;
232 
233  Aws::String m_eC2SecurityGroupId;
234  bool m_eC2SecurityGroupIdHasBeenSet;
235 
236  Aws::String m_eC2SecurityGroupOwnerId;
237  bool m_eC2SecurityGroupOwnerIdHasBeenSet;
238  };
239 
240 } // namespace Model
241 } // namespace RDS
242 } // namespace Aws
Aws::RDS::Model::EC2SecurityGroup::SetEC2SecurityGroupName
void SetEC2SecurityGroupName(const char *value)
Definition: EC2SecurityGroup.h:118
Aws::RDS::Model::EC2SecurityGroup::WithEC2SecurityGroupId
EC2SecurityGroup & WithEC2SecurityGroupId(const char *value)
Definition: EC2SecurityGroup.h:174
Aws::RDS::Model::EC2SecurityGroup::SetEC2SecurityGroupId
void SetEC2SecurityGroupId(const Aws::String &value)
Definition: EC2SecurityGroup.h:149
Aws::RDS::Model::EC2SecurityGroup::EC2SecurityGroup
EC2SecurityGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::EC2SecurityGroup::WithEC2SecurityGroupId
EC2SecurityGroup & WithEC2SecurityGroupId(const Aws::String &value)
Definition: EC2SecurityGroup.h:164
Aws::RDS::Model::EC2SecurityGroup::WithStatus
EC2SecurityGroup & WithStatus(const char *value)
Definition: EC2SecurityGroup.h:92
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::EC2SecurityGroup::EC2SecurityGroupNameHasBeenSet
bool EC2SecurityGroupNameHasBeenSet() const
Definition: EC2SecurityGroup.h:103
Aws::RDS::Model::EC2SecurityGroup::WithEC2SecurityGroupOwnerId
EC2SecurityGroup & WithEC2SecurityGroupOwnerId(Aws::String &&value)
Definition: EC2SecurityGroup.h:217
Aws::RDS::Model::EC2SecurityGroup::WithEC2SecurityGroupName
EC2SecurityGroup & WithEC2SecurityGroupName(Aws::String &&value)
Definition: EC2SecurityGroup.h:128
Aws::RDS::Model::EC2SecurityGroup::SetEC2SecurityGroupOwnerId
void SetEC2SecurityGroupOwnerId(Aws::String &&value)
Definition: EC2SecurityGroup.h:199
Aws::RDS::Model::EC2SecurityGroup::WithEC2SecurityGroupId
EC2SecurityGroup & WithEC2SecurityGroupId(Aws::String &&value)
Definition: EC2SecurityGroup.h:169
Aws::RDS::Model::EC2SecurityGroup::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: EC2SecurityGroup.h:56
AWSStreamFwd.h
Aws::RDS::Model::EC2SecurityGroup::WithEC2SecurityGroupName
EC2SecurityGroup & WithEC2SecurityGroupName(const char *value)
Definition: EC2SecurityGroup.h:133
Aws::RDS::Model::EC2SecurityGroup::GetStatus
const Aws::String & GetStatus() const
Definition: EC2SecurityGroup.h:50
Aws::RDS::Model::EC2SecurityGroup::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::EC2SecurityGroup::SetEC2SecurityGroupOwnerId
void SetEC2SecurityGroupOwnerId(const Aws::String &value)
Definition: EC2SecurityGroup.h:193
Aws::RDS::Model::EC2SecurityGroup::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::EC2SecurityGroup::WithEC2SecurityGroupOwnerId
EC2SecurityGroup & WithEC2SecurityGroupOwnerId(const Aws::String &value)
Definition: EC2SecurityGroup.h:211
RDS_EXPORTS.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::EC2SecurityGroup::SetEC2SecurityGroupId
void SetEC2SecurityGroupId(Aws::String &&value)
Definition: EC2SecurityGroup.h:154
Aws::RDS::Model::EC2SecurityGroup::WithStatus
EC2SecurityGroup & WithStatus(Aws::String &&value)
Definition: EC2SecurityGroup.h:86
Aws::RDS::Model::EC2SecurityGroup::SetStatus
void SetStatus(const Aws::String &value)
Definition: EC2SecurityGroup.h:62
Aws::RDS::Model::EC2SecurityGroup::SetStatus
void SetStatus(Aws::String &&value)
Definition: EC2SecurityGroup.h:68
Aws::RDS::Model::EC2SecurityGroup::WithEC2SecurityGroupName
EC2SecurityGroup & WithEC2SecurityGroupName(const Aws::String &value)
Definition: EC2SecurityGroup.h:123
Aws::RDS::Model::EC2SecurityGroup::WithEC2SecurityGroupOwnerId
EC2SecurityGroup & WithEC2SecurityGroupOwnerId(const char *value)
Definition: EC2SecurityGroup.h:223
AWSString.h
Aws::RDS::Model::EC2SecurityGroup::SetEC2SecurityGroupId
void SetEC2SecurityGroupId(const char *value)
Definition: EC2SecurityGroup.h:159
Aws::RDS::Model::EC2SecurityGroup::SetEC2SecurityGroupName
void SetEC2SecurityGroupName(const Aws::String &value)
Definition: EC2SecurityGroup.h:108
Aws::RDS::Model::EC2SecurityGroup::SetEC2SecurityGroupOwnerId
void SetEC2SecurityGroupOwnerId(const char *value)
Definition: EC2SecurityGroup.h:205
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::EC2SecurityGroup::EC2SecurityGroup
EC2SecurityGroup()
Aws::RDS::Model::EC2SecurityGroup
Definition: EC2SecurityGroup.h:36
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::EC2SecurityGroup::WithStatus
EC2SecurityGroup & WithStatus(const Aws::String &value)
Definition: EC2SecurityGroup.h:80
Aws::RDS::Model::EC2SecurityGroup::EC2SecurityGroupOwnerIdHasBeenSet
bool EC2SecurityGroupOwnerIdHasBeenSet() const
Definition: EC2SecurityGroup.h:187
Aws::RDS::Model::EC2SecurityGroup::GetEC2SecurityGroupOwnerId
const Aws::String & GetEC2SecurityGroupOwnerId() const
Definition: EC2SecurityGroup.h:181
Aws::RDS::Model::EC2SecurityGroup::EC2SecurityGroupIdHasBeenSet
bool EC2SecurityGroupIdHasBeenSet() const
Definition: EC2SecurityGroup.h:144
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::RDS::Model::EC2SecurityGroup::GetEC2SecurityGroupId
const Aws::String & GetEC2SecurityGroupId() const
Definition: EC2SecurityGroup.h:139
Aws::RDS::Model::EC2SecurityGroup::SetEC2SecurityGroupName
void SetEC2SecurityGroupName(Aws::String &&value)
Definition: EC2SecurityGroup.h:113
Aws::RDS::Model::EC2SecurityGroup::operator=
EC2SecurityGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::EC2SecurityGroup::GetEC2SecurityGroupName
const Aws::String & GetEC2SecurityGroupName() const
Definition: EC2SecurityGroup.h:98
Aws::RDS::Model::EC2SecurityGroup::SetStatus
void SetStatus(const char *value)
Definition: EC2SecurityGroup.h:74