AWS SDK for C++  1.7.166
AWS SDK for C++
Public Member Functions | List of all members
Aws::EC2::Model::IpPermission Class Reference

#include <IpPermission.h>

Public Member Functions

 IpPermission ()
 
 IpPermission (const Aws::Utils::Xml::XmlNode &xmlNode)
 
IpPermissionoperator= (const Aws::Utils::Xml::XmlNode &xmlNode)
 
void OutputToStream (Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
 
void OutputToStream (Aws::OStream &oStream, const char *location) const
 
int GetFromPort () const
 
bool FromPortHasBeenSet () const
 
void SetFromPort (int value)
 
IpPermissionWithFromPort (int value)
 
const Aws::StringGetIpProtocol () const
 
bool IpProtocolHasBeenSet () const
 
void SetIpProtocol (const Aws::String &value)
 
void SetIpProtocol (Aws::String &&value)
 
void SetIpProtocol (const char *value)
 
IpPermissionWithIpProtocol (const Aws::String &value)
 
IpPermissionWithIpProtocol (Aws::String &&value)
 
IpPermissionWithIpProtocol (const char *value)
 
const Aws::Vector< IpRange > & GetIpRanges () const
 
bool IpRangesHasBeenSet () const
 
void SetIpRanges (const Aws::Vector< IpRange > &value)
 
void SetIpRanges (Aws::Vector< IpRange > &&value)
 
IpPermissionWithIpRanges (const Aws::Vector< IpRange > &value)
 
IpPermissionWithIpRanges (Aws::Vector< IpRange > &&value)
 
IpPermissionAddIpRanges (const IpRange &value)
 
IpPermissionAddIpRanges (IpRange &&value)
 
const Aws::Vector< Ipv6Range > & GetIpv6Ranges () const
 
bool Ipv6RangesHasBeenSet () const
 
void SetIpv6Ranges (const Aws::Vector< Ipv6Range > &value)
 
void SetIpv6Ranges (Aws::Vector< Ipv6Range > &&value)
 
IpPermissionWithIpv6Ranges (const Aws::Vector< Ipv6Range > &value)
 
IpPermissionWithIpv6Ranges (Aws::Vector< Ipv6Range > &&value)
 
IpPermissionAddIpv6Ranges (const Ipv6Range &value)
 
IpPermissionAddIpv6Ranges (Ipv6Range &&value)
 
const Aws::Vector< PrefixListId > & GetPrefixListIds () const
 
bool PrefixListIdsHasBeenSet () const
 
void SetPrefixListIds (const Aws::Vector< PrefixListId > &value)
 
void SetPrefixListIds (Aws::Vector< PrefixListId > &&value)
 
IpPermissionWithPrefixListIds (const Aws::Vector< PrefixListId > &value)
 
IpPermissionWithPrefixListIds (Aws::Vector< PrefixListId > &&value)
 
IpPermissionAddPrefixListIds (const PrefixListId &value)
 
IpPermissionAddPrefixListIds (PrefixListId &&value)
 
int GetToPort () const
 
bool ToPortHasBeenSet () const
 
void SetToPort (int value)
 
IpPermissionWithToPort (int value)
 
const Aws::Vector< UserIdGroupPair > & GetUserIdGroupPairs () const
 
bool UserIdGroupPairsHasBeenSet () const
 
void SetUserIdGroupPairs (const Aws::Vector< UserIdGroupPair > &value)
 
void SetUserIdGroupPairs (Aws::Vector< UserIdGroupPair > &&value)
 
IpPermissionWithUserIdGroupPairs (const Aws::Vector< UserIdGroupPair > &value)
 
IpPermissionWithUserIdGroupPairs (Aws::Vector< UserIdGroupPair > &&value)
 
IpPermissionAddUserIdGroupPairs (const UserIdGroupPair &value)
 
IpPermissionAddUserIdGroupPairs (UserIdGroupPair &&value)
 

Detailed Description

Describes a set of permissions for a security group rule.

See Also:

AWS API Reference

Definition at line 47 of file IpPermission.h.

Constructor & Destructor Documentation

◆ IpPermission() [1/2]

Aws::EC2::Model::IpPermission::IpPermission ( )

◆ IpPermission() [2/2]

Aws::EC2::Model::IpPermission::IpPermission ( const Aws::Utils::Xml::XmlNode xmlNode)

Member Function Documentation

◆ AddIpRanges() [1/2]

IpPermission& Aws::EC2::Model::IpPermission::AddIpRanges ( const IpRange value)
inline

The IPv4 ranges.

Definition at line 233 of file IpPermission.h.

◆ AddIpRanges() [2/2]

IpPermission& Aws::EC2::Model::IpPermission::AddIpRanges ( IpRange &&  value)
inline

The IPv4 ranges.

Definition at line 238 of file IpPermission.h.

◆ AddIpv6Ranges() [1/2]

IpPermission& Aws::EC2::Model::IpPermission::AddIpv6Ranges ( const Ipv6Range value)
inline

[VPC only] The IPv6 ranges.

Definition at line 274 of file IpPermission.h.

◆ AddIpv6Ranges() [2/2]

IpPermission& Aws::EC2::Model::IpPermission::AddIpv6Ranges ( Ipv6Range &&  value)
inline

[VPC only] The IPv6 ranges.

Definition at line 279 of file IpPermission.h.

◆ AddPrefixListIds() [1/2]

IpPermission& Aws::EC2::Model::IpPermission::AddPrefixListIds ( const PrefixListId value)
inline

[VPC only] The prefix list IDs for an AWS service. With outbound rules, this is the AWS service to access through a VPC endpoint from instances associated with the security group.

Definition at line 329 of file IpPermission.h.

◆ AddPrefixListIds() [2/2]

IpPermission& Aws::EC2::Model::IpPermission::AddPrefixListIds ( PrefixListId &&  value)
inline

[VPC only] The prefix list IDs for an AWS service. With outbound rules, this is the AWS service to access through a VPC endpoint from instances associated with the security group.

Definition at line 336 of file IpPermission.h.

◆ AddUserIdGroupPairs() [1/2]

IpPermission& Aws::EC2::Model::IpPermission::AddUserIdGroupPairs ( const UserIdGroupPair value)
inline

The security group and AWS account ID pairs.

Definition at line 401 of file IpPermission.h.

◆ AddUserIdGroupPairs() [2/2]

IpPermission& Aws::EC2::Model::IpPermission::AddUserIdGroupPairs ( UserIdGroupPair &&  value)
inline

The security group and AWS account ID pairs.

Definition at line 406 of file IpPermission.h.

◆ FromPortHasBeenSet()

bool Aws::EC2::Model::IpPermission::FromPortHasBeenSet ( ) const
inline

The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must specify all codes.

Definition at line 70 of file IpPermission.h.

◆ GetFromPort()

int Aws::EC2::Model::IpPermission::GetFromPort ( ) const
inline

The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must specify all codes.

Definition at line 63 of file IpPermission.h.

◆ GetIpProtocol()

const Aws::String& Aws::EC2::Model::IpPermission::GetIpProtocol ( ) const
inline

The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers).

