@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AutocommitPeriod extends Object implements Serializable, Cloneable, StructuredPojo
Sets the autocommit period of files in an FSx for ONTAP SnapLock volume, which determines how long the files must remain unmodified before they're automatically transitioned to the write once, read many (WORM) state.
For more information, see Autocommit.
Constructor and Description |
---|
AutocommitPeriod() |
Modifier and Type | Method and Description |
---|---|
AutocommitPeriod |
clone() |
boolean |
equals(Object obj) |
String |
getType()
Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume.
|
Integer |
getValue()
Defines the amount of time for the autocommit period of a file in 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 autocommit period of a file in an FSx for ONTAP SnapLock volume.
|
void |
setValue(Integer value)
Defines the amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume.
|
String |
toString()
Returns a string representation of this object.
|
AutocommitPeriod |
withType(AutocommitPeriodType type)
Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume.
|
AutocommitPeriod |
withType(String type)
Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume.
|
AutocommitPeriod |
withValue(Integer value)
Defines the amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume.
|
public void setType(String type)
Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this
value to NONE
disables autocommit. The default value is NONE
.
type
- Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting
this value to NONE
disables autocommit. The default value is NONE
.AutocommitPeriodType
public String getType()
Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this
value to NONE
disables autocommit. The default value is NONE
.
NONE
disables autocommit. The default value is NONE
.AutocommitPeriodType
public AutocommitPeriod withType(String type)
Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this
value to NONE
disables autocommit. The default value is NONE
.
type
- Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting
this value to NONE
disables autocommit. The default value is NONE
.AutocommitPeriodType
public AutocommitPeriod withType(AutocommitPeriodType type)
Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this
value to NONE
disables autocommit. The default value is NONE
.
type
- Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting
this value to NONE
disables autocommit. The default value is NONE
.AutocommitPeriodType
public void setValue(Integer value)
Defines the amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. The following ranges are valid:
Minutes
: 5 - 65,535
Hours
: 1 - 65,535
Days
: 1 - 3,650
Months
: 1 - 120
Years
: 1 - 10
value
- Defines the amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. The
following ranges are valid:
Minutes
: 5 - 65,535
Hours
: 1 - 65,535
Days
: 1 - 3,650
Months
: 1 - 120
Years
: 1 - 10
public Integer getValue()
Defines the amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. The following ranges are valid:
Minutes
: 5 - 65,535
Hours
: 1 - 65,535
Days
: 1 - 3,650
Months
: 1 - 120
Years
: 1 - 10
Minutes
: 5 - 65,535
Hours
: 1 - 65,535
Days
: 1 - 3,650
Months
: 1 - 120
Years
: 1 - 10
public AutocommitPeriod withValue(Integer value)
Defines the amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. The following ranges are valid:
Minutes
: 5 - 65,535
Hours
: 1 - 65,535
Days
: 1 - 3,650
Months
: 1 - 120
Years
: 1 - 10
value
- Defines the amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. The
following ranges are valid:
Minutes
: 5 - 65,535
Hours
: 1 - 65,535
Days
: 1 - 3,650
Months
: 1 - 120
Years
: 1 - 10
public String toString()
toString
in class Object
Object.toString()
public AutocommitPeriod clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.