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>
51 inline void SetFromPort(
int value) { m_fromPortHasBeenSet =
true; m_fromPort = value; }
66 inline void SetIpProtocol(
const char* value) { m_ipProtocolHasBeenSet =
true; m_ipProtocol.assign(value); }
109 inline void SetToPort(
int value) { m_toPortHasBeenSet =
true; m_toPort = value; }
130 bool m_fromPortHasBeenSet =
false;
133 bool m_ipProtocolHasBeenSet =
false;
136 bool m_ipRangesHasBeenSet =
false;
139 bool m_prefixListIdsHasBeenSet =
false;
142 bool m_toPortHasBeenSet =
false;
145 bool m_userIdGroupPairsHasBeenSet =
false;
void SetIpProtocol(const Aws::String &value)
bool IpRangesHasBeenSet() const
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)
void SetToPort(int value)
const Aws::Vector< UserIdGroupPair > & GetUserIdGroupPairs() const
bool PrefixListIdsHasBeenSet() const
StaleIpPermission & WithToPort(int value)
StaleIpPermission & WithPrefixListIds(Aws::Vector< Aws::String > &&value)
StaleIpPermission & WithIpProtocol(Aws::String &&value)
void SetIpProtocol(const char *value)
AWS_EC2_API StaleIpPermission()
bool IpProtocolHasBeenSet() const
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
bool UserIdGroupPairsHasBeenSet() 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)
void SetFromPort(int value)
bool FromPortHasBeenSet() const
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)
bool ToPortHasBeenSet() const
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