[VPC only] Use -1 to specify all protocols. When authorizing security group rules, specifying -1 or a protocol number other than tcp, udp, icmp, or icmpv6 allows traffic on all ports, regardless of any port range you specify. For tcp, udp, and icmp, you must specify a port range. For icmpv6, the port range is optional; if you omit the port range, traffic for all types and codes is allowed.

Definition at line 99 of file IpPermission.h.

◆ GetIpRanges()

const Aws::Vector<IpRange>& Aws::EC2::Model::IpPermission::GetIpRanges ( ) const
inline

The IPv4 ranges.

Definition at line 203 of file IpPermission.h.

◆ GetIpv6Ranges()

const Aws::Vector<Ipv6Range>& Aws::EC2::Model::IpPermission::GetIpv6Ranges ( ) const
inline

[VPC only] The IPv6 ranges.

Definition at line 244 of file IpPermission.h.

◆ GetPrefixListIds()

const Aws::Vector<PrefixListId>& Aws::EC2::Model::IpPermission::GetPrefixListIds ( ) const
inline

[VPC only] The prefix list IDs for an AWS service. With outbound rules, this is the AWS service to access through a VPC endpoint from instances associated with the security group.

Definition at line 287 of file IpPermission.h.

◆ GetToPort()

int Aws::EC2::Model::IpPermission::GetToPort ( ) const
inline

