Class RevokeSecurityGroupIngressRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<RevokeSecurityGroupIngressRequest>
,Serializable
,Cloneable
Contains the parameters for RevokeSecurityGroupIngress.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for RevokeSecurityGroupIngressRequest object.RevokeSecurityGroupIngressRequest
(String groupName, List<IpPermission> ipPermissions) Constructs a new RevokeSecurityGroupIngressRequest object. -
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.[EC2-Classic, default VPC] The name of the security group.A set of IP permissions.[EC2-Classic, default VPC] The name of the source security group.[EC2-Classic] The AWS account ID of the source security group, if the source security group is in a different account.The end of port range for the TCP and UDP protocols, or an ICMP code 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
setGroupName
(String groupName) [EC2-Classic, default VPC] The name of the security group.void
setIpPermissions
(Collection<IpPermission> ipPermissions) A set of IP permissions.void
setIpProtocol
(String ipProtocol) void
setSourceSecurityGroupName
(String sourceSecurityGroupName) [EC2-Classic, default VPC] The name of the source security group.void
setSourceSecurityGroupOwnerId
(String sourceSecurityGroupOwnerId) [EC2-Classic] The AWS account ID of the source security group, if the source security group is in a different account.void
The end of port range for the TCP and UDP protocols, or an ICMP code 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.withGroupName
(String groupName) [EC2-Classic, default VPC] The name of the security group.withIpPermissions
(IpPermission... ipPermissions) A set of IP permissions.withIpPermissions
(Collection<IpPermission> ipPermissions) A set of IP permissions.withIpProtocol
(String ipProtocol) withSourceSecurityGroupName
(String sourceSecurityGroupName) [EC2-Classic, default VPC] The name of the source security group.withSourceSecurityGroupOwnerId
(String sourceSecurityGroupOwnerId) [EC2-Classic] The AWS account ID of the source security group, if the source security group is in a different account.withToPort
(Integer toPort) The end of port range for the TCP and UDP protocols, or an ICMP code 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
-
RevokeSecurityGroupIngressRequest
public RevokeSecurityGroupIngressRequest()Default constructor for RevokeSecurityGroupIngressRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
RevokeSecurityGroupIngressRequest
Constructs a new RevokeSecurityGroupIngressRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
groupName
- [EC2-Classic, default VPC] The name of the security group.ipPermissions
- A set of IP permissions. You can't specify a source security group and a CIDR IP address range.
-
-
Method Details
-
setGroupName
[EC2-Classic, default VPC] The name of the security group.
- Parameters:
groupName
- [EC2-Classic, default VPC] The name of the security group.
-
getGroupName
[EC2-Classic, default VPC] The name of the security group.
- Returns:
- [EC2-Classic, default VPC] The name of the security group.
-
withGroupName
[EC2-Classic, default VPC] The name of the security group.
- Parameters:
groupName
- [EC2-Classic, default VPC] The name of the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setGroupId
The ID of the security group. Required for a security group in a nondefault VPC.
- Parameters:
groupId
- The ID of the security group. Required for a security group in a nondefault VPC.
-
getGroupId
The ID of the security group. Required for a security group in a nondefault VPC.
- Returns:
- The ID of the security group. Required for a security group in a nondefault VPC.
-
withGroupId
The ID of the security group. Required for a security group in a nondefault VPC.
- Parameters:
groupId
- The ID of the security group. Required for a security group in a nondefault VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSourceSecurityGroupName
[EC2-Classic, default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. For EC2-VPC, the source security group must be in the same VPC. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.
- Parameters:
sourceSecurityGroupName
- [EC2-Classic, default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. For EC2-VPC, the source security group must be in the same VPC. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.
-
getSourceSecurityGroupName
[EC2-Classic, default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. For EC2-VPC, the source security group must be in the same VPC. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.
- Returns:
- [EC2-Classic, default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. For EC2-VPC, the source security group must be in the same VPC. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.
-
withSourceSecurityGroupName
public RevokeSecurityGroupIngressRequest withSourceSecurityGroupName(String sourceSecurityGroupName) [EC2-Classic, default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. For EC2-VPC, the source security group must be in the same VPC. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.
- Parameters:
sourceSecurityGroupName
- [EC2-Classic, default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. For EC2-VPC, the source security group must be in the same VPC. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSourceSecurityGroupOwnerId
[EC2-Classic] The AWS account ID of the source security group, if the source security group is in a different account. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.
- Parameters:
sourceSecurityGroupOwnerId
- [EC2-Classic] The AWS account ID of the source security group, if the source security group is in a different account. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.
-
getSourceSecurityGroupOwnerId
[EC2-Classic] The AWS account ID of the source security group, if the source security group is in a different account. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.
- Returns:
- [EC2-Classic] The AWS account ID of the source security group, if the source security group is in a different account. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.
-
withSourceSecurityGroupOwnerId
public RevokeSecurityGroupIngressRequest withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId) [EC2-Classic] The AWS account ID of the source security group, if the source security group is in a different account. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. To revoke a specific rule for an IP protocol and port range, use a set of IP permissions instead.
- Parameters:
sourceSecurityGroupOwnerId
- [EC2-Classic] The AWS account ID of the source security group, if the source security group is in a different account. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. To revoke a specific rule for an IP protocol and port range, 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 (
tcp
,udp
,icmp
) or number (see Protocol Numbers). Use-1
to specify all.- Parameters:
ipProtocol
- The IP protocol name (tcp
,udp
,icmp
) or number (see Protocol Numbers). Use-1
to specify all.
-
getIpProtocol
The IP protocol name (
tcp
,udp
,icmp
) or number (see Protocol Numbers). Use-1
to specify all.- Returns:
- The IP protocol name (
tcp
,udp
,icmp
) or number (see Protocol Numbers). Use-1
to specify all.
-
withIpProtocol
The IP protocol name (
tcp
,udp
,icmp
) or number (see Protocol Numbers). Use-1
to specify all.- Parameters:
ipProtocol
- The IP protocol name (tcp
,udp
,icmp
) or number (see Protocol Numbers). Use-1
to specify all.- 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. For the ICMP type number, use
-1
to specify all ICMP types.- Parameters:
fromPort
- The start of port range for the TCP and UDP protocols, or an ICMP type number. For the ICMP type number, use-1
to specify all ICMP types.
-
getFromPort
The start of port range for the TCP and UDP protocols, or an ICMP type number. For the ICMP type number, use
-1
to specify all ICMP types.- Returns:
- The start of port range for the TCP and UDP protocols, or an ICMP
type number. For the ICMP type number, use
-1
to specify all ICMP types.
-
withFromPort
The start of port range for the TCP and UDP protocols, or an ICMP type number. For the ICMP type number, use
-1
to specify all ICMP types.- Parameters:
fromPort
- The start of port range for the TCP and UDP protocols, or an ICMP type number. For the ICMP type number, use-1
to specify all ICMP types.- 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 code number. For the ICMP code number, use
-1
to specify all ICMP codes for the ICMP type.- Parameters:
toPort
- The end of port range for the TCP and UDP protocols, or an ICMP code number. For the ICMP code number, use-1
to specify all ICMP codes for the ICMP type.
-
getToPort
The end of port range for the TCP and UDP protocols, or an ICMP code number. For the ICMP code number, use
-1
to specify all ICMP codes for the ICMP type.- Returns:
- The end of port range for the TCP and UDP protocols, or an ICMP
code number. For the ICMP code number, use
-1
to specify all ICMP codes for the ICMP type.
-
withToPort
The end of port range for the TCP and UDP protocols, or an ICMP code number. For the ICMP code number, use
-1
to specify all ICMP codes for the ICMP type.- Parameters:
toPort
- The end of port range for the TCP and UDP protocols, or an ICMP code number. For the ICMP code number, use-1
to specify all ICMP codes for the ICMP type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCidrIp
The CIDR IP address range. You can't specify this parameter when specifying a source security group.
- Parameters:
cidrIp
- The CIDR IP address range. You can't specify this parameter when specifying a source security group.
-
getCidrIp
The CIDR IP address range. You can't specify this parameter when specifying a source security group.
- Returns:
- The CIDR IP address range. You can't specify this parameter when specifying a source security group.
-
withCidrIp
The CIDR IP address range. You can't specify this parameter when specifying a source security group.
- Parameters:
cidrIp
- The CIDR IP address range. You can't specify this parameter when specifying a source security group.- 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 source security group and a CIDR IP address range.
- Returns:
- A set of IP permissions. You can't specify a source security group and a CIDR IP address range.
-
setIpPermissions
A set of IP permissions. You can't specify a source security group and a CIDR IP address range.
- Parameters:
ipPermissions
- A set of IP permissions. You can't specify a source security group and a CIDR IP address range.
-
withIpPermissions
A set of IP permissions. You can't specify a source 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 source security group and a CIDR IP address range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withIpPermissions
A set of IP permissions. You can't specify a source security group and a CIDR IP address range.
- Parameters:
ipPermissions
- A set of IP permissions. You can't specify a source 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<RevokeSecurityGroupIngressRequest>
-
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:
-