@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SnaplockRetentionPeriod extends Object implements Serializable, Cloneable, StructuredPojo
The configuration to set the retention period of an FSx for ONTAP SnapLock volume. The retention period includes default, maximum, and minimum settings. For more information, see Working with the retention period in SnapLock.
Constructor and Description |
---|
SnaplockRetentionPeriod() |
Modifier and Type | Method and Description |
---|---|
SnaplockRetentionPeriod |
clone() |
boolean |
equals(Object obj) |
RetentionPeriod |
getDefaultRetention()
The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period
is not set for an FSx for ONTAP SnapLock volume.
|
RetentionPeriod |
getMaximumRetention()
The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
|
RetentionPeriod |
getMinimumRetention()
The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDefaultRetention(RetentionPeriod defaultRetention)
The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period
is not set for an FSx for ONTAP SnapLock volume.
|
void |
setMaximumRetention(RetentionPeriod maximumRetention)
The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
|
void |
setMinimumRetention(RetentionPeriod minimumRetention)
The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
|
String |
toString()
Returns a string representation of this object.
|
SnaplockRetentionPeriod |
withDefaultRetention(RetentionPeriod defaultRetention)
The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period
is not set for an FSx for ONTAP SnapLock volume.
|
SnaplockRetentionPeriod |
withMaximumRetention(RetentionPeriod maximumRetention)
The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
|
SnaplockRetentionPeriod |
withMinimumRetention(RetentionPeriod minimumRetention)
The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
|
public void setDefaultRetention(RetentionPeriod defaultRetention)
The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period.
defaultRetention
- The retention period assigned to a write once, read many (WORM) file by default if an explicit retention
period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than
or equal to the minimum retention period and less than or equal to the maximum retention period.public RetentionPeriod getDefaultRetention()
The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period.
public SnaplockRetentionPeriod withDefaultRetention(RetentionPeriod defaultRetention)
The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to the minimum retention period and less than or equal to the maximum retention period.
defaultRetention
- The retention period assigned to a write once, read many (WORM) file by default if an explicit retention
period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than
or equal to the minimum retention period and less than or equal to the maximum retention period.public void setMinimumRetention(RetentionPeriod minimumRetention)
The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
minimumRetention
- The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.public RetentionPeriod getMinimumRetention()
The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
public SnaplockRetentionPeriod withMinimumRetention(RetentionPeriod minimumRetention)
The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
minimumRetention
- The shortest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.public void setMaximumRetention(RetentionPeriod maximumRetention)
The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
maximumRetention
- The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.public RetentionPeriod getMaximumRetention()
The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
public SnaplockRetentionPeriod withMaximumRetention(RetentionPeriod maximumRetention)
The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
maximumRetention
- The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.public String toString()
toString
in class Object
Object.toString()
public SnaplockRetentionPeriod clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.