The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must specify all codes.

Definition at line 344 of file IpPermission.h.

◆ GetUserIdGroupPairs()

const Aws::Vector<UserIdGroupPair>& Aws::EC2::Model::IpPermission::GetUserIdGroupPairs ( ) const
inline

The security group and AWS account ID pairs.

Definition at line 371 of file IpPermission.h.

◆ IpProtocolHasBeenSet()

bool Aws::EC2::Model::IpPermission::IpProtocolHasBeenSet ( ) const
inline

The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers).

[VPC only] Use -1 to specify all protocols. When authorizing security group rules, specifying -1 or a protocol number other than tcp, udp, icmp, or icmpv6 allows traffic on all ports, regardless of any port range you specify. For tcp, udp, and icmp, you must specify a port range. For icmpv6, the port range is optional; if you omit the port range, traffic for all types and codes is allowed.

Definition at line 113 of file IpPermission.h.

◆ IpRangesHasBeenSet()

bool Aws::EC2::Model::IpPermission::IpRangesHasBeenSet ( ) const
inline

The IPv4 ranges.

Definition at line 208 of file IpPermission.h.

◆ Ipv6RangesHasBeenSet()

bool Aws::EC2::Model::IpPermission::Ipv6RangesHasBeenSet ( ) const
inline

[VPC only] The IPv6 ranges.

Definition at line 249 of file IpPermission.h.

◆ operator=()

IpPermission& Aws::EC2::Model::IpPermission::operator= ( const Aws::Utils::Xml::XmlNode xmlNode)

◆ OutputToStream() [1/2]

void Aws::EC2::Model::IpPermission::OutputToStream ( Aws::OStream ostream,
const char *  location,
unsigned  index,
const char *  locationValue 
) const

◆ OutputToStream() [2/2]

void Aws::EC2::Model::IpPermission::OutputToStream ( Aws::OStream oStream,
const char *  location 
) const

◆ PrefixListIdsHasBeenSet()

bool Aws::EC2::Model::IpPermission::PrefixListIdsHasBeenSet ( ) const
inline

[VPC only] The prefix list IDs for an AWS service. With outbound rules, this is the AWS service to access through a VPC endpoint from instances associated with the security group.

Definition at line 294 of file IpPermission.h.

◆ SetFromPort()

void Aws::EC2::Model::IpPermission::SetFromPort ( int  value)
inline

The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must specify all codes.

Definition at line 77 of file IpPermission.h.

◆ SetIpProtocol() [1/3]

void Aws::EC2::Model::IpPermission::SetIpProtocol ( const Aws::String value)
inline

The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers).

[VPC only] Use -1 to specify all protocols. When authorizing security group rules, specifying -1 or a protocol number other than tcp, udp, icmp, or icmpv6 allows traffic on all ports, regardless of any port range you specify. For tcp, udp, and icmp, you must specify a port range. For icmpv6, the port range is optional; if you omit the port range, traffic for all types and codes is allowed.

Definition at line 127 of file IpPermission.h.

◆ SetIpProtocol() [2/3]

void Aws::EC2::Model::IpPermission::SetIpProtocol ( Aws::String &&  value)
inline

The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers).

[VPC only] Use -1 to specify all protocols. When authorizing security group rules, specifying -1 or a protocol number other than tcp, udp, icmp, or icmpv6 allows traffic on all ports, regardless of any port range you specify. For tcp, udp, and icmp, you must specify a port range. For icmpv6, the port range is optional; if you omit the port range, traffic for all types and codes is allowed.

Definition at line 141 of file IpPermission.h.

◆ SetIpProtocol() [3/3]

