@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PhoneNumberError extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
PhoneNumberError() |
Modifier and Type | Method and Description |
---|---|
PhoneNumberError |
clone() |
boolean |
equals(Object obj) |
String |
getErrorCode()
The error code.
|
String |
getErrorMessage()
The error message.
|
String |
getPhoneNumberId()
The phone number ID for which the action failed.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setErrorCode(String errorCode)
The error code.
|
void |
setErrorMessage(String errorMessage)
The error message.
|
void |
setPhoneNumberId(String phoneNumberId)
The phone number ID for which the action failed.
|
String |
toString()
Returns a string representation of this object.
|
PhoneNumberError |
withErrorCode(ErrorCode errorCode)
The error code.
|
PhoneNumberError |
withErrorCode(String errorCode)
The error code.
|
PhoneNumberError |
withErrorMessage(String errorMessage)
The error message.
|
PhoneNumberError |
withPhoneNumberId(String phoneNumberId)
The phone number ID for which the action failed.
|
public void setPhoneNumberId(String phoneNumberId)
The phone number ID for which the action failed.
phoneNumberId
- The phone number ID for which the action failed.public String getPhoneNumberId()
The phone number ID for which the action failed.
public PhoneNumberError withPhoneNumberId(String phoneNumberId)
The phone number ID for which the action failed.
phoneNumberId
- The phone number ID for which the action failed.public void setErrorCode(String errorCode)
The error code.
errorCode
- The error code.ErrorCode
public String getErrorCode()
The error code.
ErrorCode
public PhoneNumberError withErrorCode(String errorCode)
The error code.
errorCode
- The error code.ErrorCode
public PhoneNumberError withErrorCode(ErrorCode errorCode)
The error code.
errorCode
- The error code.ErrorCode
public void setErrorMessage(String errorMessage)
The error message.
errorMessage
- The error message.public String getErrorMessage()
The error message.
public PhoneNumberError withErrorMessage(String errorMessage)
The error message.
errorMessage
- The error message.public String toString()
toString
in class Object
Object.toString()
public PhoneNumberError clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.