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

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

pub fn file_cache_id(self, input: impl Into<String>) -> Self

The system-generated, unique ID of the cache.

source

pub fn set_file_cache_id(self, input: Option<String>) -> Self

The system-generated, unique ID of the cache.

source

pub fn get_file_cache_id(&self) -> &Option<String>

The system-generated, unique ID of the cache.

source

pub fn file_cache_type(self, input: FileCacheType) -> Self

The type of cache, which must be LUSTRE.

source

pub fn set_file_cache_type(self, input: Option<FileCacheType>) -> Self

The type of cache, which must be LUSTRE.

source

pub fn get_file_cache_type(&self) -> &Option<FileCacheType>

The type of cache, which must be LUSTRE.

source

pub fn file_cache_type_version(self, input: impl Into<String>) -> Self

The Lustre version of the cache, which must be 2.12.

source

pub fn set_file_cache_type_version(self, input: Option<String>) -> Self

The Lustre version of the cache, which must be 2.12.

source

pub fn get_file_cache_type_version(&self) -> &Option<String>

The Lustre version of the cache, which must be 2.12.

source

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.

source

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.

source

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.

source

pub fn failure_details(self, input: FileCacheFailureDetails) -> Self

A structure providing details of any failures that occurred.

source

pub fn set_failure_details(self, input: Option<FileCacheFailureDetails>) -> Self

A structure providing details of any failures that occurred.

source

pub fn get_failure_details(&self) -> &Option<FileCacheFailureDetails>

A structure providing details of any failures that occurred.

source

pub fn storage_capacity(self, input: i32) -> Self

The storage capacity of the cache in gibibytes (GiB).

source

pub fn set_storage_capacity(self, input: Option<i32>) -> Self

The storage capacity of the cache in gibibytes (GiB).

source

pub fn get_storage_capacity(&self) -> &Option<i32>

The storage capacity of the cache in gibibytes (GiB).

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

pub fn set_network_interface_ids(self, input: Option<Vec<String>>) -> Self

A list of network interface IDs.

source

pub fn get_network_interface_ids(&self) -> &Option<Vec<String>>

A list of network interface IDs.

source

pub fn dns_name(self, input: impl Into<String>) -> Self

The Domain Name System (DNS) name for the cache.

source

pub fn set_dns_name(self, input: Option<String>) -> Self

The Domain Name System (DNS) name for the cache.

source

pub fn get_dns_name(&self) -> &Option<String>

The Domain Name System (DNS) name for the cache.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

pub fn lustre_configuration(self, input: FileCacheLustreConfiguration) -> Self

The configuration for the Amazon File Cache resource.

source

pub fn set_lustre_configuration( self, input: Option<FileCacheLustreConfiguration> ) -> Self

The configuration for the Amazon File Cache resource.

source

pub fn get_lustre_configuration(&self) -> &Option<FileCacheLustreConfiguration>

The configuration for the Amazon File Cache resource.

source

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.

source

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.

source

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.

source

pub fn build(self) -> FileCache

Consumes the builder and constructs a FileCache.

Trait Implementations§

source§

impl Clone for FileCacheBuilder

source§

fn clone(&self) -> FileCacheBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for FileCacheBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for FileCacheBuilder

source§

fn default() -> FileCacheBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq for FileCacheBuilder

source§

fn eq(&self, other: &FileCacheBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for FileCacheBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more