void Aws::EC2::Model::IpPermission::SetIpProtocol ( const char *  value)
inline

The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers).

[VPC only] Use -1 to specify all protocols. When authorizing security group rules, specifying -1 or a protocol number other than tcp, udp, icmp, or icmpv6 allows traffic on all ports, regardless of any port range you specify. For tcp, udp, and icmp, you must specify a port range. For icmpv6, the port range is optional; if you omit the port range, traffic for all types and codes is allowed.

Definition at line 155 of file IpPermission.h.

◆ SetIpRanges() [1/2]

void Aws::EC2::Model::IpPermission::SetIpRanges ( const Aws::Vector< IpRange > &  value)
inline

The IPv4 ranges.

Definition at line 213 of file IpPermission.h.

◆ SetIpRanges() [2/2]

void Aws::EC2::Model::IpPermission::SetIpRanges ( Aws::Vector< IpRange > &&  value)
inline

The IPv4 ranges.

Definition at line 218 of file IpPermission.h.

◆ SetIpv6Ranges() [1/2]

void Aws::EC2::Model::IpPermission::SetIpv6Ranges ( const Aws::Vector< Ipv6Range > &  value)
inline

[VPC only] The IPv6 ranges.

Definition at line 254 of file IpPermission.h.

◆ SetIpv6Ranges() [2/2]

void Aws::EC2::Model::IpPermission::SetIpv6Ranges ( Aws::Vector< Ipv6Range > &&  value)
inline

[VPC only] The IPv6 ranges.

Definition at line 259 of file IpPermission.h.

◆ SetPrefixListIds() [1/2]

void Aws::EC2::Model::IpPermission::SetPrefixListIds ( const Aws::Vector< PrefixListId > &  value)
inline

[VPC only] The prefix list IDs for an AWS service. With outbound rules, this is the AWS service to access through a VPC endpoint from instances associated with the security group.

Definition at line 301 of file IpPermission.h.

◆ SetPrefixListIds() [2/2]

void Aws::EC2::Model::IpPermission::SetPrefixListIds ( Aws::Vector< PrefixListId > &&  value)
inline

[VPC only] The prefix list IDs for an AWS service. With outbound rules, this is the AWS service to access through a VPC endpoint from instances associated with the security group.

Definition at line 308 of file IpPermission.h.

◆ SetToPort()

void Aws::EC2::Model::IpPermission::SetToPort ( int  value)
inline

The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must specify all codes.

Definition at line 358 of file IpPermission.h.

◆ SetUserIdGroupPairs() [1/2]

void Aws::EC2::Model::IpPermission::SetUserIdGroupPairs ( const Aws::Vector< UserIdGroupPair > &  value)
inline

The security group and AWS account ID pairs.

Definition at line 381 of file IpPermission.h.

◆ SetUserIdGroupPairs() [2/2]

void Aws::EC2::Model::IpPermission::SetUserIdGroupPairs ( Aws::Vector< UserIdGroupPair > &&  value)
inline

The security group and AWS account ID pairs.

Definition at line 386 of file IpPermission.h.

◆ ToPortHasBeenSet()

bool Aws::EC2::Model::IpPermission::ToPortHasBeenSet ( ) const
inline

The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must specify all codes.

Definition at line 351 of file IpPermission.h.

◆ UserIdGroupPairsHasBeenSet()

bool Aws::EC2::Model::IpPermission::UserIdGroupPairsHasBeenSet ( ) const
inline

The security group and AWS account ID pairs.

Definition at line 376 of file IpPermission.h.

◆ WithFromPort()

IpPermission& Aws::EC2::Model::IpPermission::WithFromPort ( int  value)
inline

The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must specify all codes.

Definition at line 84 of file IpPermission.h.

◆ WithIpProtocol() [1/3]

IpPermission& Aws::EC2::Model::IpPermission::WithIpProtocol ( const Aws::String value)
inline

The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers).

[VPC only] Use -1 to specify all protocols. When authorizing security group rules, specifying -1 or a protocol number other than tcp, udp, icmp, or icmpv6 allows traffic on all ports, regardless of any port range you specify. For tcp, udp, and icmp, you must specify a port range. For icmpv6, the port range is optional; if you omit the port range, traffic for all types and codes is allowed.

