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

#include <SecurityGroupRuleRequest.h>

Public Member Functions

 SecurityGroupRuleRequest ()
 
 SecurityGroupRuleRequest (const Aws::Utils::Xml::XmlNode &xmlNode)
 
SecurityGroupRuleRequestoperator= (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
 
const Aws::StringGetIpProtocol () const
 
bool IpProtocolHasBeenSet () const
 
void SetIpProtocol (const Aws::String &value)
 
void SetIpProtocol (Aws::String &&value)
 
void SetIpProtocol (const char *value)
 
SecurityGroupRuleRequestWithIpProtocol (const Aws::String &value)
 
SecurityGroupRuleRequestWithIpProtocol (Aws::String &&value)
 
SecurityGroupRuleRequestWithIpProtocol (const char *value)
 
int GetFromPort () const
 
bool FromPortHasBeenSet () const
 
void SetFromPort (int value)
 
SecurityGroupRuleRequestWithFromPort (int value)
 
int GetToPort () const
 
bool ToPortHasBeenSet () const
 
void SetToPort (int value)
 
SecurityGroupRuleRequestWithToPort (int value)
 
const Aws::StringGetCidrIpv4 () const
 
bool CidrIpv4HasBeenSet () const
 
void SetCidrIpv4 (const Aws::String &value)
 
void SetCidrIpv4 (Aws::String &&value)
 
void SetCidrIpv4 (const char *value)
 
SecurityGroupRuleRequestWithCidrIpv4 (const Aws::String &value)
 
SecurityGroupRuleRequestWithCidrIpv4 (Aws::String &&value)
 
SecurityGroupRuleRequestWithCidrIpv4 (const char *value)
 
const Aws::StringGetCidrIpv6 () const
 
bool CidrIpv6HasBeenSet () const
 
void SetCidrIpv6 (const Aws::String &value)
 
void SetCidrIpv6 (Aws::String &&value)
 
void SetCidrIpv6 (const char *value)
 
SecurityGroupRuleRequestWithCidrIpv6 (const Aws::String &value)
 
SecurityGroupRuleRequestWithCidrIpv6 (Aws::String &&value)
 
SecurityGroupRuleRequestWithCidrIpv6 (const char *value)
 
const Aws::StringGetPrefixListId () const
 
bool PrefixListIdHasBeenSet () const
 
void SetPrefixListId (const Aws::String &value)
 
void SetPrefixListId (Aws::String &&value)
 
void SetPrefixListId (const char *value)
 
SecurityGroupRuleRequestWithPrefixListId (const Aws::String &value)
 
SecurityGroupRuleRequestWithPrefixListId (Aws::String &&value)
 
SecurityGroupRuleRequestWithPrefixListId (const char *value)
 
const Aws::StringGetReferencedGroupId () const
 
bool ReferencedGroupIdHasBeenSet () const
 
void SetReferencedGroupId (const Aws::String &value)
 
void SetReferencedGroupId (Aws::String &&value)
 
void SetReferencedGroupId (const char *value)
 
SecurityGroupRuleRequestWithReferencedGroupId (const Aws::String &value)
 
SecurityGroupRuleRequestWithReferencedGroupId (Aws::String &&value)
 
SecurityGroupRuleRequestWithReferencedGroupId (const char *value)
 
const Aws::StringGetDescription () const
 
bool DescriptionHasBeenSet () const
 
void SetDescription (const Aws::String &value)
 
void SetDescription (Aws::String &&value)
 
void SetDescription (const char *value)
 
SecurityGroupRuleRequestWithDescription (const Aws::String &value)
 
SecurityGroupRuleRequestWithDescription (Aws::String &&value)
 
SecurityGroupRuleRequestWithDescription (const char *value)
 

Detailed Description

Describes a security group rule.

You must specify exactly one of the following parameters, based on the rule type:

When you modify a rule, you cannot change the rule type. For example, if the rule uses an IPv4 address range, you must use CidrIpv4 to specify a new IPv4 address range.

See Also:

AWS API Reference

Definition at line 37 of file SecurityGroupRuleRequest.h.

Constructor & Destructor Documentation

◆ SecurityGroupRuleRequest() [1/2]

Aws::EC2::Model::SecurityGroupRuleRequest::SecurityGroupRuleRequest ( )

◆ SecurityGroupRuleRequest() [2/2]

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

Member Function Documentation

◆ CidrIpv4HasBeenSet()

bool Aws::EC2::Model::SecurityGroupRuleRequest::CidrIpv4HasBeenSet ( ) const
inline

The IPv4 CIDR range. To specify a single IPv4 address, use the /32 prefix length.

Definition at line 181 of file SecurityGroupRuleRequest.h.

◆ CidrIpv6HasBeenSet()

bool Aws::EC2::Model::SecurityGroupRuleRequest::CidrIpv6HasBeenSet ( ) const
inline

The IPv6 CIDR range. To specify a single IPv6 address, use the /128 prefix length.

Definition at line 230 of file SecurityGroupRuleRequest.h.

◆ DescriptionHasBeenSet()

bool Aws::EC2::Model::SecurityGroupRuleRequest::DescriptionHasBeenSet ( ) const
inline

The description of the security group rule.

Definition at line 367 of file SecurityGroupRuleRequest.h.

◆ FromPortHasBeenSet()

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

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

Definition at line 125 of file SecurityGroupRuleRequest.h.

◆ GetCidrIpv4()

const Aws::String& Aws::EC2::Model::SecurityGroupRuleRequest::GetCidrIpv4 ( ) const
inline

The IPv4 CIDR range. To specify a single IPv4 address, use the /32 prefix length.

Definition at line 175 of file SecurityGroupRuleRequest.h.

◆ GetCidrIpv6()

const Aws::String& Aws::EC2::Model::SecurityGroupRuleRequest::GetCidrIpv6 ( ) const
inline

The IPv6 CIDR range. To specify a single IPv6 address, use the /128 prefix length.

Definition at line 224 of file SecurityGroupRuleRequest.h.

◆ GetDescription()

const Aws::String& Aws::EC2::Model::SecurityGroupRuleRequest::GetDescription ( ) const
inline

The description of the security group rule.

Definition at line 362 of file SecurityGroupRuleRequest.h.

◆ GetFromPort()

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

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

Definition at line 118 of file SecurityGroupRuleRequest.h.

◆ GetIpProtocol()

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

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

Use -1 to specify all protocols.

Definition at line 54 of file SecurityGroupRuleRequest.h.

◆ GetPrefixListId()

const Aws::String& Aws::EC2::Model::SecurityGroupRuleRequest::GetPrefixListId ( ) const
inline

The ID of the prefix list.

Definition at line 272 of file SecurityGroupRuleRequest.h.

◆ GetReferencedGroupId()

const Aws::String& Aws::EC2::Model::SecurityGroupRuleRequest::GetReferencedGroupId ( ) const
inline

The ID of the security group that is referenced in the security group rule.

Definition at line 314 of file SecurityGroupRuleRequest.h.

◆ GetToPort()

int Aws::EC2::Model::SecurityGroupRuleRequest::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 147 of file SecurityGroupRuleRequest.h.

◆ IpProtocolHasBeenSet()

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

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

Use -1 to specify all protocols.

Definition at line 62 of file SecurityGroupRuleRequest.h.

◆ operator=()

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

◆ OutputToStream() [1/2]

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

◆ OutputToStream() [2/2]

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

◆ PrefixListIdHasBeenSet()

bool Aws::EC2::Model::SecurityGroupRuleRequest::PrefixListIdHasBeenSet ( ) const
inline

The ID of the prefix list.

Definition at line 277 of file SecurityGroupRuleRequest.h.

◆ ReferencedGroupIdHasBeenSet()

bool Aws::EC2::Model::SecurityGroupRuleRequest::ReferencedGroupIdHasBeenSet ( ) const
inline

The ID of the security group that is referenced in the security group rule.

Definition at line 320 of file SecurityGroupRuleRequest.h.

◆ SetCidrIpv4() [1/3]

void Aws::EC2::Model::SecurityGroupRuleRequest::SetCidrIpv4 ( Aws::String &&  value)
inline

The IPv4 CIDR range. To specify a single IPv4 address, use the /32 prefix length.

Definition at line 193 of file SecurityGroupRuleRequest.h.

◆ SetCidrIpv4() [2/3]

void Aws::EC2::Model::SecurityGroupRuleRequest::SetCidrIpv4 ( const Aws::String value)
inline

The IPv4 CIDR range. To specify a single IPv4 address, use the /32 prefix length.

Definition at line 187 of file SecurityGroupRuleRequest.h.

◆ SetCidrIpv4() [3/3]

void Aws::EC2::Model::SecurityGroupRuleRequest::SetCidrIpv4 ( const char *  value)
inline

The IPv4 CIDR range. To specify a single IPv4 address, use the /32 prefix length.

Definition at line 199 of file SecurityGroupRuleRequest.h.

◆ SetCidrIpv6() [1/3]

void Aws::EC2::Model::SecurityGroupRuleRequest::SetCidrIpv6 ( Aws::String &&  value)
inline

The IPv6 CIDR range. To specify a single IPv6 address, use the /128 prefix length.

Definition at line 242 of file SecurityGroupRuleRequest.h.

◆ SetCidrIpv6() [2/3]

void Aws::EC2::Model::SecurityGroupRuleRequest::SetCidrIpv6 ( const Aws::String value)
inline

The IPv6 CIDR range. To specify a single IPv6 address, use the /128 prefix length.

Definition at line 236 of file SecurityGroupRuleRequest.h.

◆ SetCidrIpv6() [3/3]

void Aws::EC2::Model::SecurityGroupRuleRequest::SetCidrIpv6 ( const char *  value)
inline

The IPv6 CIDR range. To specify a single IPv6 address, use the /128 prefix length.

Definition at line 248 of file SecurityGroupRuleRequest.h.

◆ SetDescription() [1/3]

void Aws::EC2::Model::SecurityGroupRuleRequest::SetDescription ( Aws::String &&  value)
inline

The description of the security group rule.

Definition at line 377 of file SecurityGroupRuleRequest.h.

◆ SetDescription() [2/3]

void Aws::EC2::Model::SecurityGroupRuleRequest::SetDescription ( const Aws::String value)
inline

The description of the security group rule.

Definition at line 372 of file SecurityGroupRuleRequest.h.

◆ SetDescription() [3/3]

void Aws::EC2::Model::SecurityGroupRuleRequest::SetDescription ( const char *  value)
inline

The description of the security group rule.

Definition at line 382 of file SecurityGroupRuleRequest.h.

◆ SetFromPort()

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

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

Definition at line 132 of file SecurityGroupRuleRequest.h.

◆ SetIpProtocol() [1/3]

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

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

Use -1 to specify all protocols.

Definition at line 78 of file SecurityGroupRuleRequest.h.

◆ SetIpProtocol() [2/3]

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

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

Use -1 to specify all protocols.

Definition at line 70 of file SecurityGroupRuleRequest.h.

◆ SetIpProtocol() [3/3]

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

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

Use -1 to specify all protocols.

Definition at line 86 of file SecurityGroupRuleRequest.h.

◆ SetPrefixListId() [1/3]

void Aws::EC2::Model::SecurityGroupRuleRequest::SetPrefixListId ( Aws::String &&  value)
inline

The ID of the prefix list.

Definition at line 287 of file SecurityGroupRuleRequest.h.

◆ SetPrefixListId() [2/3]

void Aws::EC2::Model::SecurityGroupRuleRequest::SetPrefixListId ( const Aws::String value)
inline

The ID of the prefix list.

Definition at line 282 of file SecurityGroupRuleRequest.h.

◆ SetPrefixListId() [3/3]

void Aws::EC2::Model::SecurityGroupRuleRequest::SetPrefixListId ( const char *  value)
inline

The ID of the prefix list.

Definition at line 292 of file SecurityGroupRuleRequest.h.

◆ SetReferencedGroupId() [1/3]

void Aws::EC2::Model::SecurityGroupRuleRequest::SetReferencedGroupId ( Aws::String &&  value)
inline

The ID of the security group that is referenced in the security group rule.

Definition at line 332 of file SecurityGroupRuleRequest.h.

◆ SetReferencedGroupId() [2/3]

void Aws::EC2::Model::SecurityGroupRuleRequest::SetReferencedGroupId ( const Aws::String value)
inline

The ID of the security group that is referenced in the security group rule.

Definition at line 326 of file SecurityGroupRuleRequest.h.

◆ SetReferencedGroupId() [3/3]

void Aws::EC2::Model::SecurityGroupRuleRequest::SetReferencedGroupId ( const char *  value)
inline

The ID of the security group that is referenced in the security group rule.

Definition at line 338 of file SecurityGroupRuleRequest.h.

◆ SetToPort()

void Aws::EC2::Model::SecurityGroupRuleRequest::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 161 of file SecurityGroupRuleRequest.h.

◆ ToPortHasBeenSet()

bool Aws::EC2::Model::SecurityGroupRuleRequest::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 154 of file SecurityGroupRuleRequest.h.

◆ WithCidrIpv4() [1/3]

SecurityGroupRuleRequest& Aws::EC2::Model::SecurityGroupRuleRequest::WithCidrIpv4 ( Aws::String &&  value)
inline

The IPv4 CIDR range. To specify a single IPv4 address, use the /32 prefix length.

Definition at line 211 of file SecurityGroupRuleRequest.h.

◆ WithCidrIpv4() [2/3]

SecurityGroupRuleRequest& Aws::EC2::Model::SecurityGroupRuleRequest::WithCidrIpv4 ( const Aws::String value)
inline

The IPv4 CIDR range. To specify a single IPv4 address, use the /32 prefix length.

Definition at line 205 of file SecurityGroupRuleRequest.h.

◆ WithCidrIpv4() [3/3]

SecurityGroupRuleRequest& Aws::EC2::Model::SecurityGroupRuleRequest::WithCidrIpv4 ( const char *  value)
inline

The IPv4 CIDR range. To specify a single IPv4 address, use the /32 prefix length.

Definition at line 217 of file SecurityGroupRuleRequest.h.

◆ WithCidrIpv6() [1/3]

SecurityGroupRuleRequest& Aws::EC2::Model::SecurityGroupRuleRequest::WithCidrIpv6 ( Aws::String &&  value)
inline

The IPv6 CIDR range. To specify a single IPv6 address, use the /128 prefix length.

Definition at line 260 of file SecurityGroupRuleRequest.h.

◆ WithCidrIpv6() [2/3]

SecurityGroupRuleRequest& Aws::EC2::Model::SecurityGroupRuleRequest::WithCidrIpv6 ( const Aws::String value)
inline

The IPv6 CIDR range. To specify a single IPv6 address, use the /128 prefix length.

Definition at line 254 of file SecurityGroupRuleRequest.h.

◆ WithCidrIpv6() [3/3]

SecurityGroupRuleRequest& Aws::EC2::Model::SecurityGroupRuleRequest::WithCidrIpv6 ( const char *  value)
inline

The IPv6 CIDR range. To specify a single IPv6 address, use the /128 prefix length.

Definition at line 266 of file SecurityGroupRuleRequest.h.

◆ WithDescription() [1/3]

SecurityGroupRuleRequest& Aws::EC2::Model::SecurityGroupRuleRequest::WithDescription ( Aws::String &&  value)
inline

The description of the security group rule.

Definition at line 392 of file SecurityGroupRuleRequest.h.

◆ WithDescription() [2/3]

SecurityGroupRuleRequest& Aws::EC2::Model::SecurityGroupRuleRequest::WithDescription ( const Aws::String value)
inline

The description of the security group rule.

Definition at line 387 of file SecurityGroupRuleRequest.h.

◆ WithDescription() [3/3]

SecurityGroupRuleRequest& Aws::EC2::Model::SecurityGroupRuleRequest::WithDescription ( const char *  value)
inline

The description of the security group rule.

Definition at line 397 of file SecurityGroupRuleRequest.h.

◆ WithFromPort()

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

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

Definition at line 139 of file SecurityGroupRuleRequest.h.

◆ WithIpProtocol() [1/3]

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

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

Use -1 to specify all protocols.

Definition at line 102 of file SecurityGroupRuleRequest.h.

◆ WithIpProtocol() [2/3]

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

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

Use -1 to specify all protocols.

Definition at line 94 of file SecurityGroupRuleRequest.h.

◆ WithIpProtocol() [3/3]

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

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

Use -1 to specify all protocols.

Definition at line 110 of file SecurityGroupRuleRequest.h.

◆ WithPrefixListId() [1/3]

SecurityGroupRuleRequest& Aws::EC2::Model::SecurityGroupRuleRequest::WithPrefixListId ( Aws::String &&  value)
inline

The ID of the prefix list.

Definition at line 302 of file SecurityGroupRuleRequest.h.

◆ WithPrefixListId() [2/3]

SecurityGroupRuleRequest& Aws::EC2::Model::SecurityGroupRuleRequest::WithPrefixListId ( const Aws::String value)
inline

The ID of the prefix list.

Definition at line 297 of file SecurityGroupRuleRequest.h.

◆ WithPrefixListId() [3/3]

SecurityGroupRuleRequest& Aws::EC2::Model::SecurityGroupRuleRequest::WithPrefixListId ( const char *  value)
inline

The ID of the prefix list.

Definition at line 307 of file SecurityGroupRuleRequest.h.

◆ WithReferencedGroupId() [1/3]

SecurityGroupRuleRequest& Aws::EC2::Model::SecurityGroupRuleRequest::WithReferencedGroupId ( Aws::String &&  value)
inline

The ID of the security group that is referenced in the security group rule.

Definition at line 350 of file SecurityGroupRuleRequest.h.

◆ WithReferencedGroupId() [2/3]

SecurityGroupRuleRequest& Aws::EC2::Model::SecurityGroupRuleRequest::WithReferencedGroupId ( const Aws::String value)
inline

The ID of the security group that is referenced in the security group rule.

Definition at line 344 of file SecurityGroupRuleRequest.h.

◆ WithReferencedGroupId() [3/3]

SecurityGroupRuleRequest& Aws::EC2::Model::SecurityGroupRuleRequest::WithReferencedGroupId ( const char *  value)
inline

The ID of the security group that is referenced in the security group rule.

Definition at line 356 of file SecurityGroupRuleRequest.h.

◆ WithToPort()

SecurityGroupRuleRequest& Aws::EC2::Model::SecurityGroupRuleRequest::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 168 of file SecurityGroupRuleRequest.h.


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