@Generated(value="software.amazon.awssdk:codegen") public final class PhoneNumberError extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PhoneNumberError.Builder,PhoneNumberError>
If the phone number 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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PhoneNumberError.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PhoneNumberError.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
ErrorCode |
errorCode()
The error code.
|
String |
errorCodeAsString()
The error code.
|
String |
errorMessage()
The error message.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
phoneNumberId()
The phone number ID for which the action failed.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PhoneNumberError.Builder> |
serializableBuilderClass() |
PhoneNumberError.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String phoneNumberId()
The phone number ID for which the action failed.
public final ErrorCode errorCode()
The error code.
If the service returns an enum value that is not available in the current SDK version, errorCode will
return ErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
errorCodeAsString().
ErrorCodepublic final String errorCodeAsString()
The error code.
If the service returns an enum value that is not available in the current SDK version, errorCode will
return ErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
errorCodeAsString().
ErrorCodepublic final String errorMessage()
The error message.
public PhoneNumberError.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PhoneNumberError.Builder,PhoneNumberError>public static PhoneNumberError.Builder builder()
public static Class<? extends PhoneNumberError.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.