Definition at line 169 of file IpPermission.h.

◆ WithIpProtocol() [2/3]

IpPermission& Aws::EC2::Model::IpPermission::WithIpProtocol ( Aws::String &&  value)
inline

The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers).

[VPC only] Use -1 to specify all protocols. When authorizing security group rules, specifying -1 or a protocol number other than tcp, udp, icmp, or icmpv6 allows traffic on all ports, regardless of any port range you specify. For tcp, udp, and icmp, you must specify a port range. For icmpv6, the port range is optional; if you omit the port range, traffic for all types and codes is allowed.

Definition at line 183 of file IpPermission.h.

◆ WithIpProtocol() [3/3]

IpPermission& Aws::EC2::Model::IpPermission::WithIpProtocol ( const char *  value)
inline

The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers).

[VPC only] Use -1 to specify all protocols. When authorizing security group rules, specifying -1 or a protocol number other than tcp, udp, icmp, or icmpv6 allows traffic on all ports, regardless of any port range you specify. For tcp, udp, and icmp, you must specify a port range. For icmpv6, the port range is optional; if you omit the port range, traffic for all types and codes is allowed.

Definition at line 197 of file IpPermission.h.

◆ WithIpRanges() [1/2]

IpPermission& Aws::EC2::Model::IpPermission::WithIpRanges ( const Aws::Vector< IpRange > &  value)
inline

The IPv4 ranges.

Definition at line 223 of file IpPermission.h.

◆ WithIpRanges() [2/2]

IpPermission& Aws::EC2::Model::IpPermission::WithIpRanges ( Aws::Vector< IpRange > &&  value)
inline

The IPv4 ranges.

Definition at line 228 of file IpPermission.h.

◆ WithIpv6Ranges() [1/2]

IpPermission& Aws::EC2::Model::IpPermission::WithIpv6Ranges ( const Aws::Vector< Ipv6Range > &  value)
inline

[VPC only] The IPv6 ranges.

Definition at line 264 of file IpPermission.h.

◆ WithIpv6Ranges() [2/2]

IpPermission& Aws::EC2::Model::IpPermission::WithIpv6Ranges ( Aws::Vector< Ipv6Range > &&  value)
inline

[VPC only] The IPv6 ranges.

Definition at line 269 of file IpPermission.h.

◆ WithPrefixListIds() [1/2]

IpPermission& Aws::EC2::Model::IpPermission::WithPrefixListIds ( const Aws::Vector< PrefixListId > &  value)
inline

[VPC only] The prefix list IDs for an AWS service. With outbound rules, this is the AWS service to access through a VPC endpoint from instances associated with the security group.

Definition at line 315 of file IpPermission.h.

◆ WithPrefixListIds() [2/2]

IpPermission& Aws::EC2::Model::IpPermission::WithPrefixListIds ( Aws::Vector< PrefixListId > &&  value)
inline

[VPC only] The prefix list IDs for an AWS service. With outbound rules, this is the AWS service to access through a VPC endpoint from instances associated with the security group.

Definition at line 322 of file IpPermission.h.

◆ WithToPort()

IpPermission& Aws::EC2::Model::IpPermission::WithToPort ( int  value)
inline

The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must specify all codes.

Definition at line 365 of file IpPermission.h.

◆ WithUserIdGroupPairs() [1/2]

IpPermission& Aws::EC2::Model::IpPermission::WithUserIdGroupPairs ( const Aws::Vector< UserIdGroupPair > &  value)
inline

The security group and AWS account ID pairs.

Definition at line 391 of file IpPermission.h.

◆ WithUserIdGroupPairs() [2/2]

IpPermission& Aws::EC2::Model::IpPermission::WithUserIdGroupPairs ( Aws::Vector< UserIdGroupPair > &&  value)
inline

The security group and AWS account ID pairs.

Definition at line 396 of file IpPermission.h.


The documentation for this class was generated from the following file: