Interface DescribePhoneNumbersResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribePhoneNumbersResponse.Builder,,DescribePhoneNumbersResponse> PinpointSmsVoiceV2Response.Builder,SdkBuilder<DescribePhoneNumbersResponse.Builder,,DescribePhoneNumbersResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribePhoneNumbersResponse
public static interface DescribePhoneNumbersResponse.Builder
extends PinpointSmsVoiceV2Response.Builder, SdkPojo, CopyableBuilder<DescribePhoneNumbersResponse.Builder,DescribePhoneNumbersResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token to be used for the next set of paginated results.phoneNumbers(Collection<PhoneNumberInformation> phoneNumbers) An array of PhoneNumberInformation objects that contain the details for the requested phone numbers.phoneNumbers(Consumer<PhoneNumberInformation.Builder>... phoneNumbers) An array of PhoneNumberInformation objects that contain the details for the requested phone numbers.phoneNumbers(PhoneNumberInformation... phoneNumbers) An array of PhoneNumberInformation objects that contain the details for the requested phone numbers.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.pinpointsmsvoicev2.model.PinpointSmsVoiceV2Response.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
phoneNumbers
An array of PhoneNumberInformation objects that contain the details for the requested phone numbers.
- Parameters:
phoneNumbers- An array of PhoneNumberInformation objects that contain the details for the requested phone numbers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
phoneNumbers
An array of PhoneNumberInformation objects that contain the details for the requested phone numbers.
- Parameters:
phoneNumbers- An array of PhoneNumberInformation objects that contain the details for the requested phone numbers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
phoneNumbers
DescribePhoneNumbersResponse.Builder phoneNumbers(Consumer<PhoneNumberInformation.Builder>... phoneNumbers) An array of PhoneNumberInformation objects that contain the details for the requested phone numbers.
This is a convenience method that creates an instance of thePhoneNumberInformation.Builderavoiding the need to create one manually viaPhoneNumberInformation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tophoneNumbers(List<PhoneNumberInformation>).- Parameters:
phoneNumbers- a consumer that will call methods onPhoneNumberInformation.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. If this field is empty then there are no more results.
- Parameters:
nextToken- The token to be used for the next set of paginated results. If this field is empty then there are no more results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-