@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3SetObjectRetentionOperation extends Object implements Serializable, Cloneable
Contains the configuration parameters for a Set Object Retention operation. Amazon S3 Batch Operations passes each value through to the underlying PUT Object Retention API. For more information about the parameters for this operation, see PUT Object Retention.
Constructor and Description |
---|
S3SetObjectRetentionOperation() |
Modifier and Type | Method and Description |
---|---|
S3SetObjectRetentionOperation |
clone() |
boolean |
equals(Object obj) |
Boolean |
getBypassGovernanceRetention()
Indicates if the operation should be applied to objects in the Batch Operations job even if they have
Governance-type Object Lock in place.
|
S3Retention |
getRetention()
Amazon S3 object lock Retention contains the retention mode to be applied to all objects in the Batch Operations
job.
|
int |
hashCode() |
Boolean |
isBypassGovernanceRetention()
Indicates if the operation should be applied to objects in the Batch Operations job even if they have
Governance-type Object Lock in place.
|
void |
setBypassGovernanceRetention(Boolean bypassGovernanceRetention)
Indicates if the operation should be applied to objects in the Batch Operations job even if they have
Governance-type Object Lock in place.
|
void |
setRetention(S3Retention retention)
Amazon S3 object lock Retention contains the retention mode to be applied to all objects in the Batch Operations
job.
|
String |
toString()
Returns a string representation of this object.
|
S3SetObjectRetentionOperation |
withBypassGovernanceRetention(Boolean bypassGovernanceRetention)
Indicates if the operation should be applied to objects in the Batch Operations job even if they have
Governance-type Object Lock in place.
|
S3SetObjectRetentionOperation |
withRetention(S3Retention retention)
Amazon S3 object lock Retention contains the retention mode to be applied to all objects in the Batch Operations
job.
|
public void setBypassGovernanceRetention(Boolean bypassGovernanceRetention)
Indicates if the operation should be applied to objects in the Batch Operations job even if they have Governance-type Object Lock in place.
bypassGovernanceRetention
- Indicates if the operation should be applied to objects in the Batch Operations job even if they have
Governance-type Object Lock in place.public Boolean getBypassGovernanceRetention()
Indicates if the operation should be applied to objects in the Batch Operations job even if they have Governance-type Object Lock in place.
public S3SetObjectRetentionOperation withBypassGovernanceRetention(Boolean bypassGovernanceRetention)
Indicates if the operation should be applied to objects in the Batch Operations job even if they have Governance-type Object Lock in place.
bypassGovernanceRetention
- Indicates if the operation should be applied to objects in the Batch Operations job even if they have
Governance-type Object Lock in place.public Boolean isBypassGovernanceRetention()
Indicates if the operation should be applied to objects in the Batch Operations job even if they have Governance-type Object Lock in place.
public void setRetention(S3Retention retention)
Amazon S3 object lock Retention contains the retention mode to be applied to all objects in the Batch Operations job.
retention
- Amazon S3 object lock Retention contains the retention mode to be applied to all objects in the Batch
Operations job.public S3Retention getRetention()
Amazon S3 object lock Retention contains the retention mode to be applied to all objects in the Batch Operations job.
public S3SetObjectRetentionOperation withRetention(S3Retention retention)
Amazon S3 object lock Retention contains the retention mode to be applied to all objects in the Batch Operations job.
retention
- Amazon S3 object lock Retention contains the retention mode to be applied to all objects in the Batch
Operations job.public String toString()
toString
in class Object
Object.toString()
public S3SetObjectRetentionOperation clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.