@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RetentionPeriod extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the retention period of an FSx for ONTAP SnapLock volume. After it is set, it can't be changed. Files can't be deleted or modified during the retention period.
For more information, see Working with the retention period in SnapLock.
Constructor and Description |
---|
RetentionPeriod() |
Modifier and Type | Method and Description |
---|---|
RetentionPeriod |
clone() |
boolean |
equals(Object obj) |
String |
getType()
Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume.
|
Integer |
getValue()
Defines the amount of time for the retention period of an FSx for ONTAP SnapLock volume.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setType(String type)
Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume.
|
void |
setValue(Integer value)
Defines the amount of time for the retention period of an FSx for ONTAP SnapLock volume.
|
String |
toString()
Returns a string representation of this object.
|
RetentionPeriod |
withType(RetentionPeriodType type)
Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume.
|
RetentionPeriod |
withType(String type)
Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume.
|
RetentionPeriod |
withValue(Integer value)
Defines the amount of time for the retention period of an FSx for ONTAP SnapLock volume.
|
public void setType(String type)
Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume. Set it to one of the valid
types. If you set it to INFINITE
, the files are retained forever. If you set it to
UNSPECIFIED
, the files are retained until you set an explicit retention period.
type
- Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume. Set it to one of
the valid types. If you set it to INFINITE
, the files are retained forever. If you set it to
UNSPECIFIED
, the files are retained until you set an explicit retention period.RetentionPeriodType
public String getType()
Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume. Set it to one of the valid
types. If you set it to INFINITE
, the files are retained forever. If you set it to
UNSPECIFIED
, the files are retained until you set an explicit retention period.
INFINITE
, the files are retained forever. If you set it to
UNSPECIFIED
, the files are retained until you set an explicit retention period.RetentionPeriodType
public RetentionPeriod withType(String type)
Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume. Set it to one of the valid
types. If you set it to INFINITE
, the files are retained forever. If you set it to
UNSPECIFIED
, the files are retained until you set an explicit retention period.
type
- Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume. Set it to one of
the valid types. If you set it to INFINITE
, the files are retained forever. If you set it to
UNSPECIFIED
, the files are retained until you set an explicit retention period.RetentionPeriodType
public RetentionPeriod withType(RetentionPeriodType type)
Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume. Set it to one of the valid
types. If you set it to INFINITE
, the files are retained forever. If you set it to
UNSPECIFIED
, the files are retained until you set an explicit retention period.
type
- Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume. Set it to one of
the valid types. If you set it to INFINITE
, the files are retained forever. If you set it to
UNSPECIFIED
, the files are retained until you set an explicit retention period.RetentionPeriodType
public void setValue(Integer value)
Defines the amount of time for the retention period of an FSx for ONTAP SnapLock volume. You can't set a value
for INFINITE
or UNSPECIFIED
. For all other options, the following ranges are valid:
Seconds
: 0 - 65,535
Minutes
: 0 - 65,535
Hours
: 0 - 24
Days
: 0 - 365
Months
: 0 - 12
Years
: 0 - 100
value
- Defines the amount of time for the retention period of an FSx for ONTAP SnapLock volume. You can't set a
value for INFINITE
or UNSPECIFIED
. For all other options, the following ranges
are valid:
Seconds
: 0 - 65,535
Minutes
: 0 - 65,535
Hours
: 0 - 24
Days
: 0 - 365
Months
: 0 - 12
Years
: 0 - 100
public Integer getValue()
Defines the amount of time for the retention period of an FSx for ONTAP SnapLock volume. You can't set a value
for INFINITE
or UNSPECIFIED
. For all other options, the following ranges are valid:
Seconds
: 0 - 65,535
Minutes
: 0 - 65,535
Hours
: 0 - 24
Days
: 0 - 365
Months
: 0 - 12
Years
: 0 - 100
INFINITE
or UNSPECIFIED
. For all other options, the following ranges
are valid:
Seconds
: 0 - 65,535
Minutes
: 0 - 65,535
Hours
: 0 - 24
Days
: 0 - 365
Months
: 0 - 12
Years
: 0 - 100
public RetentionPeriod withValue(Integer value)
Defines the amount of time for the retention period of an FSx for ONTAP SnapLock volume. You can't set a value
for INFINITE
or UNSPECIFIED
. For all other options, the following ranges are valid:
Seconds
: 0 - 65,535
Minutes
: 0 - 65,535
Hours
: 0 - 24
Days
: 0 - 365
Months
: 0 - 12
Years
: 0 - 100
value
- Defines the amount of time for the retention period of an FSx for ONTAP SnapLock volume. You can't set a
value for INFINITE
or UNSPECIFIED
. For all other options, the following ranges
are valid:
Seconds
: 0 - 65,535
Minutes
: 0 - 65,535
Hours
: 0 - 24
Days
: 0 - 365
Months
: 0 - 12
Years
: 0 - 100
public String toString()
toString
in class Object
Object.toString()
public RetentionPeriod clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.