@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CollectionErrorDetail extends Object implements Serializable, Cloneable, StructuredPojo
Error information for an OpenSearch Serverless request.
Constructor and Description |
---|
CollectionErrorDetail() |
Modifier and Type | Method and Description |
---|---|
CollectionErrorDetail |
clone() |
boolean |
equals(Object obj) |
String |
getErrorCode()
The error code for the request.
|
String |
getErrorMessage()
A description of the error.
|
String |
getId()
If the request contains collection IDs, the response includes the IDs provided in the request.
|
String |
getName()
If the request contains collection names, the response includes the names provided in the request.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setErrorCode(String errorCode)
The error code for the request.
|
void |
setErrorMessage(String errorMessage)
A description of the error.
|
void |
setId(String id)
If the request contains collection IDs, the response includes the IDs provided in the request.
|
void |
setName(String name)
If the request contains collection names, the response includes the names provided in the request.
|
String |
toString()
Returns a string representation of this object.
|
CollectionErrorDetail |
withErrorCode(String errorCode)
The error code for the request.
|
CollectionErrorDetail |
withErrorMessage(String errorMessage)
A description of the error.
|
CollectionErrorDetail |
withId(String id)
If the request contains collection IDs, the response includes the IDs provided in the request.
|
CollectionErrorDetail |
withName(String name)
If the request contains collection names, the response includes the names provided in the request.
|
public void setErrorCode(String errorCode)
The error code for the request. For example, NOT_FOUND
.
errorCode
- The error code for the request. For example, NOT_FOUND
.public String getErrorCode()
The error code for the request. For example, NOT_FOUND
.
NOT_FOUND
.public CollectionErrorDetail withErrorCode(String errorCode)
The error code for the request. For example, NOT_FOUND
.
errorCode
- The error code for the request. For example, NOT_FOUND
.public void setErrorMessage(String errorMessage)
A description of the error. For example, The specified Collection is not found.
errorMessage
- A description of the error. For example, The specified Collection is not found.
public String getErrorMessage()
A description of the error. For example, The specified Collection is not found.
The specified Collection is not found.
public CollectionErrorDetail withErrorMessage(String errorMessage)
A description of the error. For example, The specified Collection is not found.
errorMessage
- A description of the error. For example, The specified Collection is not found.
public void setId(String id)
If the request contains collection IDs, the response includes the IDs provided in the request.
id
- If the request contains collection IDs, the response includes the IDs provided in the request.public String getId()
If the request contains collection IDs, the response includes the IDs provided in the request.
public CollectionErrorDetail withId(String id)
If the request contains collection IDs, the response includes the IDs provided in the request.
id
- If the request contains collection IDs, the response includes the IDs provided in the request.public void setName(String name)
If the request contains collection names, the response includes the names provided in the request.
name
- If the request contains collection names, the response includes the names provided in the request.public String getName()
If the request contains collection names, the response includes the names provided in the request.
public CollectionErrorDetail withName(String name)
If the request contains collection names, the response includes the names provided in the request.
name
- If the request contains collection names, the response includes the names provided in the request.public String toString()
toString
in class Object
Object.toString()
public CollectionErrorDetail clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.