@Generated(value="software.amazon.awssdk:codegen") public final class RetentionPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RetentionPolicy.Builder,RetentionPolicy>
The retention policy for data stored on an Amazon Elastic File System (EFS) volume.
Modifier and Type | Class and Description |
---|---|
static interface |
RetentionPolicy.Builder |
Modifier and Type | Method and Description |
---|---|
static RetentionPolicy.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
RetentionType |
homeEfsFileSystem()
The default is
Retain , which specifies to keep the data stored on the EFS volume. |
String |
homeEfsFileSystemAsString()
The default is
Retain , which specifies to keep the data stored on the EFS volume. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends RetentionPolicy.Builder> |
serializableBuilderClass() |
RetentionPolicy.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public RetentionType homeEfsFileSystem()
The default is Retain
, which specifies to keep the data stored on the EFS volume.
Specify Delete
to delete the data stored on the EFS volume.
If the service returns an enum value that is not available in the current SDK version, homeEfsFileSystem
will return RetentionType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
homeEfsFileSystemAsString()
.
Retain
, which specifies to keep the data stored on the EFS volume.
Specify Delete
to delete the data stored on the EFS volume.
RetentionType
public String homeEfsFileSystemAsString()
The default is Retain
, which specifies to keep the data stored on the EFS volume.
Specify Delete
to delete the data stored on the EFS volume.
If the service returns an enum value that is not available in the current SDK version, homeEfsFileSystem
will return RetentionType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
homeEfsFileSystemAsString()
.
Retain
, which specifies to keep the data stored on the EFS volume.
Specify Delete
to delete the data stored on the EFS volume.
RetentionType
public RetentionPolicy.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<RetentionPolicy.Builder,RetentionPolicy>
public static RetentionPolicy.Builder builder()
public static Class<? extends RetentionPolicy.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2020. All rights reserved.