Struct aws_sdk_fsx::types::builders::FileCacheBuilder
source · #[non_exhaustive]pub struct FileCacheBuilder { /* private fields */ }Expand description
A builder for FileCache.
Implementations§
source§impl FileCacheBuilder
impl FileCacheBuilder
sourcepub fn owner_id(self, input: impl Into<String>) -> Self
pub fn owner_id(self, input: impl Into<String>) -> Self
An Amazon Web Services account ID. This ID is a 12-digit number that you use to construct Amazon Resource Names (ARNs) for resources.
sourcepub fn set_owner_id(self, input: Option<String>) -> Self
pub fn set_owner_id(self, input: Option<String>) -> Self
An Amazon Web Services account ID. This ID is a 12-digit number that you use to construct Amazon Resource Names (ARNs) for resources.
sourcepub fn get_owner_id(&self) -> &Option<String>
pub fn get_owner_id(&self) -> &Option<String>
An Amazon Web Services account ID. This ID is a 12-digit number that you use to construct Amazon Resource Names (ARNs) for resources.
sourcepub fn creation_time(self, input: DateTime) -> Self
pub fn creation_time(self, input: DateTime) -> Self
The time that the resource was created, in seconds (since 1970-01-01T00:00:00Z), also known as Unix time.
sourcepub fn set_creation_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_time(self, input: Option<DateTime>) -> Self
The time that the resource was created, in seconds (since 1970-01-01T00:00:00Z), also known as Unix time.
sourcepub fn get_creation_time(&self) -> &Option<DateTime>
pub fn get_creation_time(&self) -> &Option<DateTime>
The time that the resource was created, in seconds (since 1970-01-01T00:00:00Z), also known as Unix time.
sourcepub fn file_cache_id(self, input: impl Into<String>) -> Self
pub fn file_cache_id(self, input: impl Into<String>) -> Self
The system-generated, unique ID of the cache.
sourcepub fn set_file_cache_id(self, input: Option<String>) -> Self
pub fn set_file_cache_id(self, input: Option<String>) -> Self
The system-generated, unique ID of the cache.
sourcepub fn get_file_cache_id(&self) -> &Option<String>
pub fn get_file_cache_id(&self) -> &Option<String>
The system-generated, unique ID of the cache.
sourcepub fn file_cache_type(self, input: FileCacheType) -> Self
pub fn file_cache_type(self, input: FileCacheType) -> Self
The type of cache, which must be LUSTRE.
sourcepub fn set_file_cache_type(self, input: Option<FileCacheType>) -> Self
pub fn set_file_cache_type(self, input: Option<FileCacheType>) -> Self
The type of cache, which must be LUSTRE.
sourcepub fn get_file_cache_type(&self) -> &Option<FileCacheType>
pub fn get_file_cache_type(&self) -> &Option<FileCacheType>
The type of cache, which must be LUSTRE.
sourcepub fn file_cache_type_version(self, input: impl Into<String>) -> Self
pub fn file_cache_type_version(self, input: impl Into<String>) -> Self
The Lustre version of the cache, which must be 2.12.
sourcepub fn set_file_cache_type_version(self, input: Option<String>) -> Self
pub fn set_file_cache_type_version(self, input: Option<String>) -> Self
The Lustre version of the cache, which must be 2.12.
sourcepub fn get_file_cache_type_version(&self) -> &Option<String>
pub fn get_file_cache_type_version(&self) -> &Option<String>
The Lustre version of the cache, which must be 2.12.
sourcepub fn lifecycle(self, input: FileCacheLifecycle) -> Self
pub fn lifecycle(self, input: FileCacheLifecycle) -> Self
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.
sourcepub fn set_lifecycle(self, input: Option<FileCacheLifecycle>) -> Self
pub fn set_lifecycle(self, input: Option<FileCacheLifecycle>) -> Self
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.
sourcepub fn get_lifecycle(&self) -> &Option<FileCacheLifecycle>
pub fn get_lifecycle(&self) -> &Option<FileCacheLifecycle>
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.
sourcepub fn failure_details(self, input: FileCacheFailureDetails) -> Self
pub fn failure_details(self, input: FileCacheFailureDetails) -> Self
A structure providing details of any failures that occurred.
sourcepub fn set_failure_details(self, input: Option<FileCacheFailureDetails>) -> Self
pub fn set_failure_details(self, input: Option<FileCacheFailureDetails>) -> Self
A structure providing details of any failures that occurred.
sourcepub fn get_failure_details(&self) -> &Option<FileCacheFailureDetails>
pub fn get_failure_details(&self) -> &Option<FileCacheFailureDetails>
A structure providing details of any failures that occurred.
sourcepub fn storage_capacity(self, input: i32) -> Self
pub fn storage_capacity(self, input: i32) -> Self
The storage capacity of the cache in gibibytes (GiB).
sourcepub fn set_storage_capacity(self, input: Option<i32>) -> Self
pub fn set_storage_capacity(self, input: Option<i32>) -> Self
The storage capacity of the cache in gibibytes (GiB).
sourcepub fn get_storage_capacity(&self) -> &Option<i32>
pub fn get_storage_capacity(&self) -> &Option<i32>
The storage capacity of the cache in gibibytes (GiB).
sourcepub fn vpc_id(self, input: impl Into<String>) -> Self
pub fn vpc_id(self, input: impl Into<String>) -> Self
The ID of your virtual private cloud (VPC). For more information, see VPC and subnets in the Amazon VPC User Guide.
sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
The ID of your virtual private cloud (VPC). For more information, see VPC and subnets in the Amazon VPC User Guide.
sourcepub fn get_vpc_id(&self) -> &Option<String>
pub fn get_vpc_id(&self) -> &Option<String>
The ID of your virtual private cloud (VPC). For more information, see VPC and subnets in the Amazon VPC User Guide.
sourcepub fn subnet_ids(self, input: impl Into<String>) -> Self
pub fn subnet_ids(self, input: impl Into<String>) -> Self
Appends an item to subnet_ids.
To override the contents of this collection use set_subnet_ids.
A list of subnet IDs that the cache will be accessible from. You can specify only one subnet ID in a call to the CreateFileCache operation.
sourcepub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
A list of subnet IDs that the cache will be accessible from. You can specify only one subnet ID in a call to the CreateFileCache operation.
sourcepub fn get_subnet_ids(&self) -> &Option<Vec<String>>
pub fn get_subnet_ids(&self) -> &Option<Vec<String>>
A list of subnet IDs that the cache will be accessible from. You can specify only one subnet ID in a call to the CreateFileCache operation.
sourcepub fn network_interface_ids(self, input: impl Into<String>) -> Self
pub fn network_interface_ids(self, input: impl Into<String>) -> Self
Appends an item to network_interface_ids.
To override the contents of this collection use set_network_interface_ids.
A list of network interface IDs.
sourcepub fn set_network_interface_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_network_interface_ids(self, input: Option<Vec<String>>) -> Self
A list of network interface IDs.
sourcepub fn get_network_interface_ids(&self) -> &Option<Vec<String>>
pub fn get_network_interface_ids(&self) -> &Option<Vec<String>>
A list of network interface IDs.
sourcepub fn dns_name(self, input: impl Into<String>) -> Self
pub fn dns_name(self, input: impl Into<String>) -> Self
The Domain Name System (DNS) name for the cache.
sourcepub fn set_dns_name(self, input: Option<String>) -> Self
pub fn set_dns_name(self, input: Option<String>) -> Self
The Domain Name System (DNS) name for the cache.
sourcepub fn get_dns_name(&self) -> &Option<String>
pub fn get_dns_name(&self) -> &Option<String>
The Domain Name System (DNS) name for the cache.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
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.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
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.
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for a given resource. ARNs uniquely identify Amazon Web Services resources. We require an ARN when you need to specify a resource unambiguously across all of Amazon Web Services. For more information, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
sourcepub fn set_resource_arn(self, input: Option<String>) -> Self
pub fn set_resource_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for a given resource. ARNs uniquely identify Amazon Web Services resources. We require an ARN when you need to specify a resource unambiguously across all of Amazon Web Services. For more information, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
sourcepub fn get_resource_arn(&self) -> &Option<String>
pub fn get_resource_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) for a given resource. ARNs uniquely identify Amazon Web Services resources. We require an ARN when you need to specify a resource unambiguously across all of Amazon Web Services. For more information, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
sourcepub fn lustre_configuration(self, input: FileCacheLustreConfiguration) -> Self
pub fn lustre_configuration(self, input: FileCacheLustreConfiguration) -> Self
The configuration for the Amazon File Cache resource.
sourcepub fn set_lustre_configuration(
self,
input: Option<FileCacheLustreConfiguration>
) -> Self
pub fn set_lustre_configuration( self, input: Option<FileCacheLustreConfiguration> ) -> Self
The configuration for the Amazon File Cache resource.
sourcepub fn get_lustre_configuration(&self) -> &Option<FileCacheLustreConfiguration>
pub fn get_lustre_configuration(&self) -> &Option<FileCacheLustreConfiguration>
The configuration for the Amazon File Cache resource.
sourcepub fn data_repository_association_ids(self, input: impl Into<String>) -> Self
pub fn data_repository_association_ids(self, input: impl Into<String>) -> Self
Appends an item to data_repository_association_ids.
To override the contents of this collection use set_data_repository_association_ids.
A list of IDs of data repository associations that are associated with this cache.
sourcepub fn set_data_repository_association_ids(
self,
input: Option<Vec<String>>
) -> Self
pub fn set_data_repository_association_ids( self, input: Option<Vec<String>> ) -> Self
A list of IDs of data repository associations that are associated with this cache.
sourcepub fn get_data_repository_association_ids(&self) -> &Option<Vec<String>>
pub fn get_data_repository_association_ids(&self) -> &Option<Vec<String>>
A list of IDs of data repository associations that are associated with this cache.
Trait Implementations§
source§impl Clone for FileCacheBuilder
impl Clone for FileCacheBuilder
source§fn clone(&self) -> FileCacheBuilder
fn clone(&self) -> FileCacheBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for FileCacheBuilder
impl Debug for FileCacheBuilder
source§impl Default for FileCacheBuilder
impl Default for FileCacheBuilder
source§fn default() -> FileCacheBuilder
fn default() -> FileCacheBuilder
source§impl PartialEq<FileCacheBuilder> for FileCacheBuilder
impl PartialEq<FileCacheBuilder> for FileCacheBuilder
source§fn eq(&self, other: &FileCacheBuilder) -> bool
fn eq(&self, other: &FileCacheBuilder) -> bool
self and other values to be equal, and is used
by ==.