@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EffectiveLifecyclePolicyErrorDetail extends Object implements Serializable, Cloneable, StructuredPojo
Error information for an OpenSearch Serverless request.
Constructor and Description |
---|
EffectiveLifecyclePolicyErrorDetail() |
Modifier and Type | Method and Description |
---|---|
EffectiveLifecyclePolicyErrorDetail |
clone() |
boolean |
equals(Object obj) |
String |
getErrorCode()
The error code for the request.
|
String |
getErrorMessage()
A description of the error.
|
String |
getResource()
The name of OpenSearch Serverless index resource.
|
String |
getType()
The type of lifecycle policy.
|
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 |
setResource(String resource)
The name of OpenSearch Serverless index resource.
|
void |
setType(String type)
The type of lifecycle policy.
|
String |
toString()
Returns a string representation of this object.
|
EffectiveLifecyclePolicyErrorDetail |
withErrorCode(String errorCode)
The error code for the request.
|
EffectiveLifecyclePolicyErrorDetail |
withErrorMessage(String errorMessage)
A description of the error.
|
EffectiveLifecyclePolicyErrorDetail |
withResource(String resource)
The name of OpenSearch Serverless index resource.
|
EffectiveLifecyclePolicyErrorDetail |
withType(LifecyclePolicyType type)
The type of lifecycle policy.
|
EffectiveLifecyclePolicyErrorDetail |
withType(String type)
The type of lifecycle policy.
|
public void setErrorCode(String errorCode)
The error code for the request.
errorCode
- The error code for the request.public String getErrorCode()
The error code for the request.
public EffectiveLifecyclePolicyErrorDetail withErrorCode(String errorCode)
The error code for the request.
errorCode
- The error code for the request.public void setErrorMessage(String errorMessage)
A description of the error. For example, The specified Index resource is not found
.
errorMessage
- A description of the error. For example, The specified Index resource is not found
.public String getErrorMessage()
A description of the error. For example, The specified Index resource is not found
.
The specified Index resource is not found
.public EffectiveLifecyclePolicyErrorDetail withErrorMessage(String errorMessage)
A description of the error. For example, The specified Index resource is not found
.
errorMessage
- A description of the error. For example, The specified Index resource is not found
.public void setResource(String resource)
The name of OpenSearch Serverless index resource.
resource
- The name of OpenSearch Serverless index resource.public String getResource()
The name of OpenSearch Serverless index resource.
public EffectiveLifecyclePolicyErrorDetail withResource(String resource)
The name of OpenSearch Serverless index resource.
resource
- The name of OpenSearch Serverless index resource.public void setType(String type)
The type of lifecycle policy.
type
- The type of lifecycle policy.LifecyclePolicyType
public String getType()
The type of lifecycle policy.
LifecyclePolicyType
public EffectiveLifecyclePolicyErrorDetail withType(String type)
The type of lifecycle policy.
type
- The type of lifecycle policy.LifecyclePolicyType
public EffectiveLifecyclePolicyErrorDetail withType(LifecyclePolicyType type)
The type of lifecycle policy.
type
- The type of lifecycle policy.LifecyclePolicyType
public String toString()
toString
in class Object
Object.toString()
public EffectiveLifecyclePolicyErrorDetail clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.