#[non_exhaustive]pub struct FileCacheCreatingBuilder { /* private fields */ }
Expand description
A builder for FileCacheCreating
.
Implementations§
Source§impl FileCacheCreatingBuilder
impl FileCacheCreatingBuilder
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 in creating a cache.
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 in creating a cache.
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 in creating a cache.
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.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
A list of Tag
values, with a maximum of 50 elements.
A list of Tag
values, with a maximum of 50 elements.
A list of Tag
values, with a maximum of 50 elements.
A boolean flag indicating whether tags for the cache should be copied to data repository associations.
A boolean flag indicating whether tags for the cache should be copied to data repository associations.
A boolean flag indicating whether tags for the cache should be copied to data repository associations.
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.
Sourcepub fn build(self) -> FileCacheCreating
pub fn build(self) -> FileCacheCreating
Consumes the builder and constructs a FileCacheCreating
.
Trait Implementations§
Source§impl Clone for FileCacheCreatingBuilder
impl Clone for FileCacheCreatingBuilder
Source§fn clone(&self) -> FileCacheCreatingBuilder
fn clone(&self) -> FileCacheCreatingBuilder
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FileCacheCreatingBuilder
impl Debug for FileCacheCreatingBuilder
Source§impl Default for FileCacheCreatingBuilder
impl Default for FileCacheCreatingBuilder
Source§fn default() -> FileCacheCreatingBuilder
fn default() -> FileCacheCreatingBuilder
Source§impl PartialEq for FileCacheCreatingBuilder
impl PartialEq for FileCacheCreatingBuilder
Source§fn eq(&self, other: &FileCacheCreatingBuilder) -> bool
fn eq(&self, other: &FileCacheCreatingBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for FileCacheCreatingBuilder
Auto Trait Implementations§
impl Freeze for FileCacheCreatingBuilder
impl RefUnwindSafe for FileCacheCreatingBuilder
impl Send for FileCacheCreatingBuilder
impl Sync for FileCacheCreatingBuilder
impl Unpin for FileCacheCreatingBuilder
impl UnwindSafe for FileCacheCreatingBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);