@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EffectiveLifecyclePolicyDetail extends Object implements Serializable, Cloneable, StructuredPojo
Error information for an OpenSearch Serverless request.
Constructor and Description |
---|
EffectiveLifecyclePolicyDetail() |
Modifier and Type | Method and Description |
---|---|
EffectiveLifecyclePolicyDetail |
clone() |
boolean |
equals(Object obj) |
Boolean |
getNoMinRetentionPeriod()
The minimum number of index retention days set.
|
String |
getPolicyName()
The name of the lifecycle policy.
|
String |
getResource()
The name of the OpenSearch Serverless index resource.
|
String |
getResourceType()
The type of OpenSearch Serverless resource.
|
String |
getRetentionPeriod()
The minimum number of index retention in days or hours.
|
String |
getType()
The type of lifecycle policy.
|
int |
hashCode() |
Boolean |
isNoMinRetentionPeriod()
The minimum number of index retention days set.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setNoMinRetentionPeriod(Boolean noMinRetentionPeriod)
The minimum number of index retention days set.
|
void |
setPolicyName(String policyName)
The name of the lifecycle policy.
|
void |
setResource(String resource)
The name of the OpenSearch Serverless index resource.
|
void |
setResourceType(String resourceType)
The type of OpenSearch Serverless resource.
|
void |
setRetentionPeriod(String retentionPeriod)
The minimum number of index retention in days or hours.
|
void |
setType(String type)
The type of lifecycle policy.
|
String |
toString()
Returns a string representation of this object.
|
EffectiveLifecyclePolicyDetail |
withNoMinRetentionPeriod(Boolean noMinRetentionPeriod)
The minimum number of index retention days set.
|
EffectiveLifecyclePolicyDetail |
withPolicyName(String policyName)
The name of the lifecycle policy.
|
EffectiveLifecyclePolicyDetail |
withResource(String resource)
The name of the OpenSearch Serverless index resource.
|
EffectiveLifecyclePolicyDetail |
withResourceType(ResourceType resourceType)
The type of OpenSearch Serverless resource.
|
EffectiveLifecyclePolicyDetail |
withResourceType(String resourceType)
The type of OpenSearch Serverless resource.
|
EffectiveLifecyclePolicyDetail |
withRetentionPeriod(String retentionPeriod)
The minimum number of index retention in days or hours.
|
EffectiveLifecyclePolicyDetail |
withType(LifecyclePolicyType type)
The type of lifecycle policy.
|
EffectiveLifecyclePolicyDetail |
withType(String type)
The type of lifecycle policy.
|
public void setNoMinRetentionPeriod(Boolean noMinRetentionPeriod)
The minimum number of index retention days set. That is an optional param that will return as true
if the minimum number of days or hours is not set to a index resource.
noMinRetentionPeriod
- The minimum number of index retention days set. That is an optional param that will return as
true
if the minimum number of days or hours is not set to a index resource.public Boolean getNoMinRetentionPeriod()
The minimum number of index retention days set. That is an optional param that will return as true
if the minimum number of days or hours is not set to a index resource.
true
if the minimum number of days or hours is not set to a index resource.public EffectiveLifecyclePolicyDetail withNoMinRetentionPeriod(Boolean noMinRetentionPeriod)
The minimum number of index retention days set. That is an optional param that will return as true
if the minimum number of days or hours is not set to a index resource.
noMinRetentionPeriod
- The minimum number of index retention days set. That is an optional param that will return as
true
if the minimum number of days or hours is not set to a index resource.public Boolean isNoMinRetentionPeriod()
The minimum number of index retention days set. That is an optional param that will return as true
if the minimum number of days or hours is not set to a index resource.
true
if the minimum number of days or hours is not set to a index resource.public void setPolicyName(String policyName)
The name of the lifecycle policy.
policyName
- The name of the lifecycle policy.public String getPolicyName()
The name of the lifecycle policy.
public EffectiveLifecyclePolicyDetail withPolicyName(String policyName)
The name of the lifecycle policy.
policyName
- The name of the lifecycle policy.public void setResource(String resource)
The name of the OpenSearch Serverless index resource.
resource
- The name of the OpenSearch Serverless index resource.public String getResource()
The name of the OpenSearch Serverless index resource.
public EffectiveLifecyclePolicyDetail withResource(String resource)
The name of the OpenSearch Serverless index resource.
resource
- The name of the OpenSearch Serverless index resource.public void setResourceType(String resourceType)
The type of OpenSearch Serverless resource. Currently, the only supported resource is index
.
resourceType
- The type of OpenSearch Serverless resource. Currently, the only supported resource is index
.ResourceType
public String getResourceType()
The type of OpenSearch Serverless resource. Currently, the only supported resource is index
.
index
.ResourceType
public EffectiveLifecyclePolicyDetail withResourceType(String resourceType)
The type of OpenSearch Serverless resource. Currently, the only supported resource is index
.
resourceType
- The type of OpenSearch Serverless resource. Currently, the only supported resource is index
.ResourceType
public EffectiveLifecyclePolicyDetail withResourceType(ResourceType resourceType)
The type of OpenSearch Serverless resource. Currently, the only supported resource is index
.
resourceType
- The type of OpenSearch Serverless resource. Currently, the only supported resource is index
.ResourceType
public void setRetentionPeriod(String retentionPeriod)
The minimum number of index retention in days or hours. This is an optional parameter that will return only if it’s set.
retentionPeriod
- The minimum number of index retention in days or hours. This is an optional parameter that will return
only if it’s set.public String getRetentionPeriod()
The minimum number of index retention in days or hours. This is an optional parameter that will return only if it’s set.
public EffectiveLifecyclePolicyDetail withRetentionPeriod(String retentionPeriod)
The minimum number of index retention in days or hours. This is an optional parameter that will return only if it’s set.
retentionPeriod
- The minimum number of index retention in days or hours. This is an optional parameter that will return
only if it’s set.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 EffectiveLifecyclePolicyDetail withType(String type)
The type of lifecycle policy.
type
- The type of lifecycle policy.LifecyclePolicyType
public EffectiveLifecyclePolicyDetail 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 EffectiveLifecyclePolicyDetail clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.