AWS SDK for C++  1.9.66
AWS SDK for C++
AuthorizationRule.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
47  inline const Aws::String& GetClientVpnEndpointId() const{ return m_clientVpnEndpointId; }
48 
53  inline bool ClientVpnEndpointIdHasBeenSet() const { return m_clientVpnEndpointIdHasBeenSet; }
54 
59  inline void SetClientVpnEndpointId(const Aws::String& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = value; }
60 
65  inline void SetClientVpnEndpointId(Aws::String&& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = std::move(value); }
66 
71  inline void SetClientVpnEndpointId(const char* value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId.assign(value); }
72 
77  inline AuthorizationRule& WithClientVpnEndpointId(const Aws::String& value) { SetClientVpnEndpointId(value); return *this;}
78 
83  inline AuthorizationRule& WithClientVpnEndpointId(Aws::String&& value) { SetClientVpnEndpointId(std::move(value)); return *this;}
84 
89  inline AuthorizationRule& WithClientVpnEndpointId(const char* value) { SetClientVpnEndpointId(value); return *this;}
90 
91 
95  inline const Aws::String& GetDescription() const{ return m_description; }
96 
100  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 
105  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
106 
110  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
111 
115  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
116 
120  inline AuthorizationRule& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
121 
125  inline AuthorizationRule& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
126 
130  inline AuthorizationRule& WithDescription(const char* value) { SetDescription(value); return *this;}
131 
132 
137  inline const Aws::String& GetGroupId() const{ return m_groupId; }
138 
143  inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
144 
149  inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
150 
155  inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
156 
161  inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
162 
167  inline AuthorizationRule& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
168 
173  inline AuthorizationRule& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
174 
179  inline AuthorizationRule& WithGroupId(const char* value) { SetGroupId(value); return *this;}
180 
181 
185  inline bool GetAccessAll() const{ return m_accessAll; }
186 
190  inline bool AccessAllHasBeenSet() const { return m_accessAllHasBeenSet; }
191 
195  inline void SetAccessAll(bool value) { m_accessAllHasBeenSet = true; m_accessAll = value; }
196 
200  inline AuthorizationRule& WithAccessAll(bool value) { SetAccessAll(value); return *this;}
201 
202 
207  inline const Aws::String& GetDestinationCidr() const{ return m_destinationCidr; }
208 
213  inline bool DestinationCidrHasBeenSet() const { return m_destinationCidrHasBeenSet; }
214 
219  inline void SetDestinationCidr(const Aws::String& value) { m_destinationCidrHasBeenSet = true; m_destinationCidr = value; }
220 
225  inline void SetDestinationCidr(Aws::String&& value) { m_destinationCidrHasBeenSet = true; m_destinationCidr = std::move(value); }
226 
231  inline void SetDestinationCidr(const char* value) { m_destinationCidrHasBeenSet = true; m_destinationCidr.assign(value); }
232 
237  inline AuthorizationRule& WithDestinationCidr(const Aws::String& value) { SetDestinationCidr(value); return *this;}
238 
243  inline AuthorizationRule& WithDestinationCidr(Aws::String&& value) { SetDestinationCidr(std::move(value)); return *this;}
244 
249  inline AuthorizationRule& WithDestinationCidr(const char* value) { SetDestinationCidr(value); return *this;}
250 
251 
255  inline const ClientVpnAuthorizationRuleStatus& GetStatus() const{ return m_status; }
256 
260  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
261 
265  inline void SetStatus(const ClientVpnAuthorizationRuleStatus& value) { m_statusHasBeenSet = true; m_status = value; }
266 
270  inline void SetStatus(ClientVpnAuthorizationRuleStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
271 
275  inline AuthorizationRule& WithStatus(const ClientVpnAuthorizationRuleStatus& value) { SetStatus(value); return *this;}
276 
280  inline AuthorizationRule& WithStatus(ClientVpnAuthorizationRuleStatus&& value) { SetStatus(std::move(value)); return *this;}
281 
282  private:
283 
284  Aws::String m_clientVpnEndpointId;
285  bool m_clientVpnEndpointIdHasBeenSet;
286 
287  Aws::String m_description;
288  bool m_descriptionHasBeenSet;
289 
290  Aws::String m_groupId;
291  bool m_groupIdHasBeenSet;
292 
293  bool m_accessAll;
294  bool m_accessAllHasBeenSet;
295 
296  Aws::String m_destinationCidr;
297  bool m_destinationCidrHasBeenSet;
298 
300  bool m_statusHasBeenSet;
301  };
302 
303 } // namespace Model
304 } // namespace EC2
305 } // namespace Aws
Aws::EC2::Model::AuthorizationRule::WithDescription
AuthorizationRule & WithDescription(Aws::String &&value)
Definition: AuthorizationRule.h:125
Aws::EC2::Model::AuthorizationRule::AuthorizationRule
AuthorizationRule()
Aws::EC2::Model::AuthorizationRule::SetDescription
void SetDescription(const char *value)
Definition: AuthorizationRule.h:115
Aws::EC2::Model::AuthorizationRule::WithDescription
AuthorizationRule & WithDescription(const char *value)
Definition: AuthorizationRule.h:130
Aws::EC2::Model::AuthorizationRule::WithDescription
AuthorizationRule & WithDescription(const Aws::String &value)
Definition: AuthorizationRule.h:120
Aws::EC2::Model::AuthorizationRule::SetDescription
void SetDescription(Aws::String &&value)
Definition: AuthorizationRule.h:110
Aws::EC2::Model::AuthorizationRule::SetDestinationCidr
void SetDestinationCidr(const char *value)
Definition: AuthorizationRule.h:231
Aws::EC2::Model::AuthorizationRule::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::AuthorizationRule::WithClientVpnEndpointId
AuthorizationRule & WithClientVpnEndpointId(const Aws::String &value)
Definition: AuthorizationRule.h:77
Aws::EC2::Model::AuthorizationRule::GetDescription
const Aws::String & GetDescription() const
Definition: AuthorizationRule.h:95
Aws::EC2::Model::AuthorizationRule::operator=
AuthorizationRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::AuthorizationRule
Definition: AuthorizationRule.h:33
Aws::EC2::Model::AuthorizationRule::SetDescription
void SetDescription(const Aws::String &value)
Definition: AuthorizationRule.h:105
Aws::EC2::Model::AuthorizationRule::WithAccessAll
AuthorizationRule & WithAccessAll(bool value)
Definition: AuthorizationRule.h:200
Aws::EC2::Model::AuthorizationRule::GetAccessAll
bool GetAccessAll() const
Definition: AuthorizationRule.h:185
Aws::EC2::Model::AuthorizationRule::SetAccessAll
void SetAccessAll(bool value)
Definition: AuthorizationRule.h:195
Aws::EC2::Model::AuthorizationRule::SetGroupId
void SetGroupId(const char *value)
Definition: AuthorizationRule.h:161
AWSStreamFwd.h
Aws::EC2::Model::AuthorizationRule::WithDestinationCidr
AuthorizationRule & WithDestinationCidr(const Aws::String &value)
Definition: AuthorizationRule.h:237
Aws::EC2::Model::AuthorizationRule::WithGroupId
AuthorizationRule & WithGroupId(const char *value)
Definition: AuthorizationRule.h:179
Aws::EC2::Model::AuthorizationRule::GroupIdHasBeenSet
bool GroupIdHasBeenSet() const
Definition: AuthorizationRule.h:143
Aws::EC2::Model::AuthorizationRule::SetDestinationCidr
void SetDestinationCidr(const Aws::String &value)
Definition: AuthorizationRule.h:219
Aws::EC2::Model::AuthorizationRule::GetClientVpnEndpointId
const Aws::String & GetClientVpnEndpointId() const
Definition: AuthorizationRule.h:47
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::AuthorizationRule::WithGroupId
AuthorizationRule & WithGroupId(Aws::String &&value)
Definition: AuthorizationRule.h:173
Aws::EC2::Model::AuthorizationRule::AuthorizationRule
AuthorizationRule(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::AuthorizationRule::WithDestinationCidr
AuthorizationRule & WithDestinationCidr(Aws::String &&value)
Definition: AuthorizationRule.h:243
Aws::EC2::Model::AuthorizationRule::WithStatus
AuthorizationRule & WithStatus(ClientVpnAuthorizationRuleStatus &&value)
Definition: AuthorizationRule.h:280
Aws::EC2::Model::AuthorizationRule::DestinationCidrHasBeenSet
bool DestinationCidrHasBeenSet() const
Definition: AuthorizationRule.h:213
Aws::EC2::Model::AuthorizationRule::SetClientVpnEndpointId
void SetClientVpnEndpointId(const Aws::String &value)
Definition: AuthorizationRule.h:59
Aws::EC2::Model::ClientVpnAuthorizationRuleStatus
Definition: ClientVpnAuthorizationRuleStatus.h:33
Aws::EC2::Model::AuthorizationRule::WithGroupId
AuthorizationRule & WithGroupId(const Aws::String &value)
Definition: AuthorizationRule.h:167
Aws::EC2::Model::AuthorizationRule::GetStatus
const ClientVpnAuthorizationRuleStatus & GetStatus() const
Definition: AuthorizationRule.h:255
Aws::EC2::Model::AuthorizationRule::SetGroupId
void SetGroupId(Aws::String &&value)
Definition: AuthorizationRule.h:155
Aws::EC2::Model::AuthorizationRule::SetClientVpnEndpointId
void SetClientVpnEndpointId(Aws::String &&value)
Definition: AuthorizationRule.h:65
AWSString.h
Aws::EC2::Model::AuthorizationRule::GetGroupId
const Aws::String & GetGroupId() const
Definition: AuthorizationRule.h:137
Aws::EC2::Model::AuthorizationRule::WithClientVpnEndpointId
AuthorizationRule & WithClientVpnEndpointId(const char *value)
Definition: AuthorizationRule.h:89
Aws::EC2::Model::AuthorizationRule::WithStatus
AuthorizationRule & WithStatus(const ClientVpnAuthorizationRuleStatus &value)
Definition: AuthorizationRule.h:275
Aws::EC2::Model::AuthorizationRule::SetStatus
void SetStatus(const ClientVpnAuthorizationRuleStatus &value)
Definition: AuthorizationRule.h:265
ClientVpnAuthorizationRuleStatus.h
Aws::EC2::Model::AuthorizationRule::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: AuthorizationRule.h:260
Aws::EC2::Model::AuthorizationRule::WithDestinationCidr
AuthorizationRule & WithDestinationCidr(const char *value)
Definition: AuthorizationRule.h:249
Aws::EC2::Model::AuthorizationRule::SetStatus
void SetStatus(ClientVpnAuthorizationRuleStatus &&value)
Definition: AuthorizationRule.h:270
Aws::EC2::Model::AuthorizationRule::AccessAllHasBeenSet
bool AccessAllHasBeenSet() const
Definition: AuthorizationRule.h:190
Aws::EC2::Model::AuthorizationRule::SetGroupId
void SetGroupId(const Aws::String &value)
Definition: AuthorizationRule.h:149
Aws::EC2::Model::AuthorizationRule::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: AuthorizationRule.h:100
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AuthorizationRule::SetClientVpnEndpointId
void SetClientVpnEndpointId(const char *value)
Definition: AuthorizationRule.h:71
Aws::EC2::Model::AuthorizationRule::ClientVpnEndpointIdHasBeenSet
bool ClientVpnEndpointIdHasBeenSet() const
Definition: AuthorizationRule.h:53
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::AuthorizationRule::GetDestinationCidr
const Aws::String & GetDestinationCidr() const
Definition: AuthorizationRule.h:207
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::AuthorizationRule::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EC2_EXPORTS.h
Aws::EC2::Model::AuthorizationRule::WithClientVpnEndpointId
AuthorizationRule & WithClientVpnEndpointId(Aws::String &&value)
Definition: AuthorizationRule.h:83
Aws::EC2::Model::AuthorizationRule::SetDestinationCidr
void SetDestinationCidr(Aws::String &&value)
Definition: AuthorizationRule.h:225