@Generated(value="software.amazon.awssdk:codegen") public final class UserError extends Object implements SdkPojo, Serializable, ToCopyableBuilder<UserError.Builder,UserError>
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.
Modifier and Type | Class and Description |
---|---|
static interface |
UserError.Builder |
Modifier and Type | Method and Description |
---|---|
static UserError.Builder |
builder() |
boolean |
equals(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() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends UserError.Builder> |
serializableBuilderClass() |
UserError.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
userId()
The user ID for which the action failed.
|
copy
public String userId()
The user ID for which the action failed.
public 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()
.
ErrorCode
public 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()
.
ErrorCode
public String errorMessage()
The error message.
public UserError.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<UserError.Builder,UserError>
public static UserError.Builder builder()
public static Class<? extends UserError.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.