software.amazon.awssdk.services.fsx.model.FileCache Maven / Gradle / Ivy
Show all versions of fsx Show documentation
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.fsx.model;
import java.io.Serializable;
import java.time.Instant;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.ListTrait;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
import software.amazon.awssdk.core.util.SdkAutoConstructList;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
/**
*
* A description of a specific Amazon File Cache resource, which is a response object from the
* DescribeFileCaches
operation.
*
*/
@Generated("software.amazon.awssdk:codegen")
public final class FileCache implements SdkPojo, Serializable, ToCopyableBuilder {
private static final SdkField OWNER_ID_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("OwnerId").getter(getter(FileCache::ownerId)).setter(setter(Builder::ownerId))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("OwnerId").build()).build();
private static final SdkField CREATION_TIME_FIELD = SdkField. builder(MarshallingType.INSTANT)
.memberName("CreationTime").getter(getter(FileCache::creationTime)).setter(setter(Builder::creationTime))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CreationTime").build()).build();
private static final SdkField FILE_CACHE_ID_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("FileCacheId").getter(getter(FileCache::fileCacheId)).setter(setter(Builder::fileCacheId))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("FileCacheId").build()).build();
private static final SdkField FILE_CACHE_TYPE_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("FileCacheType").getter(getter(FileCache::fileCacheTypeAsString)).setter(setter(Builder::fileCacheType))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("FileCacheType").build()).build();
private static final SdkField FILE_CACHE_TYPE_VERSION_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("FileCacheTypeVersion").getter(getter(FileCache::fileCacheTypeVersion))
.setter(setter(Builder::fileCacheTypeVersion))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("FileCacheTypeVersion").build())
.build();
private static final SdkField LIFECYCLE_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("Lifecycle").getter(getter(FileCache::lifecycleAsString)).setter(setter(Builder::lifecycle))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Lifecycle").build()).build();
private static final SdkField FAILURE_DETAILS_FIELD = SdkField
. builder(MarshallingType.SDK_POJO).memberName("FailureDetails")
.getter(getter(FileCache::failureDetails)).setter(setter(Builder::failureDetails))
.constructor(FileCacheFailureDetails::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("FailureDetails").build()).build();
private static final SdkField STORAGE_CAPACITY_FIELD = SdkField. builder(MarshallingType.INTEGER)
.memberName("StorageCapacity").getter(getter(FileCache::storageCapacity)).setter(setter(Builder::storageCapacity))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("StorageCapacity").build()).build();
private static final SdkField VPC_ID_FIELD = SdkField. builder(MarshallingType.STRING).memberName("VpcId")
.getter(getter(FileCache::vpcId)).setter(setter(Builder::vpcId))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("VpcId").build()).build();
private static final SdkField> SUBNET_IDS_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("SubnetIds")
.getter(getter(FileCache::subnetIds))
.setter(setter(Builder::subnetIds))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SubnetIds").build(),
ListTrait
.builder()
.memberLocationName(null)
.memberFieldInfo(
SdkField. builder(MarshallingType.STRING)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("member").build()).build()).build()).build();
private static final SdkField> NETWORK_INTERFACE_IDS_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("NetworkInterfaceIds")
.getter(getter(FileCache::networkInterfaceIds))
.setter(setter(Builder::networkInterfaceIds))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("NetworkInterfaceIds").build(),
ListTrait
.builder()
.memberLocationName(null)
.memberFieldInfo(
SdkField. builder(MarshallingType.STRING)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("member").build()).build()).build()).build();
private static final SdkField DNS_NAME_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("DNSName").getter(getter(FileCache::dnsName)).setter(setter(Builder::dnsName))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DNSName").build()).build();
private static final SdkField KMS_KEY_ID_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("KmsKeyId").getter(getter(FileCache::kmsKeyId)).setter(setter(Builder::kmsKeyId))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("KmsKeyId").build()).build();
private static final SdkField RESOURCE_ARN_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("ResourceARN").getter(getter(FileCache::resourceARN)).setter(setter(Builder::resourceARN))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ResourceARN").build()).build();
private static final SdkField LUSTRE_CONFIGURATION_FIELD = SdkField
. builder(MarshallingType.SDK_POJO).memberName("LustreConfiguration")
.getter(getter(FileCache::lustreConfiguration)).setter(setter(Builder::lustreConfiguration))
.constructor(FileCacheLustreConfiguration::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LustreConfiguration").build())
.build();
private static final SdkField> DATA_REPOSITORY_ASSOCIATION_IDS_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("DataRepositoryAssociationIds")
.getter(getter(FileCache::dataRepositoryAssociationIds))
.setter(setter(Builder::dataRepositoryAssociationIds))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DataRepositoryAssociationIds")
.build(),
ListTrait
.builder()
.memberLocationName(null)
.memberFieldInfo(
SdkField. builder(MarshallingType.STRING)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("member").build()).build()).build()).build();
private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(OWNER_ID_FIELD,
CREATION_TIME_FIELD, FILE_CACHE_ID_FIELD, FILE_CACHE_TYPE_FIELD, FILE_CACHE_TYPE_VERSION_FIELD, LIFECYCLE_FIELD,
FAILURE_DETAILS_FIELD, STORAGE_CAPACITY_FIELD, VPC_ID_FIELD, SUBNET_IDS_FIELD, NETWORK_INTERFACE_IDS_FIELD,
DNS_NAME_FIELD, KMS_KEY_ID_FIELD, RESOURCE_ARN_FIELD, LUSTRE_CONFIGURATION_FIELD,
DATA_REPOSITORY_ASSOCIATION_IDS_FIELD));
private static final long serialVersionUID = 1L;
private final String ownerId;
private final Instant creationTime;
private final String fileCacheId;
private final String fileCacheType;
private final String fileCacheTypeVersion;
private final String lifecycle;
private final FileCacheFailureDetails failureDetails;
private final Integer storageCapacity;
private final String vpcId;
private final List subnetIds;
private final List networkInterfaceIds;
private final String dnsName;
private final String kmsKeyId;
private final String resourceARN;
private final FileCacheLustreConfiguration lustreConfiguration;
private final List dataRepositoryAssociationIds;
private FileCache(BuilderImpl builder) {
this.ownerId = builder.ownerId;
this.creationTime = builder.creationTime;
this.fileCacheId = builder.fileCacheId;
this.fileCacheType = builder.fileCacheType;
this.fileCacheTypeVersion = builder.fileCacheTypeVersion;
this.lifecycle = builder.lifecycle;
this.failureDetails = builder.failureDetails;
this.storageCapacity = builder.storageCapacity;
this.vpcId = builder.vpcId;
this.subnetIds = builder.subnetIds;
this.networkInterfaceIds = builder.networkInterfaceIds;
this.dnsName = builder.dnsName;
this.kmsKeyId = builder.kmsKeyId;
this.resourceARN = builder.resourceARN;
this.lustreConfiguration = builder.lustreConfiguration;
this.dataRepositoryAssociationIds = builder.dataRepositoryAssociationIds;
}
/**
* Returns the value of the OwnerId property for this object.
*
* @return The value of the OwnerId property for this object.
*/
public final String ownerId() {
return ownerId;
}
/**
* Returns the value of the CreationTime property for this object.
*
* @return The value of the CreationTime property for this object.
*/
public final Instant creationTime() {
return creationTime;
}
/**
*
* The system-generated, unique ID of the cache.
*
*
* @return The system-generated, unique ID of the cache.
*/
public final String fileCacheId() {
return fileCacheId;
}
/**
*
* The type of cache, which must be LUSTRE
.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #fileCacheType}
* will return {@link FileCacheType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #fileCacheTypeAsString}.
*
*
* @return The type of cache, which must be LUSTRE
.
* @see FileCacheType
*/
public final FileCacheType fileCacheType() {
return FileCacheType.fromValue(fileCacheType);
}
/**
*
* The type of cache, which must be LUSTRE
.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #fileCacheType}
* will return {@link FileCacheType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #fileCacheTypeAsString}.
*
*
* @return The type of cache, which must be LUSTRE
.
* @see FileCacheType
*/
public final String fileCacheTypeAsString() {
return fileCacheType;
}
/**
*
* The Lustre version of the cache, which must be 2.12
.
*
*
* @return The Lustre version of the cache, which must be 2.12
.
*/
public final String fileCacheTypeVersion() {
return fileCacheTypeVersion;
}
/**
*
* The lifecycle status of the cache. The following are the possible values and what they mean:
*
*
* -
*
* AVAILABLE
- The cache is in a healthy state, and is reachable and available for use.
*
*
* -
*
* CREATING
- The new cache is being created.
*
*
* -
*
* DELETING
- An existing cache is being deleted.
*
*
* -
*
* UPDATING
- The cache is undergoing a customer-initiated update.
*
*
* -
*
* FAILED
- An existing cache has experienced an unrecoverable failure. When creating a new cache, the
* cache was unable to be created.
*
*
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #lifecycle} will
* return {@link FileCacheLifecycle#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #lifecycleAsString}.
*
*
* @return The lifecycle status of the cache. The following are the possible values and what they mean:
*
* -
*
* AVAILABLE
- The cache is in a healthy state, and is reachable and available for use.
*
*
* -
*
* CREATING
- The new cache is being created.
*
*
* -
*
* DELETING
- An existing cache is being deleted.
*
*
* -
*
* UPDATING
- The cache is undergoing a customer-initiated update.
*
*
* -
*
* FAILED
- An existing cache has experienced an unrecoverable failure. When creating a new
* cache, the cache was unable to be created.
*
*
* @see FileCacheLifecycle
*/
public final FileCacheLifecycle lifecycle() {
return FileCacheLifecycle.fromValue(lifecycle);
}
/**
*
* The lifecycle status of the cache. The following are the possible values and what they mean:
*
*
* -
*
* AVAILABLE
- The cache is in a healthy state, and is reachable and available for use.
*
*
* -
*
* CREATING
- The new cache is being created.
*
*
* -
*
* DELETING
- An existing cache is being deleted.
*
*
* -
*
* UPDATING
- The cache is undergoing a customer-initiated update.
*
*
* -
*
* FAILED
- An existing cache has experienced an unrecoverable failure. When creating a new cache, the
* cache was unable to be created.
*
*
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #lifecycle} will
* return {@link FileCacheLifecycle#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #lifecycleAsString}.
*
*
* @return The lifecycle status of the cache. The following are the possible values and what they mean:
*
* -
*
* AVAILABLE
- The cache is in a healthy state, and is reachable and available for use.
*
*
* -
*
* CREATING
- The new cache is being created.
*
*
* -
*
* DELETING
- An existing cache is being deleted.
*
*
* -
*
* UPDATING
- The cache is undergoing a customer-initiated update.
*
*
* -
*
* FAILED
- An existing cache has experienced an unrecoverable failure. When creating a new
* cache, the cache was unable to be created.
*
*
* @see FileCacheLifecycle
*/
public final String lifecycleAsString() {
return lifecycle;
}
/**
*
* A structure providing details of any failures that occurred.
*
*
* @return A structure providing details of any failures that occurred.
*/
public final FileCacheFailureDetails failureDetails() {
return failureDetails;
}
/**
*
* The storage capacity of the cache in gibibytes (GiB).
*
*
* @return The storage capacity of the cache in gibibytes (GiB).
*/
public final Integer storageCapacity() {
return storageCapacity;
}
/**
* Returns the value of the VpcId property for this object.
*
* @return The value of the VpcId property for this object.
*/
public final String vpcId() {
return vpcId;
}
/**
* For responses, this returns true if the service returned a value for the SubnetIds property. This DOES NOT check
* that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is
* useful because the SDK will never return a null collection or map, but you may need to differentiate between the
* service returning nothing (or null) and the service returning an empty collection or map. For requests, this
* returns true if a value for the property was specified in the request builder, and false if a value was not
* specified.
*/
public final boolean hasSubnetIds() {
return subnetIds != null && !(subnetIds instanceof SdkAutoConstructList);
}
/**
* Returns the value of the SubnetIds property for this object.
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasSubnetIds} method.
*
*
* @return The value of the SubnetIds property for this object.
*/
public final List subnetIds() {
return subnetIds;
}
/**
* For responses, this returns true if the service returned a value for the NetworkInterfaceIds property. This DOES
* NOT check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
* This is useful because the SDK will never return a null collection or map, but you may need to differentiate
* between the service returning nothing (or null) and the service returning an empty collection or map. For
* requests, this returns true if a value for the property was specified in the request builder, and false if a
* value was not specified.
*/
public final boolean hasNetworkInterfaceIds() {
return networkInterfaceIds != null && !(networkInterfaceIds instanceof SdkAutoConstructList);
}
/**
* Returns the value of the NetworkInterfaceIds property for this object.
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasNetworkInterfaceIds} method.
*
*
* @return The value of the NetworkInterfaceIds property for this object.
*/
public final List networkInterfaceIds() {
return networkInterfaceIds;
}
/**
*
* The Domain Name System (DNS) name for the cache.
*
*
* @return The Domain Name System (DNS) name for the cache.
*/
public final String dnsName() {
return dnsName;
}
/**
*
* Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on an Amazon File Cache. If a
* KmsKeyId
isn't specified, the Amazon FSx-managed KMS key for your account is used. For more
* information, see Encrypt in
* the Key Management Service API Reference.
*
*
* @return Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on an Amazon File
* Cache. If a KmsKeyId
isn't specified, the Amazon FSx-managed KMS key for your account is
* used. For more information, see Encrypt in the Key
* Management Service API Reference.
*/
public final String kmsKeyId() {
return kmsKeyId;
}
/**
* Returns the value of the ResourceARN property for this object.
*
* @return The value of the ResourceARN property for this object.
*/
public final String resourceARN() {
return resourceARN;
}
/**
*
* The configuration for the Amazon File Cache resource.
*
*
* @return The configuration for the Amazon File Cache resource.
*/
public final FileCacheLustreConfiguration lustreConfiguration() {
return lustreConfiguration;
}
/**
* For responses, this returns true if the service returned a value for the DataRepositoryAssociationIds property.
* This DOES NOT check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the
* property). This is useful because the SDK will never return a null collection or map, but you may need to
* differentiate between the service returning nothing (or null) and the service returning an empty collection or
* map. For requests, this returns true if a value for the property was specified in the request builder, and false
* if a value was not specified.
*/
public final boolean hasDataRepositoryAssociationIds() {
return dataRepositoryAssociationIds != null && !(dataRepositoryAssociationIds instanceof SdkAutoConstructList);
}
/**
*
* A list of IDs of data repository associations that are associated with this cache.
*
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasDataRepositoryAssociationIds} method.
*
*
* @return A list of IDs of data repository associations that are associated with this cache.
*/
public final List dataRepositoryAssociationIds() {
return dataRepositoryAssociationIds;
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
public static Builder builder() {
return new BuilderImpl();
}
public static Class extends Builder> serializableBuilderClass() {
return BuilderImpl.class;
}
@Override
public final int hashCode() {
int hashCode = 1;
hashCode = 31 * hashCode + Objects.hashCode(ownerId());
hashCode = 31 * hashCode + Objects.hashCode(creationTime());
hashCode = 31 * hashCode + Objects.hashCode(fileCacheId());
hashCode = 31 * hashCode + Objects.hashCode(fileCacheTypeAsString());
hashCode = 31 * hashCode + Objects.hashCode(fileCacheTypeVersion());
hashCode = 31 * hashCode + Objects.hashCode(lifecycleAsString());
hashCode = 31 * hashCode + Objects.hashCode(failureDetails());
hashCode = 31 * hashCode + Objects.hashCode(storageCapacity());
hashCode = 31 * hashCode + Objects.hashCode(vpcId());
hashCode = 31 * hashCode + Objects.hashCode(hasSubnetIds() ? subnetIds() : null);
hashCode = 31 * hashCode + Objects.hashCode(hasNetworkInterfaceIds() ? networkInterfaceIds() : null);
hashCode = 31 * hashCode + Objects.hashCode(dnsName());
hashCode = 31 * hashCode + Objects.hashCode(kmsKeyId());
hashCode = 31 * hashCode + Objects.hashCode(resourceARN());
hashCode = 31 * hashCode + Objects.hashCode(lustreConfiguration());
hashCode = 31 * hashCode + Objects.hashCode(hasDataRepositoryAssociationIds() ? dataRepositoryAssociationIds() : null);
return hashCode;
}
@Override
public final boolean equals(Object obj) {
return equalsBySdkFields(obj);
}
@Override
public final boolean equalsBySdkFields(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof FileCache)) {
return false;
}
FileCache other = (FileCache) obj;
return Objects.equals(ownerId(), other.ownerId()) && Objects.equals(creationTime(), other.creationTime())
&& Objects.equals(fileCacheId(), other.fileCacheId())
&& Objects.equals(fileCacheTypeAsString(), other.fileCacheTypeAsString())
&& Objects.equals(fileCacheTypeVersion(), other.fileCacheTypeVersion())
&& Objects.equals(lifecycleAsString(), other.lifecycleAsString())
&& Objects.equals(failureDetails(), other.failureDetails())
&& Objects.equals(storageCapacity(), other.storageCapacity()) && Objects.equals(vpcId(), other.vpcId())
&& hasSubnetIds() == other.hasSubnetIds() && Objects.equals(subnetIds(), other.subnetIds())
&& hasNetworkInterfaceIds() == other.hasNetworkInterfaceIds()
&& Objects.equals(networkInterfaceIds(), other.networkInterfaceIds())
&& Objects.equals(dnsName(), other.dnsName()) && Objects.equals(kmsKeyId(), other.kmsKeyId())
&& Objects.equals(resourceARN(), other.resourceARN())
&& Objects.equals(lustreConfiguration(), other.lustreConfiguration())
&& hasDataRepositoryAssociationIds() == other.hasDataRepositoryAssociationIds()
&& Objects.equals(dataRepositoryAssociationIds(), other.dataRepositoryAssociationIds());
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*/
@Override
public final String toString() {
return ToString.builder("FileCache").add("OwnerId", ownerId()).add("CreationTime", creationTime())
.add("FileCacheId", fileCacheId()).add("FileCacheType", fileCacheTypeAsString())
.add("FileCacheTypeVersion", fileCacheTypeVersion()).add("Lifecycle", lifecycleAsString())
.add("FailureDetails", failureDetails()).add("StorageCapacity", storageCapacity()).add("VpcId", vpcId())
.add("SubnetIds", hasSubnetIds() ? subnetIds() : null)
.add("NetworkInterfaceIds", hasNetworkInterfaceIds() ? networkInterfaceIds() : null).add("DNSName", dnsName())
.add("KmsKeyId", kmsKeyId()).add("ResourceARN", resourceARN()).add("LustreConfiguration", lustreConfiguration())
.add("DataRepositoryAssociationIds", hasDataRepositoryAssociationIds() ? dataRepositoryAssociationIds() : null)
.build();
}
public final Optional getValueForField(String fieldName, Class clazz) {
switch (fieldName) {
case "OwnerId":
return Optional.ofNullable(clazz.cast(ownerId()));
case "CreationTime":
return Optional.ofNullable(clazz.cast(creationTime()));
case "FileCacheId":
return Optional.ofNullable(clazz.cast(fileCacheId()));
case "FileCacheType":
return Optional.ofNullable(clazz.cast(fileCacheTypeAsString()));
case "FileCacheTypeVersion":
return Optional.ofNullable(clazz.cast(fileCacheTypeVersion()));
case "Lifecycle":
return Optional.ofNullable(clazz.cast(lifecycleAsString()));
case "FailureDetails":
return Optional.ofNullable(clazz.cast(failureDetails()));
case "StorageCapacity":
return Optional.ofNullable(clazz.cast(storageCapacity()));
case "VpcId":
return Optional.ofNullable(clazz.cast(vpcId()));
case "SubnetIds":
return Optional.ofNullable(clazz.cast(subnetIds()));
case "NetworkInterfaceIds":
return Optional.ofNullable(clazz.cast(networkInterfaceIds()));
case "DNSName":
return Optional.ofNullable(clazz.cast(dnsName()));
case "KmsKeyId":
return Optional.ofNullable(clazz.cast(kmsKeyId()));
case "ResourceARN":
return Optional.ofNullable(clazz.cast(resourceARN()));
case "LustreConfiguration":
return Optional.ofNullable(clazz.cast(lustreConfiguration()));
case "DataRepositoryAssociationIds":
return Optional.ofNullable(clazz.cast(dataRepositoryAssociationIds()));
default:
return Optional.empty();
}
}
@Override
public final List> sdkFields() {
return SDK_FIELDS;
}
private static Function