AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AuthorizationRule.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/ec2/model/ClientVpnAuthorizationRuleStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_EC2_API AuthorizationRule();
36 AWS_EC2_API AuthorizationRule(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
48 inline const Aws::String& GetClientVpnEndpointId() const{ return m_clientVpnEndpointId; }
49 inline bool ClientVpnEndpointIdHasBeenSet() const { return m_clientVpnEndpointIdHasBeenSet; }
50 inline void SetClientVpnEndpointId(const Aws::String& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = value; }
51 inline void SetClientVpnEndpointId(Aws::String&& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = std::move(value); }
52 inline void SetClientVpnEndpointId(const char* value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId.assign(value); }
53 inline AuthorizationRule& WithClientVpnEndpointId(const Aws::String& value) { SetClientVpnEndpointId(value); return *this;}
54 inline AuthorizationRule& WithClientVpnEndpointId(Aws::String&& value) { SetClientVpnEndpointId(std::move(value)); return *this;}
55 inline AuthorizationRule& WithClientVpnEndpointId(const char* value) { SetClientVpnEndpointId(value); return *this;}
57
59
62 inline const Aws::String& GetDescription() const{ return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
65 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
66 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 inline AuthorizationRule& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
68 inline AuthorizationRule& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
69 inline AuthorizationRule& WithDescription(const char* value) { SetDescription(value); return *this;}
71
73
77 inline const Aws::String& GetGroupId() const{ return m_groupId; }
78 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
79 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
80 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
81 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
82 inline AuthorizationRule& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
83 inline AuthorizationRule& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
84 inline AuthorizationRule& WithGroupId(const char* value) { SetGroupId(value); return *this;}
86
88
91 inline bool GetAccessAll() const{ return m_accessAll; }
92 inline bool AccessAllHasBeenSet() const { return m_accessAllHasBeenSet; }
93 inline void SetAccessAll(bool value) { m_accessAllHasBeenSet = true; m_accessAll = value; }
94 inline AuthorizationRule& WithAccessAll(bool value) { SetAccessAll(value); return *this;}
96
98
102 inline const Aws::String& GetDestinationCidr() const{ return m_destinationCidr; }
103 inline bool DestinationCidrHasBeenSet() const { return m_destinationCidrHasBeenSet; }
104 inline void SetDestinationCidr(const Aws::String& value) { m_destinationCidrHasBeenSet = true; m_destinationCidr = value; }
105 inline void SetDestinationCidr(Aws::String&& value) { m_destinationCidrHasBeenSet = true; m_destinationCidr = std::move(value); }
106 inline void SetDestinationCidr(const char* value) { m_destinationCidrHasBeenSet = true; m_destinationCidr.assign(value); }
107 inline AuthorizationRule& WithDestinationCidr(const Aws::String& value) { SetDestinationCidr(value); return *this;}
108 inline AuthorizationRule& WithDestinationCidr(Aws::String&& value) { SetDestinationCidr(std::move(value)); return *this;}
109 inline AuthorizationRule& WithDestinationCidr(const char* value) { SetDestinationCidr(value); return *this;}
111
113
116 inline const ClientVpnAuthorizationRuleStatus& GetStatus() const{ return m_status; }
117 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
118 inline void SetStatus(const ClientVpnAuthorizationRuleStatus& value) { m_statusHasBeenSet = true; m_status = value; }
119 inline void SetStatus(ClientVpnAuthorizationRuleStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
120 inline AuthorizationRule& WithStatus(const ClientVpnAuthorizationRuleStatus& value) { SetStatus(value); return *this;}
121 inline AuthorizationRule& WithStatus(ClientVpnAuthorizationRuleStatus&& value) { SetStatus(std::move(value)); return *this;}
123 private:
124
125 Aws::String m_clientVpnEndpointId;
126 bool m_clientVpnEndpointIdHasBeenSet = false;
127
128 Aws::String m_description;
129 bool m_descriptionHasBeenSet = false;
130
131 Aws::String m_groupId;
132 bool m_groupIdHasBeenSet = false;
133
134 bool m_accessAll;
135 bool m_accessAllHasBeenSet = false;
136
137 Aws::String m_destinationCidr;
138 bool m_destinationCidrHasBeenSet = false;
139
141 bool m_statusHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace EC2
146} // namespace Aws
AuthorizationRule & WithGroupId(Aws::String &&value)
const Aws::String & GetDescription() const
AuthorizationRule & WithStatus(ClientVpnAuthorizationRuleStatus &&value)
AuthorizationRule & WithDestinationCidr(Aws::String &&value)
AuthorizationRule & WithClientVpnEndpointId(Aws::String &&value)
void SetDestinationCidr(Aws::String &&value)
void SetClientVpnEndpointId(Aws::String &&value)
AuthorizationRule & WithClientVpnEndpointId(const char *value)
void SetGroupId(const Aws::String &value)
void SetStatus(ClientVpnAuthorizationRuleStatus &&value)
void SetClientVpnEndpointId(const Aws::String &value)
AWS_EC2_API AuthorizationRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetGroupId() const
void SetDestinationCidr(const Aws::String &value)
AuthorizationRule & WithGroupId(const char *value)
void SetDescription(const Aws::String &value)
void SetGroupId(Aws::String &&value)
AuthorizationRule & WithDescription(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetStatus(const ClientVpnAuthorizationRuleStatus &value)
void SetDestinationCidr(const char *value)
const Aws::String & GetDestinationCidr() const
AuthorizationRule & WithDestinationCidr(const Aws::String &value)
AuthorizationRule & WithDescription(Aws::String &&value)
AuthorizationRule & WithAccessAll(bool value)
AuthorizationRule & WithClientVpnEndpointId(const Aws::String &value)
const ClientVpnAuthorizationRuleStatus & GetStatus() const
AuthorizationRule & WithGroupId(const Aws::String &value)
const Aws::String & GetClientVpnEndpointId() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetDescription(Aws::String &&value)
void SetClientVpnEndpointId(const char *value)
AuthorizationRule & WithDescription(const Aws::String &value)
AWS_EC2_API AuthorizationRule(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDescription(const char *value)
AuthorizationRule & WithDestinationCidr(const char *value)
AuthorizationRule & WithStatus(const ClientVpnAuthorizationRuleStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream