AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StaleIpPermission.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/UserIdGroupPair.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EC2_API StaleIpPermission();
37 AWS_EC2_API StaleIpPermission(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
49 inline int GetFromPort() const{ return m_fromPort; }
50 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
51 inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
52 inline StaleIpPermission& WithFromPort(int value) { SetFromPort(value); return *this;}
54
56
62 inline const Aws::String& GetIpProtocol() const{ return m_ipProtocol; }
63 inline bool IpProtocolHasBeenSet() const { return m_ipProtocolHasBeenSet; }
64 inline void SetIpProtocol(const Aws::String& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = value; }
65 inline void SetIpProtocol(Aws::String&& value) { m_ipProtocolHasBeenSet = true; m_ipProtocol = std::move(value); }
66 inline void SetIpProtocol(const char* value) { m_ipProtocolHasBeenSet = true; m_ipProtocol.assign(value); }
67 inline StaleIpPermission& WithIpProtocol(const Aws::String& value) { SetIpProtocol(value); return *this;}
68 inline StaleIpPermission& WithIpProtocol(Aws::String&& value) { SetIpProtocol(std::move(value)); return *this;}
69 inline StaleIpPermission& WithIpProtocol(const char* value) { SetIpProtocol(value); return *this;}
71
73
76 inline const Aws::Vector<Aws::String>& GetIpRanges() const{ return m_ipRanges; }
77 inline bool IpRangesHasBeenSet() const { return m_ipRangesHasBeenSet; }
78 inline void SetIpRanges(const Aws::Vector<Aws::String>& value) { m_ipRangesHasBeenSet = true; m_ipRanges = value; }
79 inline void SetIpRanges(Aws::Vector<Aws::String>&& value) { m_ipRangesHasBeenSet = true; m_ipRanges = std::move(value); }
80 inline StaleIpPermission& WithIpRanges(const Aws::Vector<Aws::String>& value) { SetIpRanges(value); return *this;}
81 inline StaleIpPermission& WithIpRanges(Aws::Vector<Aws::String>&& value) { SetIpRanges(std::move(value)); return *this;}
82 inline StaleIpPermission& AddIpRanges(const Aws::String& value) { m_ipRangesHasBeenSet = true; m_ipRanges.push_back(value); return *this; }
83 inline StaleIpPermission& AddIpRanges(Aws::String&& value) { m_ipRangesHasBeenSet = true; m_ipRanges.push_back(std::move(value)); return *this; }
84 inline StaleIpPermission& AddIpRanges(const char* value) { m_ipRangesHasBeenSet = true; m_ipRanges.push_back(value); return *this; }
86
88
91 inline const Aws::Vector<Aws::String>& GetPrefixListIds() const{ return m_prefixListIds; }
92 inline bool PrefixListIdsHasBeenSet() const { return m_prefixListIdsHasBeenSet; }
93 inline void SetPrefixListIds(const Aws::Vector<Aws::String>& value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds = value; }
94 inline void SetPrefixListIds(Aws::Vector<Aws::String>&& value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds = std::move(value); }
96 inline StaleIpPermission& WithPrefixListIds(Aws::Vector<Aws::String>&& value) { SetPrefixListIds(std::move(value)); return *this;}
97 inline StaleIpPermission& AddPrefixListIds(const Aws::String& value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds.push_back(value); return *this; }
98 inline StaleIpPermission& AddPrefixListIds(Aws::String&& value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds.push_back(std::move(value)); return *this; }
99 inline StaleIpPermission& AddPrefixListIds(const char* value) { m_prefixListIdsHasBeenSet = true; m_prefixListIds.push_back(value); return *this; }
101
103
107 inline int GetToPort() const{ return m_toPort; }
108 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
109 inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; }
110 inline StaleIpPermission& WithToPort(int value) { SetToPort(value); return *this;}
112
114
118 inline const Aws::Vector<UserIdGroupPair>& GetUserIdGroupPairs() const{ return m_userIdGroupPairs; }
119 inline bool UserIdGroupPairsHasBeenSet() const { return m_userIdGroupPairsHasBeenSet; }
120 inline void SetUserIdGroupPairs(const Aws::Vector<UserIdGroupPair>& value) { m_userIdGroupPairsHasBeenSet = true; m_userIdGroupPairs = value; }
121 inline void SetUserIdGroupPairs(Aws::Vector<UserIdGroupPair>&& value) { m_userIdGroupPairsHasBeenSet = true; m_userIdGroupPairs = std::move(value); }
124 inline StaleIpPermission& AddUserIdGroupPairs(const UserIdGroupPair& value) { m_userIdGroupPairsHasBeenSet = true; m_userIdGroupPairs.push_back(value); return *this; }
125 inline StaleIpPermission& AddUserIdGroupPairs(UserIdGroupPair&& value) { m_userIdGroupPairsHasBeenSet = true; m_userIdGroupPairs.push_back(std::move(value)); return *this; }
127 private:
128
129 int m_fromPort;
130 bool m_fromPortHasBeenSet = false;
131
132 Aws::String m_ipProtocol;
133 bool m_ipProtocolHasBeenSet = false;
134
135 Aws::Vector<Aws::String> m_ipRanges;
136 bool m_ipRangesHasBeenSet = false;
137
138 Aws::Vector<Aws::String> m_prefixListIds;
139 bool m_prefixListIdsHasBeenSet = false;
140
141 int m_toPort;
142 bool m_toPortHasBeenSet = false;
143
144 Aws::Vector<UserIdGroupPair> m_userIdGroupPairs;
145 bool m_userIdGroupPairsHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace EC2
150} // namespace Aws
void SetIpProtocol(const Aws::String &value)
StaleIpPermission & AddUserIdGroupPairs(UserIdGroupPair &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
StaleIpPermission & WithIpProtocol(const char *value)
const Aws::Vector< UserIdGroupPair > & GetUserIdGroupPairs() const
StaleIpPermission & WithToPort(int value)
StaleIpPermission & WithPrefixListIds(Aws::Vector< Aws::String > &&value)
StaleIpPermission & WithIpProtocol(Aws::String &&value)
void SetIpProtocol(const char *value)
void SetIpProtocol(Aws::String &&value)
AWS_EC2_API StaleIpPermission(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API StaleIpPermission & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetUserIdGroupPairs(const Aws::Vector< UserIdGroupPair > &value)
void SetIpRanges(Aws::Vector< Aws::String > &&value)
StaleIpPermission & AddUserIdGroupPairs(const UserIdGroupPair &value)
StaleIpPermission & WithPrefixListIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetPrefixListIds() const
void SetPrefixListIds(const Aws::Vector< Aws::String > &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
StaleIpPermission & AddPrefixListIds(const Aws::String &value)
StaleIpPermission & AddPrefixListIds(Aws::String &&value)
StaleIpPermission & WithUserIdGroupPairs(Aws::Vector< UserIdGroupPair > &&value)
void SetIpRanges(const Aws::Vector< Aws::String > &value)
StaleIpPermission & WithFromPort(int value)
StaleIpPermission & WithUserIdGroupPairs(const Aws::Vector< UserIdGroupPair > &value)
StaleIpPermission & AddIpRanges(const Aws::String &value)
StaleIpPermission & WithIpRanges(const Aws::Vector< Aws::String > &value)
StaleIpPermission & WithIpRanges(Aws::Vector< Aws::String > &&value)
StaleIpPermission & AddIpRanges(const char *value)
StaleIpPermission & WithIpProtocol(const Aws::String &value)
const Aws::String & GetIpProtocol() const
void SetPrefixListIds(Aws::Vector< Aws::String > &&value)
void SetUserIdGroupPairs(Aws::Vector< UserIdGroupPair > &&value)
const Aws::Vector< Aws::String > & GetIpRanges() const
StaleIpPermission & AddIpRanges(Aws::String &&value)
StaleIpPermission & AddPrefixListIds(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream