Class AuthorizeSecurityGroupEgressRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<AuthorizeSecurityGroupEgressRequest>
,Serializable
,Cloneable
Contains the parameters for AuthorizeSecurityGroupEgress.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The CIDR IP address range.This method is intended for internal use only.The start of port range for the TCP and UDP protocols, or an ICMP type number.The ID of the security group.A set of IP permissions.The IP protocol name or number.The name of a destination security group.The AWS account number for a destination security group.The end of port range for the TCP and UDP protocols, or an ICMP type number.int
hashCode()
void
The CIDR IP address range.void
setFromPort
(Integer fromPort) The start of port range for the TCP and UDP protocols, or an ICMP type number.void
setGroupId
(String groupId) The ID of the security group.void
setIpPermissions
(Collection<IpPermission> ipPermissions) A set of IP permissions.void
setIpProtocol
(String ipProtocol) The IP protocol name or number.void
setSourceSecurityGroupName
(String sourceSecurityGroupName) The name of a destination security group.void
setSourceSecurityGroupOwnerId
(String sourceSecurityGroupOwnerId) The AWS account number for a destination security group.void
The end of port range for the TCP and UDP protocols, or an ICMP type number.toString()
Returns a string representation of this object; useful for testing and debugging.withCidrIp
(String cidrIp) The CIDR IP address range.withFromPort
(Integer fromPort) The start of port range for the TCP and UDP protocols, or an ICMP type number.withGroupId
(String groupId) The ID of the security group.withIpPermissions
(IpPermission... ipPermissions) A set of IP permissions.withIpPermissions
(Collection<IpPermission> ipPermissions) A set of IP permissions.withIpProtocol
(String ipProtocol) The IP protocol name or number.withSourceSecurityGroupName
(String sourceSecurityGroupName) The name of a destination security group.withSourceSecurityGroupOwnerId
(String sourceSecurityGroupOwnerId) The AWS account number for a destination security group.withToPort
(Integer toPort) The end of port range for the TCP and UDP protocols, or an ICMP type number.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
AuthorizeSecurityGroupEgressRequest
public AuthorizeSecurityGroupEgressRequest()
-
-
Method Details
-
setGroupId
The ID of the security group.
- Parameters:
groupId
- The ID of the security group.
-
getGroupId
The ID of the security group.
- Returns:
- The ID of the security group.
-
withGroupId
The ID of the security group.
- Parameters:
groupId
- The ID of the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSourceSecurityGroupName
The name of a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
- Parameters:
sourceSecurityGroupName
- The name of a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
-
getSourceSecurityGroupName
The name of a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
- Returns:
- The name of a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
-
withSourceSecurityGroupName
public AuthorizeSecurityGroupEgressRequest withSourceSecurityGroupName(String sourceSecurityGroupName) The name of a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
- Parameters:
sourceSecurityGroupName
- The name of a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSourceSecurityGroupOwnerId
The AWS account number for a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
- Parameters:
sourceSecurityGroupOwnerId
- The AWS account number for a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
-
getSourceSecurityGroupOwnerId
The AWS account number for a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
- Returns:
- The AWS account number for a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
-
withSourceSecurityGroupOwnerId
public AuthorizeSecurityGroupEgressRequest withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId) The AWS account number for a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
- Parameters:
sourceSecurityGroupOwnerId
- The AWS account number for a destination security group. To authorize outbound access to a destination security group, we recommend that you use a set of IP permissions instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIpProtocol
The IP protocol name or number. We recommend that you specify the protocol in a set of IP permissions instead.
- Parameters:
ipProtocol
- The IP protocol name or number. We recommend that you specify the protocol in a set of IP permissions instead.
-
getIpProtocol
The IP protocol name or number. We recommend that you specify the protocol in a set of IP permissions instead.
- Returns:
- The IP protocol name or number. We recommend that you specify the protocol in a set of IP permissions instead.
-
withIpProtocol
The IP protocol name or number. We recommend that you specify the protocol in a set of IP permissions instead.
- Parameters:
ipProtocol
- The IP protocol name or number. We recommend that you specify the protocol in a set of IP permissions instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFromPort
The start of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.
- Parameters:
fromPort
- The start of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.
-
getFromPort
The start of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.
- Returns:
- The start of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.
-
withFromPort
The start of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.
- Parameters:
fromPort
- The start of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setToPort
The end of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.
- Parameters:
toPort
- The end of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.
-
getToPort
The end of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.
- Returns:
- The end of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.
-
withToPort
The end of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.
- Parameters:
toPort
- The end of port range for the TCP and UDP protocols, or an ICMP type number. We recommend that you specify the port range in a set of IP permissions instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCidrIp
The CIDR IP address range. We recommend that you specify the CIDR range in a set of IP permissions instead.
- Parameters:
cidrIp
- The CIDR IP address range. We recommend that you specify the CIDR range in a set of IP permissions instead.
-
getCidrIp
The CIDR IP address range. We recommend that you specify the CIDR range in a set of IP permissions instead.
- Returns:
- The CIDR IP address range. We recommend that you specify the CIDR range in a set of IP permissions instead.
-
withCidrIp
The CIDR IP address range. We recommend that you specify the CIDR range in a set of IP permissions instead.
- Parameters:
cidrIp
- The CIDR IP address range. We recommend that you specify the CIDR range in a set of IP permissions instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getIpPermissions
A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.
- Returns:
- A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.
-
setIpPermissions
A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.
- Parameters:
ipPermissions
- A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.
-
withIpPermissions
A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.
NOTE: This method appends the values to the existing list (if any). Use
setIpPermissions(java.util.Collection)
orwithIpPermissions(java.util.Collection)
if you want to override the existing values.- Parameters:
ipPermissions
- A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withIpPermissions
public AuthorizeSecurityGroupEgressRequest withIpPermissions(Collection<IpPermission> ipPermissions) A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.
- Parameters:
ipPermissions
- A set of IP permissions. You can't specify a destination security group and a CIDR IP address range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<AuthorizeSecurityGroupEgressRequest>
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-