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