Class RevokeSecurityGroupEgressRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.RevokeSecurityGroupEgressRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<RevokeSecurityGroupEgressRequest>
,Serializable
,Cloneable
public class RevokeSecurityGroupEgressRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<RevokeSecurityGroupEgressRequest>
Contains the parameters for RevokeSecurityGroupEgress.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description RevokeSecurityGroupEgressRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RevokeSecurityGroupEgressRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getCidrIp()
The CIDR IP address range.Request<RevokeSecurityGroupEgressRequest>
getDryRunRequest()
This method is intended for internal use only.Integer
getFromPort()
The start of port range for the TCP and UDP protocols, or an ICMP type number.String
getGroupId()
The ID of the security group.List<IpPermission>
getIpPermissions()
A set of IP permissions.String
getIpProtocol()
The IP protocol name or number.String
getSourceSecurityGroupName()
The name of a destination security group.String
getSourceSecurityGroupOwnerId()
The AWS account number for a destination security group.Integer
getToPort()
The end of port range for the TCP and UDP protocols, or an ICMP type number.int
hashCode()
void
setCidrIp(String cidrIp)
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
setToPort(Integer toPort)
The end of port range for the TCP and UDP protocols, or an ICMP type number.String
toString()
Returns a string representation of this object; useful for testing and debugging.RevokeSecurityGroupEgressRequest
withCidrIp(String cidrIp)
The CIDR IP address range.RevokeSecurityGroupEgressRequest
withFromPort(Integer fromPort)
The start of port range for the TCP and UDP protocols, or an ICMP type number.RevokeSecurityGroupEgressRequest
withGroupId(String groupId)
The ID of the security group.RevokeSecurityGroupEgressRequest
withIpPermissions(IpPermission... ipPermissions)
A set of IP permissions.RevokeSecurityGroupEgressRequest
withIpPermissions(Collection<IpPermission> ipPermissions)
A set of IP permissions.RevokeSecurityGroupEgressRequest
withIpProtocol(String ipProtocol)
The IP protocol name or number.RevokeSecurityGroupEgressRequest
withSourceSecurityGroupName(String sourceSecurityGroupName)
The name of a destination security group.RevokeSecurityGroupEgressRequest
withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
The AWS account number for a destination security group.RevokeSecurityGroupEgressRequest
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
-
-
-
-
Method Detail
-
setGroupId
public void setGroupId(String groupId)
The ID of the security group.
- Parameters:
groupId
- The ID of the security group.
-
getGroupId
public String getGroupId()
The ID of the security group.
- Returns:
- The ID of the security group.
-
withGroupId
public RevokeSecurityGroupEgressRequest withGroupId(String groupId)
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
public void setSourceSecurityGroupName(String sourceSecurityGroupName)
The name of a destination security group. To revoke 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 revoke outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
-
getSourceSecurityGroupName
public String getSourceSecurityGroupName()
The name of a destination security group. To revoke 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 revoke outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
-
withSourceSecurityGroupName
public RevokeSecurityGroupEgressRequest withSourceSecurityGroupName(String sourceSecurityGroupName)
The name of a destination security group. To revoke 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 revoke 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
public void setSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
The AWS account number for a destination security group. To revoke 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 revoke outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
-
getSourceSecurityGroupOwnerId
public String getSourceSecurityGroupOwnerId()
The AWS account number for a destination security group. To revoke 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 revoke outbound access to a destination security group, we recommend that you use a set of IP permissions instead.
-
withSourceSecurityGroupOwnerId
public RevokeSecurityGroupEgressRequest withSourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId)
The AWS account number for a destination security group. To revoke 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 revoke 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
public void setIpProtocol(String ipProtocol)
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
public String 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
public RevokeSecurityGroupEgressRequest withIpProtocol(String ipProtocol)
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
public void setFromPort(Integer 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.
- 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
public Integer 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
public RevokeSecurityGroupEgressRequest withFromPort(Integer 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.
- 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
public void setToPort(Integer 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.
- 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
public Integer 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
public RevokeSecurityGroupEgressRequest withToPort(Integer 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.
- 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
public void setCidrIp(String cidrIp)
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
public String 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
public RevokeSecurityGroupEgressRequest withCidrIp(String cidrIp)
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
public List<IpPermission> 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
public void setIpPermissions(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.
-
withIpPermissions
public RevokeSecurityGroupEgressRequest withIpPermissions(IpPermission... ipPermissions)
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 RevokeSecurityGroupEgressRequest 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
public Request<RevokeSecurityGroupEgressRequest> 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<RevokeSecurityGroupEgressRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public RevokeSecurityGroupEgressRequest 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:
Object.clone()
-
-