Class RevokeSecurityGroupEgressRequest

    • Constructor Detail

      • RevokeSecurityGroupEgressRequest

        public RevokeSecurityGroupEgressRequest()
    • 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) 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.
      • 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object