Class CollectionErrorDetail
- java.lang.Object
-
- software.amazon.awssdk.services.opensearchserverless.model.CollectionErrorDetail
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CollectionErrorDetail.Builder,CollectionErrorDetail>
@Generated("software.amazon.awssdk:codegen") public final class CollectionErrorDetail extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CollectionErrorDetail.Builder,CollectionErrorDetail>
Error information for an OpenSearch Serverless request.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCollectionErrorDetail.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CollectionErrorDetail.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringerrorCode()The error code for the request.StringerrorMessage()A description of the error.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()If the request contains collection IDs, the response includes the IDs provided in the request.Stringname()If the request contains collection names, the response includes the names provided in the request.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends CollectionErrorDetail.Builder>serializableBuilderClass()CollectionErrorDetail.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
errorCode
public final String errorCode()
The error code for the request. For example,
NOT_FOUND.- Returns:
- The error code for the request. For example,
NOT_FOUND.
-
errorMessage
public final String errorMessage()
A description of the error. For example,
The specified Collection is not found.- Returns:
- A description of the error. For example,
The specified Collection is not found.
-
id
public final String id()
If the request contains collection IDs, the response includes the IDs provided in the request.
- Returns:
- If the request contains collection IDs, the response includes the IDs provided in the request.
-
name
public final String name()
If the request contains collection names, the response includes the names provided in the request.
- Returns:
- If the request contains collection names, the response includes the names provided in the request.
-
toBuilder
public CollectionErrorDetail.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CollectionErrorDetail.Builder,CollectionErrorDetail>
-
builder
public static CollectionErrorDetail.Builder builder()
-
serializableBuilderClass
public static Class<? extends CollectionErrorDetail.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-