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:
  • Constructor Details

    • RevokeSecurityGroupEgressRequest

      public RevokeSecurityGroupEgressRequest()
  • Method Details

    • 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) or withIpPermissions(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 interface DryRunSupportedRequest<RevokeSecurityGroupEgressRequest>
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 class AmazonWebServiceRequest
      See Also: