Interface AssociatePhoneNumbersWithVoiceConnectorResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ChimeSdkVoiceResponse.Builder,CopyableBuilder<AssociatePhoneNumbersWithVoiceConnectorResponse.Builder,,AssociatePhoneNumbersWithVoiceConnectorResponse> SdkBuilder<AssociatePhoneNumbersWithVoiceConnectorResponse.Builder,,AssociatePhoneNumbersWithVoiceConnectorResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
AssociatePhoneNumbersWithVoiceConnectorResponse
public static interface AssociatePhoneNumbersWithVoiceConnectorResponse.Builder
extends ChimeSdkVoiceResponse.Builder, SdkPojo, CopyableBuilder<AssociatePhoneNumbersWithVoiceConnectorResponse.Builder,AssociatePhoneNumbersWithVoiceConnectorResponse>
-
Method Summary
Modifier and TypeMethodDescriptionphoneNumberErrors(Collection<PhoneNumberError> phoneNumberErrors) If the action fails for one or more of the phone numbers in the request, a list of the phone numbers is returned, along with error codes and error messages.phoneNumberErrors(Consumer<PhoneNumberError.Builder>... phoneNumberErrors) If the action fails for one or more of the phone numbers in the request, a list of the phone numbers is returned, along with error codes and error messages.phoneNumberErrors(PhoneNumberError... phoneNumberErrors) If the action fails for one or more of the phone numbers in the request, a list of the phone numbers is returned, along with error codes and error messages.Methods inherited from interface software.amazon.awssdk.services.chimesdkvoice.model.ChimeSdkVoiceResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
phoneNumberErrors
AssociatePhoneNumbersWithVoiceConnectorResponse.Builder phoneNumberErrors(Collection<PhoneNumberError> phoneNumberErrors) If the action fails for one or more of the phone numbers in the request, a list of the phone numbers is returned, along with error codes and error messages.
- Parameters:
phoneNumberErrors- If the action fails for one or more of the phone numbers in the request, a list of the phone numbers is returned, along with error codes and error messages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
phoneNumberErrors
AssociatePhoneNumbersWithVoiceConnectorResponse.Builder phoneNumberErrors(PhoneNumberError... phoneNumberErrors) If the action fails for one or more of the phone numbers in the request, a list of the phone numbers is returned, along with error codes and error messages.
- Parameters:
phoneNumberErrors- If the action fails for one or more of the phone numbers in the request, a list of the phone numbers is returned, along with error codes and error messages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
phoneNumberErrors
AssociatePhoneNumbersWithVoiceConnectorResponse.Builder phoneNumberErrors(Consumer<PhoneNumberError.Builder>... phoneNumberErrors) If the action fails for one or more of the phone numbers in the request, a list of the phone numbers is returned, along with error codes and error messages.
This is a convenience method that creates an instance of thePhoneNumberError.Builderavoiding the need to create one manually viaPhoneNumberError.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tophoneNumberErrors(List<PhoneNumberError>).- Parameters:
phoneNumberErrors- a consumer that will call methods onPhoneNumberError.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-