Interface DescribeOptedOutNumbersRequest.Builder

  • Method Details

    • optOutListName

      DescribeOptedOutNumbersRequest.Builder optOutListName(String optOutListName)

      The OptOutListName or OptOutListArn of the OptOutList. You can use DescribeOptOutLists to find the values for OptOutListName and OptOutListArn.

      If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

      Parameters:
      optOutListName - The OptOutListName or OptOutListArn of the OptOutList. You can use DescribeOptOutLists to find the values for OptOutListName and OptOutListArn.

      If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).

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

      DescribeOptedOutNumbersRequest.Builder optedOutNumbers(Collection<String> optedOutNumbers)

      An array of phone numbers to search for in the OptOutList.

      If you specify an opted out number that isn't valid, an exception is returned.

      Parameters:
      optedOutNumbers - An array of phone numbers to search for in the OptOutList.

      If you specify an opted out number that isn't valid, an exception is returned.

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

      DescribeOptedOutNumbersRequest.Builder optedOutNumbers(String... optedOutNumbers)

      An array of phone numbers to search for in the OptOutList.

      If you specify an opted out number that isn't valid, an exception is returned.

      Parameters:
      optedOutNumbers - An array of phone numbers to search for in the OptOutList.

      If you specify an opted out number that isn't valid, an exception is returned.

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

      An array of OptedOutFilter objects to filter the results on.

      Parameters:
      filters - An array of OptedOutFilter objects to filter the results on.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filters

      An array of OptedOutFilter objects to filter the results on.

      Parameters:
      filters - An array of OptedOutFilter objects to filter the results on.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filters

      An array of OptedOutFilter objects to filter the results on.

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

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

      Parameters:
      filters - a consumer that will call methods on OptedOutFilter.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • nextToken

      The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.

      Parameters:
      nextToken - The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxResults

      The maximum number of results to return per each request.

      Parameters:
      maxResults - The maximum number of results to return per each request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      DescribeOptedOutNumbersRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.