@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutRetentionPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PutRetentionPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
PutRetentionPolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDescription()
The retention policy description.
|
List<FolderConfiguration> |
getFolderConfigurations()
The retention policy folder configurations.
|
String |
getId()
The retention policy ID.
|
String |
getName()
The retention policy name.
|
String |
getOrganizationId()
The organization ID.
|
int |
hashCode() |
void |
setDescription(String description)
The retention policy description.
|
void |
setFolderConfigurations(Collection<FolderConfiguration> folderConfigurations)
The retention policy folder configurations.
|
void |
setId(String id)
The retention policy ID.
|
void |
setName(String name)
The retention policy name.
|
void |
setOrganizationId(String organizationId)
The organization ID.
|
String |
toString()
Returns a string representation of this object.
|
PutRetentionPolicyRequest |
withDescription(String description)
The retention policy description.
|
PutRetentionPolicyRequest |
withFolderConfigurations(Collection<FolderConfiguration> folderConfigurations)
The retention policy folder configurations.
|
PutRetentionPolicyRequest |
withFolderConfigurations(FolderConfiguration... folderConfigurations)
The retention policy folder configurations.
|
PutRetentionPolicyRequest |
withId(String id)
The retention policy ID.
|
PutRetentionPolicyRequest |
withName(String name)
The retention policy name.
|
PutRetentionPolicyRequest |
withOrganizationId(String organizationId)
The organization ID.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setOrganizationId(String organizationId)
The organization ID.
organizationId
- The organization ID.public String getOrganizationId()
The organization ID.
public PutRetentionPolicyRequest withOrganizationId(String organizationId)
The organization ID.
organizationId
- The organization ID.public void setId(String id)
The retention policy ID.
id
- The retention policy ID.public String getId()
The retention policy ID.
public PutRetentionPolicyRequest withId(String id)
The retention policy ID.
id
- The retention policy ID.public void setName(String name)
The retention policy name.
name
- The retention policy name.public String getName()
The retention policy name.
public PutRetentionPolicyRequest withName(String name)
The retention policy name.
name
- The retention policy name.public void setDescription(String description)
The retention policy description.
description
- The retention policy description.public String getDescription()
The retention policy description.
public PutRetentionPolicyRequest withDescription(String description)
The retention policy description.
description
- The retention policy description.public List<FolderConfiguration> getFolderConfigurations()
The retention policy folder configurations.
public void setFolderConfigurations(Collection<FolderConfiguration> folderConfigurations)
The retention policy folder configurations.
folderConfigurations
- The retention policy folder configurations.public PutRetentionPolicyRequest withFolderConfigurations(FolderConfiguration... folderConfigurations)
The retention policy folder configurations.
NOTE: This method appends the values to the existing list (if any). Use
setFolderConfigurations(java.util.Collection)
or withFolderConfigurations(java.util.Collection)
if you want to override the existing values.
folderConfigurations
- The retention policy folder configurations.public PutRetentionPolicyRequest withFolderConfigurations(Collection<FolderConfiguration> folderConfigurations)
The retention policy folder configurations.
folderConfigurations
- The retention policy folder configurations.public String toString()
toString
in class Object
Object.toString()
public PutRetentionPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()