AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RevokedSecurityGroupRule.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
36 {
37 public:
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetSecurityGroupRuleId() const{ return m_securityGroupRuleId; }
51 inline bool SecurityGroupRuleIdHasBeenSet() const { return m_securityGroupRuleIdHasBeenSet; }
52 inline void SetSecurityGroupRuleId(const Aws::String& value) { m_securityGroupRuleIdHasBeenSet = true; m_securityGroupRuleId = value; }
53 inline void SetSecurityGroupRuleId(Aws::String&& value) { m_securityGroupRuleIdHasBeenSet = true; m_securityGroupRuleId = std::move(value); }
54 inline void SetSecurityGroupRuleId(const char* value) { m_securityGroupRuleIdHasBeenSet = true; m_securityGroupRuleId.assign(value); }
56 inline RevokedSecurityGroupRule& WithSecurityGroupRuleId(Aws::String&& value) { SetSecurityGroupRuleId(std::move(value)); return *this;}
57 inline RevokedSecurityGroupRule& WithSecurityGroupRuleId(const char* value) { SetSecurityGroupRuleId(value); return *this;}
59
61
64 inline const Aws::String& GetGroupId() const{ return m_groupId; }
65 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
66 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
67 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
68 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
69 inline RevokedSecurityGroupRule& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
70 inline RevokedSecurityGroupRule& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
71 inline RevokedSecurityGroupRule& WithGroupId(const char* value) { SetGroupId(value); return *this;}
73
75
78 inline bool GetIsEgress() const{ return m_isEgress; }
79 inline bool IsEgressHasBeenSet() const { return m_isEgressHasBeenSet; }
80 inline void SetIsEgress(bool value) { m_isEgressHasBeenSet = true; m_isEgress = value; }
81 inline RevokedSecurityGroupRule& WithIsEgress(bool value) { SetIsEgress(value); return *this;}
83
85
88 inline const Aws::String& GetIpProtocol() const{ return m_ipProtocol; }
89 inline bool IpProtocolHasBeenSet() const { return m_ipProtocolHasBeenSet; }
90 inline void SetIpProtocol(const Aws::String& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = value; }
91 inline void SetIpProtocol(Aws::String&& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = std::move(value); }
92 inline void SetIpProtocol(const char* value) { m_ipProtocolHasBeenSet = true; m_ipProtocol.assign(value); }
93 inline RevokedSecurityGroupRule& WithIpProtocol(const Aws::String& value) { SetIpProtocol(value); return *this;}
94 inline RevokedSecurityGroupRule& WithIpProtocol(Aws::String&& value) { SetIpProtocol(std::move(value)); return *this;}
95 inline RevokedSecurityGroupRule& WithIpProtocol(const char* value) { SetIpProtocol(value); return *this;}
97
99
102 inline int GetFromPort() const{ return m_fromPort; }
103 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
104 inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
105 inline RevokedSecurityGroupRule& WithFromPort(int value) { SetFromPort(value); return *this;}
107
109
112 inline int GetToPort() const{ return m_toPort; }
113 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
114 inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; }
115 inline RevokedSecurityGroupRule& WithToPort(int value) { SetToPort(value); return *this;}
117
119
122 inline const Aws::String& GetCidrIpv4() const{ return m_cidrIpv4; }
123 inline bool CidrIpv4HasBeenSet() const { return m_cidrIpv4HasBeenSet; }
124 inline void SetCidrIpv4(const Aws::String& value) { m_cidrIpv4HasBeenSet = true; m_cidrIpv4 = value; }
125 inline void SetCidrIpv4(Aws::String&& value) { m_cidrIpv4HasBeenSet = true; m_cidrIpv4 = std::move(value); }
126 inline void SetCidrIpv4(const char* value) { m_cidrIpv4HasBeenSet = true; m_cidrIpv4.assign(value); }
127 inline RevokedSecurityGroupRule& WithCidrIpv4(const Aws::String& value) { SetCidrIpv4(value); return *this;}
128 inline RevokedSecurityGroupRule& WithCidrIpv4(Aws::String&& value) { SetCidrIpv4(std::move(value)); return *this;}
129 inline RevokedSecurityGroupRule& WithCidrIpv4(const char* value) { SetCidrIpv4(value); return *this;}
131
133
136 inline const Aws::String& GetCidrIpv6() const{ return m_cidrIpv6; }
137 inline bool CidrIpv6HasBeenSet() const { return m_cidrIpv6HasBeenSet; }
138 inline void SetCidrIpv6(const Aws::String& value) { m_cidrIpv6HasBeenSet = true; m_cidrIpv6 = value; }
139 inline void SetCidrIpv6(Aws::String&& value) { m_cidrIpv6HasBeenSet = true; m_cidrIpv6 = std::move(value); }
140 inline void SetCidrIpv6(const char* value) { m_cidrIpv6HasBeenSet = true; m_cidrIpv6.assign(value); }
141 inline RevokedSecurityGroupRule& WithCidrIpv6(const Aws::String& value) { SetCidrIpv6(value); return *this;}
142 inline RevokedSecurityGroupRule& WithCidrIpv6(Aws::String&& value) { SetCidrIpv6(std::move(value)); return *this;}
143 inline RevokedSecurityGroupRule& WithCidrIpv6(const char* value) { SetCidrIpv6(value); return *this;}
145
147
150 inline const Aws::String& GetPrefixListId() const{ return m_prefixListId; }
151 inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
152 inline void SetPrefixListId(const Aws::String& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = value; }
153 inline void SetPrefixListId(Aws::String&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::move(value); }
154 inline void SetPrefixListId(const char* value) { m_prefixListIdHasBeenSet = true; m_prefixListId.assign(value); }
155 inline RevokedSecurityGroupRule& WithPrefixListId(const Aws::String& value) { SetPrefixListId(value); return *this;}
156 inline RevokedSecurityGroupRule& WithPrefixListId(Aws::String&& value) { SetPrefixListId(std::move(value)); return *this;}
157 inline RevokedSecurityGroupRule& WithPrefixListId(const char* value) { SetPrefixListId(value); return *this;}
159
161
164 inline const Aws::String& GetReferencedGroupId() const{ return m_referencedGroupId; }
165 inline bool ReferencedGroupIdHasBeenSet() const { return m_referencedGroupIdHasBeenSet; }
166 inline void SetReferencedGroupId(const Aws::String& value) { m_referencedGroupIdHasBeenSet = true; m_referencedGroupId = value; }
167 inline void SetReferencedGroupId(Aws::String&& value) { m_referencedGroupIdHasBeenSet = true; m_referencedGroupId = std::move(value); }
168 inline void SetReferencedGroupId(const char* value) { m_referencedGroupIdHasBeenSet = true; m_referencedGroupId.assign(value); }
170 inline RevokedSecurityGroupRule& WithReferencedGroupId(Aws::String&& value) { SetReferencedGroupId(std::move(value)); return *this;}
171 inline RevokedSecurityGroupRule& WithReferencedGroupId(const char* value) { SetReferencedGroupId(value); return *this;}
173
175
178 inline const Aws::String& GetDescription() const{ return m_description; }
179 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
180 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
181 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
182 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
183 inline RevokedSecurityGroupRule& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
184 inline RevokedSecurityGroupRule& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
185 inline RevokedSecurityGroupRule& WithDescription(const char* value) { SetDescription(value); return *this;}
187 private:
188
189 Aws::String m_securityGroupRuleId;
190 bool m_securityGroupRuleIdHasBeenSet = false;
191
192 Aws::String m_groupId;
193 bool m_groupIdHasBeenSet = false;
194
195 bool m_isEgress;
196 bool m_isEgressHasBeenSet = false;
197
198 Aws::String m_ipProtocol;
199 bool m_ipProtocolHasBeenSet = false;
200
201 int m_fromPort;
202 bool m_fromPortHasBeenSet = false;
203
204 int m_toPort;
205 bool m_toPortHasBeenSet = false;
206
207 Aws::String m_cidrIpv4;
208 bool m_cidrIpv4HasBeenSet = false;
209
210 Aws::String m_cidrIpv6;
211 bool m_cidrIpv6HasBeenSet = false;
212
213 Aws::String m_prefixListId;
214 bool m_prefixListIdHasBeenSet = false;
215
216 Aws::String m_referencedGroupId;
217 bool m_referencedGroupIdHasBeenSet = false;
218
219 Aws::String m_description;
220 bool m_descriptionHasBeenSet = false;
221 };
222
223} // namespace Model
224} // namespace EC2
225} // namespace Aws
RevokedSecurityGroupRule & WithIpProtocol(const Aws::String &value)
RevokedSecurityGroupRule & WithPrefixListId(const Aws::String &value)
RevokedSecurityGroupRule & WithDescription(Aws::String &&value)
RevokedSecurityGroupRule & WithReferencedGroupId(const Aws::String &value)
RevokedSecurityGroupRule & WithReferencedGroupId(const char *value)
RevokedSecurityGroupRule & WithDescription(const char *value)
AWS_EC2_API RevokedSecurityGroupRule(const Aws::Utils::Xml::XmlNode &xmlNode)
RevokedSecurityGroupRule & WithCidrIpv6(const char *value)
RevokedSecurityGroupRule & WithCidrIpv4(const Aws::String &value)
RevokedSecurityGroupRule & WithReferencedGroupId(Aws::String &&value)
void SetReferencedGroupId(const Aws::String &value)
RevokedSecurityGroupRule & WithCidrIpv6(const Aws::String &value)
RevokedSecurityGroupRule & WithFromPort(int value)
AWS_EC2_API RevokedSecurityGroupRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
RevokedSecurityGroupRule & WithSecurityGroupRuleId(const Aws::String &value)
RevokedSecurityGroupRule & WithGroupId(const Aws::String &value)
RevokedSecurityGroupRule & WithIpProtocol(const char *value)
RevokedSecurityGroupRule & WithCidrIpv6(Aws::String &&value)
RevokedSecurityGroupRule & WithIsEgress(bool value)
RevokedSecurityGroupRule & WithPrefixListId(Aws::String &&value)
RevokedSecurityGroupRule & WithGroupId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
RevokedSecurityGroupRule & WithCidrIpv4(const char *value)
RevokedSecurityGroupRule & WithIpProtocol(Aws::String &&value)
RevokedSecurityGroupRule & WithSecurityGroupRuleId(Aws::String &&value)
void SetSecurityGroupRuleId(const Aws::String &value)
RevokedSecurityGroupRule & WithPrefixListId(const char *value)
RevokedSecurityGroupRule & WithDescription(const Aws::String &value)
RevokedSecurityGroupRule & WithToPort(int value)
RevokedSecurityGroupRule & WithCidrIpv4(Aws::String &&value)
RevokedSecurityGroupRule & WithSecurityGroupRuleId(const char *value)
RevokedSecurityGroupRule & WithGroupId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream