Interface DescribeRegionsRequest.Builder

    • Method Detail

      • filters

        DescribeRegionsRequest.Builder filters​(Collection<Filter> filters)

        The filters.

        • endpoint - The endpoint of the Region (for example, ec2.us-east-1.amazonaws.com).

        • opt-in-status - The opt-in status of the Region (opt-in-not-required | opted-in | not-opted-in).

        • region-name - The name of the Region (for example, us-east-1).

        Parameters:
        filters - The filters.

        • endpoint - The endpoint of the Region (for example, ec2.us-east-1.amazonaws.com).

        • opt-in-status - The opt-in status of the Region (opt-in-not-required | opted-in | not-opted-in).

        • region-name - The name of the Region (for example, us-east-1).

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • filters

        DescribeRegionsRequest.Builder filters​(Filter... filters)

        The filters.

        • endpoint - The endpoint of the Region (for example, ec2.us-east-1.amazonaws.com).

        • opt-in-status - The opt-in status of the Region (opt-in-not-required | opted-in | not-opted-in).

        • region-name - The name of the Region (for example, us-east-1).

        Parameters:
        filters - The filters.

        • endpoint - The endpoint of the Region (for example, ec2.us-east-1.amazonaws.com).

        • opt-in-status - The opt-in status of the Region (opt-in-not-required | opted-in | not-opted-in).

        • region-name - The name of the Region (for example, us-east-1).

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • filters

        DescribeRegionsRequest.Builder filters​(Consumer<Filter.Builder>... filters)

        The filters.

        • endpoint - The endpoint of the Region (for example, ec2.us-east-1.amazonaws.com).

        • opt-in-status - The opt-in status of the Region (opt-in-not-required | opted-in | not-opted-in).

        • region-name - The name of the Region (for example, us-east-1).

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

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

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

        DescribeRegionsRequest.Builder regionNames​(Collection<String> regionNames)

        The names of the Regions. You can specify any Regions, whether they are enabled and disabled for your account.

        Parameters:
        regionNames - The names of the Regions. You can specify any Regions, whether they are enabled and disabled for your account.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • regionNames

        DescribeRegionsRequest.Builder regionNames​(String... regionNames)

        The names of the Regions. You can specify any Regions, whether they are enabled and disabled for your account.

        Parameters:
        regionNames - The names of the Regions. You can specify any Regions, whether they are enabled and disabled for your account.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dryRun

        DescribeRegionsRequest.Builder dryRun​(Boolean dryRun)

        Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

        Parameters:
        dryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • allRegions

        DescribeRegionsRequest.Builder allRegions​(Boolean allRegions)

        Indicates whether to display all Regions, including Regions that are disabled for your account.

        Parameters:
        allRegions - Indicates whether to display all Regions, including Regions that are disabled for your account.
        Returns:
        Returns a reference to this object so that method calls can be chained together.