@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) |
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() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends UserError.Builder> |
serializableBuilderClass() |
UserError.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
userId()
The user ID for which the action failed.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String userId()
The user 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 UserError.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<UserError.Builder,UserError>public static UserError.Builder builder()
public static Class<? extends UserError.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.