#[non_exhaustive]pub struct FileSystemDescriptionBuilder { /* private fields */ }
Expand description
A builder for FileSystemDescription
.
Implementations§
Source§impl FileSystemDescriptionBuilder
impl FileSystemDescriptionBuilder
Sourcepub fn owner_id(self, input: impl Into<String>) -> Self
pub fn owner_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account that created the file system.
This field is required.Sourcepub fn set_owner_id(self, input: Option<String>) -> Self
pub fn set_owner_id(self, input: Option<String>) -> Self
The Amazon Web Services account that created the file system.
Sourcepub fn get_owner_id(&self) -> &Option<String>
pub fn get_owner_id(&self) -> &Option<String>
The Amazon Web Services account that created the file system.
Sourcepub fn creation_token(self, input: impl Into<String>) -> Self
pub fn creation_token(self, input: impl Into<String>) -> Self
The opaque string specified in the request.
This field is required.Sourcepub fn set_creation_token(self, input: Option<String>) -> Self
pub fn set_creation_token(self, input: Option<String>) -> Self
The opaque string specified in the request.
Sourcepub fn get_creation_token(&self) -> &Option<String>
pub fn get_creation_token(&self) -> &Option<String>
The opaque string specified in the request.
Sourcepub fn file_system_id(self, input: impl Into<String>) -> Self
pub fn file_system_id(self, input: impl Into<String>) -> Self
The ID of the file system, assigned by Amazon EFS.
This field is required.Sourcepub fn set_file_system_id(self, input: Option<String>) -> Self
pub fn set_file_system_id(self, input: Option<String>) -> Self
The ID of the file system, assigned by Amazon EFS.
Sourcepub fn get_file_system_id(&self) -> &Option<String>
pub fn get_file_system_id(&self) -> &Option<String>
The ID of the file system, assigned by Amazon EFS.
Sourcepub fn file_system_arn(self, input: impl Into<String>) -> Self
pub fn file_system_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for the EFS file system, in the format arn:aws:elasticfilesystem:region:account-id:file-system/file-system-id
. Example with sample data: arn:aws:elasticfilesystem:us-west-2:1111333322228888:file-system/fs-01234567
Sourcepub fn set_file_system_arn(self, input: Option<String>) -> Self
pub fn set_file_system_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for the EFS file system, in the format arn:aws:elasticfilesystem:region:account-id:file-system/file-system-id
. Example with sample data: arn:aws:elasticfilesystem:us-west-2:1111333322228888:file-system/fs-01234567
Sourcepub fn get_file_system_arn(&self) -> &Option<String>
pub fn get_file_system_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) for the EFS file system, in the format arn:aws:elasticfilesystem:region:account-id:file-system/file-system-id
. Example with sample data: arn:aws:elasticfilesystem:us-west-2:1111333322228888:file-system/fs-01234567
Sourcepub fn creation_time(self, input: DateTime) -> Self
pub fn creation_time(self, input: DateTime) -> Self
The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z).
This field is required.Sourcepub fn set_creation_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_time(self, input: Option<DateTime>) -> Self
The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z).
Sourcepub fn get_creation_time(&self) -> &Option<DateTime>
pub fn get_creation_time(&self) -> &Option<DateTime>
The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z).
Sourcepub fn life_cycle_state(self, input: LifeCycleState) -> Self
pub fn life_cycle_state(self, input: LifeCycleState) -> Self
The lifecycle phase of the file system.
This field is required.Sourcepub fn set_life_cycle_state(self, input: Option<LifeCycleState>) -> Self
pub fn set_life_cycle_state(self, input: Option<LifeCycleState>) -> Self
The lifecycle phase of the file system.
Sourcepub fn get_life_cycle_state(&self) -> &Option<LifeCycleState>
pub fn get_life_cycle_state(&self) -> &Option<LifeCycleState>
The lifecycle phase of the file system.
Sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
You can add tags to a file system, including a Name
tag. For more information, see CreateFileSystem
. If the file system has a Name
tag, Amazon EFS returns the value in this field.
Sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
You can add tags to a file system, including a Name
tag. For more information, see CreateFileSystem
. If the file system has a Name
tag, Amazon EFS returns the value in this field.
Sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
You can add tags to a file system, including a Name
tag. For more information, see CreateFileSystem
. If the file system has a Name
tag, Amazon EFS returns the value in this field.
Sourcepub fn number_of_mount_targets(self, input: i32) -> Self
pub fn number_of_mount_targets(self, input: i32) -> Self
The current number of mount targets that the file system has. For more information, see CreateMountTarget
.
Sourcepub fn set_number_of_mount_targets(self, input: Option<i32>) -> Self
pub fn set_number_of_mount_targets(self, input: Option<i32>) -> Self
The current number of mount targets that the file system has. For more information, see CreateMountTarget
.
Sourcepub fn get_number_of_mount_targets(&self) -> &Option<i32>
pub fn get_number_of_mount_targets(&self) -> &Option<i32>
The current number of mount targets that the file system has. For more information, see CreateMountTarget
.
Sourcepub fn size_in_bytes(self, input: FileSystemSize) -> Self
pub fn size_in_bytes(self, input: FileSystemSize) -> Self
The latest known metered size (in bytes) of data stored in the file system, in its Value
field, and the time at which that size was determined in its Timestamp
field. The Timestamp
value is the integer number of seconds since 1970-01-01T00:00:00Z. The SizeInBytes
value doesn't represent the size of a consistent snapshot of the file system, but it is eventually consistent when there are no writes to the file system. That is, SizeInBytes
represents actual size only if the file system is not modified for a period longer than a couple of hours. Otherwise, the value is not the exact size that the file system was at any point in time.
Sourcepub fn set_size_in_bytes(self, input: Option<FileSystemSize>) -> Self
pub fn set_size_in_bytes(self, input: Option<FileSystemSize>) -> Self
The latest known metered size (in bytes) of data stored in the file system, in its Value
field, and the time at which that size was determined in its Timestamp
field. The Timestamp
value is the integer number of seconds since 1970-01-01T00:00:00Z. The SizeInBytes
value doesn't represent the size of a consistent snapshot of the file system, but it is eventually consistent when there are no writes to the file system. That is, SizeInBytes
represents actual size only if the file system is not modified for a period longer than a couple of hours. Otherwise, the value is not the exact size that the file system was at any point in time.
Sourcepub fn get_size_in_bytes(&self) -> &Option<FileSystemSize>
pub fn get_size_in_bytes(&self) -> &Option<FileSystemSize>
The latest known metered size (in bytes) of data stored in the file system, in its Value
field, and the time at which that size was determined in its Timestamp
field. The Timestamp
value is the integer number of seconds since 1970-01-01T00:00:00Z. The SizeInBytes
value doesn't represent the size of a consistent snapshot of the file system, but it is eventually consistent when there are no writes to the file system. That is, SizeInBytes
represents actual size only if the file system is not modified for a period longer than a couple of hours. Otherwise, the value is not the exact size that the file system was at any point in time.
Sourcepub fn performance_mode(self, input: PerformanceMode) -> Self
pub fn performance_mode(self, input: PerformanceMode) -> Self
The performance mode of the file system.
This field is required.Sourcepub fn set_performance_mode(self, input: Option<PerformanceMode>) -> Self
pub fn set_performance_mode(self, input: Option<PerformanceMode>) -> Self
The performance mode of the file system.
Sourcepub fn get_performance_mode(&self) -> &Option<PerformanceMode>
pub fn get_performance_mode(&self) -> &Option<PerformanceMode>
The performance mode of the file system.
Sourcepub fn encrypted(self, input: bool) -> Self
pub fn encrypted(self, input: bool) -> Self
A Boolean value that, if true, indicates that the file system is encrypted.
Sourcepub fn set_encrypted(self, input: Option<bool>) -> Self
pub fn set_encrypted(self, input: Option<bool>) -> Self
A Boolean value that, if true, indicates that the file system is encrypted.
Sourcepub fn get_encrypted(&self) -> &Option<bool>
pub fn get_encrypted(&self) -> &Option<bool>
A Boolean value that, if true, indicates that the file system is encrypted.
Sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The ID of an KMS key used to protect the encrypted file system.
Sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The ID of an KMS key used to protect the encrypted file system.
Sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The ID of an KMS key used to protect the encrypted file system.
Sourcepub fn throughput_mode(self, input: ThroughputMode) -> Self
pub fn throughput_mode(self, input: ThroughputMode) -> Self
Displays the file system's throughput mode. For more information, see Throughput modes in the Amazon EFS User Guide.
Sourcepub fn set_throughput_mode(self, input: Option<ThroughputMode>) -> Self
pub fn set_throughput_mode(self, input: Option<ThroughputMode>) -> Self
Displays the file system's throughput mode. For more information, see Throughput modes in the Amazon EFS User Guide.
Sourcepub fn get_throughput_mode(&self) -> &Option<ThroughputMode>
pub fn get_throughput_mode(&self) -> &Option<ThroughputMode>
Displays the file system's throughput mode. For more information, see Throughput modes in the Amazon EFS User Guide.
Sourcepub fn provisioned_throughput_in_mibps(self, input: f64) -> Self
pub fn provisioned_throughput_in_mibps(self, input: f64) -> Self
The amount of provisioned throughput, measured in MiBps, for the file system. Valid for file systems using ThroughputMode
set to provisioned
.
Sourcepub fn set_provisioned_throughput_in_mibps(self, input: Option<f64>) -> Self
pub fn set_provisioned_throughput_in_mibps(self, input: Option<f64>) -> Self
The amount of provisioned throughput, measured in MiBps, for the file system. Valid for file systems using ThroughputMode
set to provisioned
.
Sourcepub fn get_provisioned_throughput_in_mibps(&self) -> &Option<f64>
pub fn get_provisioned_throughput_in_mibps(&self) -> &Option<f64>
The amount of provisioned throughput, measured in MiBps, for the file system. Valid for file systems using ThroughputMode
set to provisioned
.
Sourcepub fn availability_zone_name(self, input: impl Into<String>) -> Self
pub fn availability_zone_name(self, input: impl Into<String>) -> Self
Describes the Amazon Web Services Availability Zone in which the file system is located, and is valid only for One Zone file systems. For more information, see Using EFS storage classes in the Amazon EFS User Guide.
Sourcepub fn set_availability_zone_name(self, input: Option<String>) -> Self
pub fn set_availability_zone_name(self, input: Option<String>) -> Self
Describes the Amazon Web Services Availability Zone in which the file system is located, and is valid only for One Zone file systems. For more information, see Using EFS storage classes in the Amazon EFS User Guide.
Sourcepub fn get_availability_zone_name(&self) -> &Option<String>
pub fn get_availability_zone_name(&self) -> &Option<String>
Describes the Amazon Web Services Availability Zone in which the file system is located, and is valid only for One Zone file systems. For more information, see Using EFS storage classes in the Amazon EFS User Guide.
Sourcepub fn availability_zone_id(self, input: impl Into<String>) -> Self
pub fn availability_zone_id(self, input: impl Into<String>) -> Self
The unique and consistent identifier of the Availability Zone in which the file system is located, and is valid only for One Zone file systems. For example, use1-az1
is an Availability Zone ID for the us-east-1 Amazon Web Services Region, and it has the same location in every Amazon Web Services account.
Sourcepub fn set_availability_zone_id(self, input: Option<String>) -> Self
pub fn set_availability_zone_id(self, input: Option<String>) -> Self
The unique and consistent identifier of the Availability Zone in which the file system is located, and is valid only for One Zone file systems. For example, use1-az1
is an Availability Zone ID for the us-east-1 Amazon Web Services Region, and it has the same location in every Amazon Web Services account.
Sourcepub fn get_availability_zone_id(&self) -> &Option<String>
pub fn get_availability_zone_id(&self) -> &Option<String>
The unique and consistent identifier of the Availability Zone in which the file system is located, and is valid only for One Zone file systems. For example, use1-az1
is an Availability Zone ID for the us-east-1 Amazon Web Services Region, and it has the same location in every Amazon Web Services account.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tags associated with the file system, presented as an array of Tag
objects.
The tags associated with the file system, presented as an array of Tag
objects.
The tags associated with the file system, presented as an array of Tag
objects.
Sourcepub fn file_system_protection(
self,
input: FileSystemProtectionDescription,
) -> Self
pub fn file_system_protection( self, input: FileSystemProtectionDescription, ) -> Self
Describes the protection on the file system.
Sourcepub fn set_file_system_protection(
self,
input: Option<FileSystemProtectionDescription>,
) -> Self
pub fn set_file_system_protection( self, input: Option<FileSystemProtectionDescription>, ) -> Self
Describes the protection on the file system.
Sourcepub fn get_file_system_protection(
&self,
) -> &Option<FileSystemProtectionDescription>
pub fn get_file_system_protection( &self, ) -> &Option<FileSystemProtectionDescription>
Describes the protection on the file system.
Sourcepub fn build(self) -> Result<FileSystemDescription, BuildError>
pub fn build(self) -> Result<FileSystemDescription, BuildError>
Consumes the builder and constructs a FileSystemDescription
.
This method will fail if any of the following fields are not set:
Trait Implementations§
Source§impl Clone for FileSystemDescriptionBuilder
impl Clone for FileSystemDescriptionBuilder
Source§fn clone(&self) -> FileSystemDescriptionBuilder
fn clone(&self) -> FileSystemDescriptionBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FileSystemDescriptionBuilder
impl Debug for FileSystemDescriptionBuilder
Source§impl Default for FileSystemDescriptionBuilder
impl Default for FileSystemDescriptionBuilder
Source§fn default() -> FileSystemDescriptionBuilder
fn default() -> FileSystemDescriptionBuilder
Source§impl PartialEq for FileSystemDescriptionBuilder
impl PartialEq for FileSystemDescriptionBuilder
Source§fn eq(&self, other: &FileSystemDescriptionBuilder) -> bool
fn eq(&self, other: &FileSystemDescriptionBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for FileSystemDescriptionBuilder
Auto Trait Implementations§
impl Freeze for FileSystemDescriptionBuilder
impl RefUnwindSafe for FileSystemDescriptionBuilder
impl Send for FileSystemDescriptionBuilder
impl Sync for FileSystemDescriptionBuilder
impl Unpin for FileSystemDescriptionBuilder
impl UnwindSafe for FileSystemDescriptionBuilder
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);