Interface StaleIpPermission.Builder

    • Method Detail

      • fromPort

        StaleIpPermission.Builder fromPort​(Integer fromPort)

        The start of the port range for the TCP and UDP protocols, or an ICMP type number. A value of -1 indicates all ICMP types.

        Parameters:
        fromPort - The start of the port range for the TCP and UDP protocols, or an ICMP type number. A value of -1 indicates all ICMP types.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ipProtocol

        StaleIpPermission.Builder ipProtocol​(String ipProtocol)

        The IP protocol name (for tcp, udp, and icmp) or number (see Protocol Numbers).

        Parameters:
        ipProtocol - The IP protocol name (for tcp, udp, and icmp) or number (see Protocol Numbers).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ipRanges

        StaleIpPermission.Builder ipRanges​(Collection<String> ipRanges)

        The IP ranges. Not applicable for stale security group rules.

        Parameters:
        ipRanges - The IP ranges. Not applicable for stale security group rules.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ipRanges

        StaleIpPermission.Builder ipRanges​(String... ipRanges)

        The IP ranges. Not applicable for stale security group rules.

        Parameters:
        ipRanges - The IP ranges. Not applicable for stale security group rules.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • prefixListIds

        StaleIpPermission.Builder prefixListIds​(Collection<String> prefixListIds)

        The prefix list IDs. Not applicable for stale security group rules.

        Parameters:
        prefixListIds - The prefix list IDs. Not applicable for stale security group rules.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • prefixListIds

        StaleIpPermission.Builder prefixListIds​(String... prefixListIds)

        The prefix list IDs. Not applicable for stale security group rules.

        Parameters:
        prefixListIds - The prefix list IDs. Not applicable for stale security group rules.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toPort

        StaleIpPermission.Builder toPort​(Integer toPort)

        The end of the port range for the TCP and UDP protocols, or an ICMP type number. A value of -1 indicates all ICMP types.

        Parameters:
        toPort - The end of the port range for the TCP and UDP protocols, or an ICMP type number. A value of -1 indicates all ICMP types.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • userIdGroupPairs

        StaleIpPermission.Builder userIdGroupPairs​(Collection<UserIdGroupPair> userIdGroupPairs)

        The security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status of the VPC peering connection.

        Parameters:
        userIdGroupPairs - The security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status of the VPC peering connection.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • userIdGroupPairs

        StaleIpPermission.Builder userIdGroupPairs​(UserIdGroupPair... userIdGroupPairs)

        The security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status of the VPC peering connection.

        Parameters:
        userIdGroupPairs - The security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status of the VPC peering connection.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • userIdGroupPairs

        StaleIpPermission.Builder userIdGroupPairs​(Consumer<UserIdGroupPair.Builder>... userIdGroupPairs)

        The security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status of the VPC peering connection.

        This is a convenience method that creates an instance of the UserIdGroupPair.Builder avoiding the need to create one manually via UserIdGroupPair.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #userIdGroupPairs(List).

        Parameters:
        userIdGroupPairs - a consumer that will call methods on UserIdGroupPair.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #userIdGroupPairs(java.util.Collection)