AWS SDK for C++  1.9.71
AWS SDK for C++
StaleIpPermission.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.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 EC2
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 
48  inline int GetFromPort() const{ return m_fromPort; }
49 
54  inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
55 
60  inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
61 
66  inline StaleIpPermission& WithFromPort(int value) { SetFromPort(value); return *this;}
67 
68 
75  inline const Aws::String& GetIpProtocol() const{ return m_ipProtocol; }
76 
83  inline bool IpProtocolHasBeenSet() const { return m_ipProtocolHasBeenSet; }
84 
91  inline void SetIpProtocol(const Aws::String& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = value; }
92 
99  inline void SetIpProtocol(Aws::String&& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = std::move(value); }
100 
107  inline void SetIpProtocol(const char* value) { m_ipProtocolHasBeenSet = true; m_ipProtocol.assign(value); }
108 
115  inline StaleIpPermission& WithIpProtocol(const Aws::String& value) { SetIpProtocol(value); return *this;}
116 
123  inline StaleIpPermission& WithIpProtocol(Aws::String&& value) { SetIpProtocol(std::move(value)); return *this;}
124 
131  inline StaleIpPermission& WithIpProtocol(const char* value) { SetIpProtocol(value); return *this;}
132 
133 
137  inline const Aws::Vector<Aws::String>& GetIpRanges() const{ return m_ipRanges; }
138 
142  inline bool IpRangesHasBeenSet() const { return m_ipRangesHasBeenSet; }
143 
147  inline void SetIpRanges(const Aws::Vector<Aws::String>& value) { m_ipRangesHasBeenSet = true; m_ipRanges = value; }
148 
152  inline void SetIpRanges(Aws::Vector<Aws::String>&& value) { m_ipRangesHasBeenSet = true; m_ipRanges = std::move(value); }
153 
157  inline StaleIpPermission& WithIpRanges(const Aws::Vector<Aws::String>& value) { SetIpRanges(value); return *this;}
158 
162  inline StaleIpPermission& WithIpRanges(Aws::Vector<Aws::String>&& value) { SetIpRanges(std::move(value)); return *this;}
163 
167  inline StaleIpPermission& AddIpRanges(const Aws::String& value) { m_ipRangesHasBeenSet = true; m_ipRanges.push_back(value); return *this; }
168 
172  inline StaleIpPermission& AddIpRanges(Aws::String&& value) { m_ipRangesHasBeenSet = true; m_ipRanges.push_back(std::move(value)); return *this; }
173 
177  inline StaleIpPermission& AddIpRanges(const char* value) { m_ipRangesHasBeenSet = true; m_ipRanges.push_back(value); return *this; }
178 
179 
183  inline const Aws::Vector<Aws::String>& GetPrefixListIds() const{ return m_prefixListIds; }
184 
188  inline bool PrefixListIdsHasBeenSet() const { return m_prefixListIdsHasBeenSet; }
189 
193  inline void SetPrefixListIds(const Aws::Vector<Aws::String>& value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds = value; }
194 
198  inline void SetPrefixListIds(Aws::Vector<Aws::String>&& value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds = std::move(value); }
199 
203  inline StaleIpPermission& WithPrefixListIds(const Aws::Vector<Aws::String>& value) { SetPrefixListIds(value); return *this;}
204 
208  inline StaleIpPermission& WithPrefixListIds(Aws::Vector<Aws::String>&& value) { SetPrefixListIds(std::move(value)); return *this;}
209 
213  inline StaleIpPermission& AddPrefixListIds(const Aws::String& value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds.push_back(value); return *this; }
214 
218  inline StaleIpPermission& AddPrefixListIds(Aws::String&& value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds.push_back(std::move(value)); return *this; }
219 
223  inline StaleIpPermission& AddPrefixListIds(const char* value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds.push_back(value); return *this; }
224 
225 
230  inline int GetToPort() const{ return m_toPort; }
231 
236  inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
237 
242  inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; }
243 
248  inline StaleIpPermission& WithToPort(int value) { SetToPort(value); return *this;}
249 
250 
255  inline const Aws::Vector<UserIdGroupPair>& GetUserIdGroupPairs() const{ return m_userIdGroupPairs; }
256 
261  inline bool UserIdGroupPairsHasBeenSet() const { return m_userIdGroupPairsHasBeenSet; }
262 
267  inline void SetUserIdGroupPairs(const Aws::Vector<UserIdGroupPair>& value) { m_userIdGroupPairsHasBeenSet = true; m_userIdGroupPairs = value; }
268 
273  inline void SetUserIdGroupPairs(Aws::Vector<UserIdGroupPair>&& value) { m_userIdGroupPairsHasBeenSet = true; m_userIdGroupPairs = std::move(value); }
274 
279  inline StaleIpPermission& WithUserIdGroupPairs(const Aws::Vector<UserIdGroupPair>& value) { SetUserIdGroupPairs(value); return *this;}
280 
285  inline StaleIpPermission& WithUserIdGroupPairs(Aws::Vector<UserIdGroupPair>&& value) { SetUserIdGroupPairs(std::move(value)); return *this;}
286 
291  inline StaleIpPermission& AddUserIdGroupPairs(const UserIdGroupPair& value) { m_userIdGroupPairsHasBeenSet = true; m_userIdGroupPairs.push_back(value); return *this; }
292 
297  inline StaleIpPermission& AddUserIdGroupPairs(UserIdGroupPair&& value) { m_userIdGroupPairsHasBeenSet = true; m_userIdGroupPairs.push_back(std::move(value)); return *this; }
298 
299  private:
300 
301  int m_fromPort;
302  bool m_fromPortHasBeenSet;
303 
304  Aws::String m_ipProtocol;
305  bool m_ipProtocolHasBeenSet;
306 
307  Aws::Vector<Aws::String> m_ipRanges;
308  bool m_ipRangesHasBeenSet;
309 
310  Aws::Vector<Aws::String> m_prefixListIds;
311  bool m_prefixListIdsHasBeenSet;
312 
313  int m_toPort;
314  bool m_toPortHasBeenSet;
315 
316  Aws::Vector<UserIdGroupPair> m_userIdGroupPairs;
317  bool m_userIdGroupPairsHasBeenSet;
318  };
319 
320 } // namespace Model
321 } // namespace EC2
322 } // namespace Aws
Aws::EC2::Model::StaleIpPermission::SetPrefixListIds
void SetPrefixListIds(Aws::Vector< Aws::String > &&value)
Definition: StaleIpPermission.h:198
Aws::EC2::Model::StaleIpPermission::PrefixListIdsHasBeenSet
bool PrefixListIdsHasBeenSet() const
Definition: StaleIpPermission.h:188
Aws::EC2::Model::StaleIpPermission::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::StaleIpPermission::SetToPort
void SetToPort(int value)
Definition: StaleIpPermission.h:242
Aws::EC2::Model::StaleIpPermission::WithPrefixListIds
StaleIpPermission & WithPrefixListIds(Aws::Vector< Aws::String > &&value)
Definition: StaleIpPermission.h:208
Aws::EC2::Model::StaleIpPermission::AddIpRanges
StaleIpPermission & AddIpRanges(Aws::String &&value)
Definition: StaleIpPermission.h:172
Aws::EC2::Model::StaleIpPermission::IpRangesHasBeenSet
bool IpRangesHasBeenSet() const
Definition: StaleIpPermission.h:142
Aws::EC2::Model::StaleIpPermission::AddPrefixListIds
StaleIpPermission & AddPrefixListIds(const Aws::String &value)
Definition: StaleIpPermission.h:213
Aws::EC2::Model::StaleIpPermission::WithIpProtocol
StaleIpPermission & WithIpProtocol(const Aws::String &value)
Definition: StaleIpPermission.h:115
Aws::EC2::Model::StaleIpPermission::WithIpProtocol
StaleIpPermission & WithIpProtocol(Aws::String &&value)
Definition: StaleIpPermission.h:123
UserIdGroupPair.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::StaleIpPermission::SetIpRanges
void SetIpRanges(Aws::Vector< Aws::String > &&value)
Definition: StaleIpPermission.h:152
Aws::EC2::Model::StaleIpPermission::GetUserIdGroupPairs
const Aws::Vector< UserIdGroupPair > & GetUserIdGroupPairs() const
Definition: StaleIpPermission.h:255
Aws::EC2::Model::StaleIpPermission::WithToPort
StaleIpPermission & WithToPort(int value)
Definition: StaleIpPermission.h:248
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::StaleIpPermission::AddIpRanges
StaleIpPermission & AddIpRanges(const char *value)
Definition: StaleIpPermission.h:177
AWSStreamFwd.h
Aws::EC2::Model::UserIdGroupPair
Definition: UserIdGroupPair.h:33
AWSVector.h
Aws::EC2::Model::StaleIpPermission::UserIdGroupPairsHasBeenSet
bool UserIdGroupPairsHasBeenSet() const
Definition: StaleIpPermission.h:261
Aws::EC2::Model::StaleIpPermission::WithUserIdGroupPairs
StaleIpPermission & WithUserIdGroupPairs(Aws::Vector< UserIdGroupPair > &&value)
Definition: StaleIpPermission.h:285
Aws::EC2::Model::StaleIpPermission::ToPortHasBeenSet
bool ToPortHasBeenSet() const
Definition: StaleIpPermission.h:236
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::StaleIpPermission::SetUserIdGroupPairs
void SetUserIdGroupPairs(Aws::Vector< UserIdGroupPair > &&value)
Definition: StaleIpPermission.h:273
Aws::EC2::Model::StaleIpPermission::GetIpRanges
const Aws::Vector< Aws::String > & GetIpRanges() const
Definition: StaleIpPermission.h:137
Aws::EC2::Model::StaleIpPermission::WithIpProtocol
StaleIpPermission & WithIpProtocol(const char *value)
Definition: StaleIpPermission.h:131
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::StaleIpPermission::AddIpRanges
StaleIpPermission & AddIpRanges(const Aws::String &value)
Definition: StaleIpPermission.h:167
Aws::EC2::Model::StaleIpPermission::WithUserIdGroupPairs
StaleIpPermission & WithUserIdGroupPairs(const Aws::Vector< UserIdGroupPair > &value)
Definition: StaleIpPermission.h:279
Aws::EC2::Model::StaleIpPermission::FromPortHasBeenSet
bool FromPortHasBeenSet() const
Definition: StaleIpPermission.h:54
Aws::EC2::Model::StaleIpPermission
Definition: StaleIpPermission.h:34
AWSString.h
Aws::EC2::Model::StaleIpPermission::GetIpProtocol
const Aws::String & GetIpProtocol() const
Definition: StaleIpPermission.h:75
Aws::EC2::Model::StaleIpPermission::AddUserIdGroupPairs
StaleIpPermission & AddUserIdGroupPairs(UserIdGroupPair &&value)
Definition: StaleIpPermission.h:297
Aws::EC2::Model::StaleIpPermission::SetIpProtocol
void SetIpProtocol(const char *value)
Definition: StaleIpPermission.h:107
Aws::EC2::Model::StaleIpPermission::SetUserIdGroupPairs
void SetUserIdGroupPairs(const Aws::Vector< UserIdGroupPair > &value)
Definition: StaleIpPermission.h:267
Aws::EC2::Model::StaleIpPermission::SetFromPort
void SetFromPort(int value)
Definition: StaleIpPermission.h:60
Aws::EC2::Model::StaleIpPermission::WithFromPort
StaleIpPermission & WithFromPort(int value)
Definition: StaleIpPermission.h:66
Aws::EC2::Model::StaleIpPermission::SetIpRanges
void SetIpRanges(const Aws::Vector< Aws::String > &value)
Definition: StaleIpPermission.h:147
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::StaleIpPermission::StaleIpPermission
StaleIpPermission(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::StaleIpPermission::IpProtocolHasBeenSet
bool IpProtocolHasBeenSet() const
Definition: StaleIpPermission.h:83
Aws::EC2::Model::StaleIpPermission::WithIpRanges
StaleIpPermission & WithIpRanges(Aws::Vector< Aws::String > &&value)
Definition: StaleIpPermission.h:162
Aws::EC2::Model::StaleIpPermission::SetPrefixListIds
void SetPrefixListIds(const Aws::Vector< Aws::String > &value)
Definition: StaleIpPermission.h:193
Aws::EC2::Model::StaleIpPermission::AddPrefixListIds
StaleIpPermission & AddPrefixListIds(Aws::String &&value)
Definition: StaleIpPermission.h:218
Aws::EC2::Model::StaleIpPermission::AddUserIdGroupPairs
StaleIpPermission & AddUserIdGroupPairs(const UserIdGroupPair &value)
Definition: StaleIpPermission.h:291
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::EC2::Model::StaleIpPermission::AddPrefixListIds
StaleIpPermission & AddPrefixListIds(const char *value)
Definition: StaleIpPermission.h:223
Aws::EC2::Model::StaleIpPermission::StaleIpPermission
StaleIpPermission()
Aws::EC2::Model::StaleIpPermission::GetPrefixListIds
const Aws::Vector< Aws::String > & GetPrefixListIds() const
Definition: StaleIpPermission.h:183
Aws::EC2::Model::StaleIpPermission::GetFromPort
int GetFromPort() const
Definition: StaleIpPermission.h:48
Aws::EC2::Model::StaleIpPermission::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::StaleIpPermission::WithPrefixListIds
StaleIpPermission & WithPrefixListIds(const Aws::Vector< Aws::String > &value)
Definition: StaleIpPermission.h:203
EC2_EXPORTS.h
Aws::EC2::Model::StaleIpPermission::WithIpRanges
StaleIpPermission & WithIpRanges(const Aws::Vector< Aws::String > &value)
Definition: StaleIpPermission.h:157
Aws::EC2::Model::StaleIpPermission::operator=
StaleIpPermission & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::StaleIpPermission::SetIpProtocol
void SetIpProtocol(Aws::String &&value)
Definition: StaleIpPermission.h:99
Aws::EC2::Model::StaleIpPermission::GetToPort
int GetToPort() const
Definition: StaleIpPermission.h:230
Aws::EC2::Model::StaleIpPermission::SetIpProtocol
void SetIpProtocol(const Aws::String &value)
Definition: StaleIpPermission.h:91