@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UserError extends Object implements Serializable, Cloneable, StructuredPojo
The list of errors returned when errors are encountered during the BatchSuspendUser, BatchUnsuspendUser, or BatchUpdateUser actions. This includes user IDs, error codes, and error messages.
Constructor and Description |
---|
UserError() |
Modifier and Type | Method and Description |
---|---|
UserError |
clone() |
boolean |
equals(Object obj) |
String |
getErrorCode()
The error code.
|
String |
getErrorMessage()
The error message.
|
String |
getUserId()
The user 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 |
setUserId(String userId)
The user ID for which the action failed.
|
String |
toString()
Returns a string representation of this object.
|
UserError |
withErrorCode(ErrorCode errorCode)
The error code.
|
UserError |
withErrorCode(String errorCode)
The error code.
|
UserError |
withErrorMessage(String errorMessage)
The error message.
|
UserError |
withUserId(String userId)
The user ID for which the action failed.
|
public void setUserId(String userId)
The user ID for which the action failed.
userId
- The user ID for which the action failed.public String getUserId()
The user ID for which the action failed.
public UserError withUserId(String userId)
The user ID for which the action failed.
userId
- The user 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 UserError withErrorCode(String errorCode)
The error code.
errorCode
- The error code.ErrorCode
public UserError 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 UserError withErrorMessage(String errorMessage)
The error message.
errorMessage
- The error message.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.