#[non_exhaustive]pub struct AwsDynamoDbTableDetailsBuilder { /* private fields */ }
Expand description
A builder for AwsDynamoDbTableDetails
.
Implementations§
Source§impl AwsDynamoDbTableDetailsBuilder
impl AwsDynamoDbTableDetailsBuilder
Sourcepub fn attribute_definitions(
self,
input: AwsDynamoDbTableAttributeDefinition,
) -> Self
pub fn attribute_definitions( self, input: AwsDynamoDbTableAttributeDefinition, ) -> Self
Appends an item to attribute_definitions
.
To override the contents of this collection use set_attribute_definitions
.
A list of attribute definitions for the table.
Sourcepub fn set_attribute_definitions(
self,
input: Option<Vec<AwsDynamoDbTableAttributeDefinition>>,
) -> Self
pub fn set_attribute_definitions( self, input: Option<Vec<AwsDynamoDbTableAttributeDefinition>>, ) -> Self
A list of attribute definitions for the table.
Sourcepub fn get_attribute_definitions(
&self,
) -> &Option<Vec<AwsDynamoDbTableAttributeDefinition>>
pub fn get_attribute_definitions( &self, ) -> &Option<Vec<AwsDynamoDbTableAttributeDefinition>>
A list of attribute definitions for the table.
Sourcepub fn billing_mode_summary(
self,
input: AwsDynamoDbTableBillingModeSummary,
) -> Self
pub fn billing_mode_summary( self, input: AwsDynamoDbTableBillingModeSummary, ) -> Self
Information about the billing for read/write capacity on the table.
Sourcepub fn set_billing_mode_summary(
self,
input: Option<AwsDynamoDbTableBillingModeSummary>,
) -> Self
pub fn set_billing_mode_summary( self, input: Option<AwsDynamoDbTableBillingModeSummary>, ) -> Self
Information about the billing for read/write capacity on the table.
Sourcepub fn get_billing_mode_summary(
&self,
) -> &Option<AwsDynamoDbTableBillingModeSummary>
pub fn get_billing_mode_summary( &self, ) -> &Option<AwsDynamoDbTableBillingModeSummary>
Information about the billing for read/write capacity on the table.
Sourcepub fn creation_date_time(self, input: impl Into<String>) -> Self
pub fn creation_date_time(self, input: impl Into<String>) -> Self
Indicates when the table was created.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
Sourcepub fn set_creation_date_time(self, input: Option<String>) -> Self
pub fn set_creation_date_time(self, input: Option<String>) -> Self
Indicates when the table was created.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
Sourcepub fn get_creation_date_time(&self) -> &Option<String>
pub fn get_creation_date_time(&self) -> &Option<String>
Indicates when the table was created.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
Sourcepub fn global_secondary_indexes(
self,
input: AwsDynamoDbTableGlobalSecondaryIndex,
) -> Self
pub fn global_secondary_indexes( self, input: AwsDynamoDbTableGlobalSecondaryIndex, ) -> Self
Appends an item to global_secondary_indexes
.
To override the contents of this collection use set_global_secondary_indexes
.
List of global secondary indexes for the table.
Sourcepub fn set_global_secondary_indexes(
self,
input: Option<Vec<AwsDynamoDbTableGlobalSecondaryIndex>>,
) -> Self
pub fn set_global_secondary_indexes( self, input: Option<Vec<AwsDynamoDbTableGlobalSecondaryIndex>>, ) -> Self
List of global secondary indexes for the table.
Sourcepub fn get_global_secondary_indexes(
&self,
) -> &Option<Vec<AwsDynamoDbTableGlobalSecondaryIndex>>
pub fn get_global_secondary_indexes( &self, ) -> &Option<Vec<AwsDynamoDbTableGlobalSecondaryIndex>>
List of global secondary indexes for the table.
Sourcepub fn global_table_version(self, input: impl Into<String>) -> Self
pub fn global_table_version(self, input: impl Into<String>) -> Self
The version of global tables being used.
Sourcepub fn set_global_table_version(self, input: Option<String>) -> Self
pub fn set_global_table_version(self, input: Option<String>) -> Self
The version of global tables being used.
Sourcepub fn get_global_table_version(&self) -> &Option<String>
pub fn get_global_table_version(&self) -> &Option<String>
The version of global tables being used.
Sourcepub fn item_count(self, input: i32) -> Self
pub fn item_count(self, input: i32) -> Self
The number of items in the table.
Sourcepub fn set_item_count(self, input: Option<i32>) -> Self
pub fn set_item_count(self, input: Option<i32>) -> Self
The number of items in the table.
Sourcepub fn get_item_count(&self) -> &Option<i32>
pub fn get_item_count(&self) -> &Option<i32>
The number of items in the table.
Sourcepub fn key_schema(self, input: AwsDynamoDbTableKeySchema) -> Self
pub fn key_schema(self, input: AwsDynamoDbTableKeySchema) -> Self
Appends an item to key_schema
.
To override the contents of this collection use set_key_schema
.
The primary key structure for the table.
Sourcepub fn set_key_schema(
self,
input: Option<Vec<AwsDynamoDbTableKeySchema>>,
) -> Self
pub fn set_key_schema( self, input: Option<Vec<AwsDynamoDbTableKeySchema>>, ) -> Self
The primary key structure for the table.
Sourcepub fn get_key_schema(&self) -> &Option<Vec<AwsDynamoDbTableKeySchema>>
pub fn get_key_schema(&self) -> &Option<Vec<AwsDynamoDbTableKeySchema>>
The primary key structure for the table.
Sourcepub fn latest_stream_arn(self, input: impl Into<String>) -> Self
pub fn latest_stream_arn(self, input: impl Into<String>) -> Self
The ARN of the latest stream for the table.
Sourcepub fn set_latest_stream_arn(self, input: Option<String>) -> Self
pub fn set_latest_stream_arn(self, input: Option<String>) -> Self
The ARN of the latest stream for the table.
Sourcepub fn get_latest_stream_arn(&self) -> &Option<String>
pub fn get_latest_stream_arn(&self) -> &Option<String>
The ARN of the latest stream for the table.
Sourcepub fn latest_stream_label(self, input: impl Into<String>) -> Self
pub fn latest_stream_label(self, input: impl Into<String>) -> Self
The label of the latest stream. The label is not a unique identifier.
Sourcepub fn set_latest_stream_label(self, input: Option<String>) -> Self
pub fn set_latest_stream_label(self, input: Option<String>) -> Self
The label of the latest stream. The label is not a unique identifier.
Sourcepub fn get_latest_stream_label(&self) -> &Option<String>
pub fn get_latest_stream_label(&self) -> &Option<String>
The label of the latest stream. The label is not a unique identifier.
Sourcepub fn local_secondary_indexes(
self,
input: AwsDynamoDbTableLocalSecondaryIndex,
) -> Self
pub fn local_secondary_indexes( self, input: AwsDynamoDbTableLocalSecondaryIndex, ) -> Self
Appends an item to local_secondary_indexes
.
To override the contents of this collection use set_local_secondary_indexes
.
The list of local secondary indexes for the table.
Sourcepub fn set_local_secondary_indexes(
self,
input: Option<Vec<AwsDynamoDbTableLocalSecondaryIndex>>,
) -> Self
pub fn set_local_secondary_indexes( self, input: Option<Vec<AwsDynamoDbTableLocalSecondaryIndex>>, ) -> Self
The list of local secondary indexes for the table.
Sourcepub fn get_local_secondary_indexes(
&self,
) -> &Option<Vec<AwsDynamoDbTableLocalSecondaryIndex>>
pub fn get_local_secondary_indexes( &self, ) -> &Option<Vec<AwsDynamoDbTableLocalSecondaryIndex>>
The list of local secondary indexes for the table.
Sourcepub fn provisioned_throughput(
self,
input: AwsDynamoDbTableProvisionedThroughput,
) -> Self
pub fn provisioned_throughput( self, input: AwsDynamoDbTableProvisionedThroughput, ) -> Self
Information about the provisioned throughput for the table.
Sourcepub fn set_provisioned_throughput(
self,
input: Option<AwsDynamoDbTableProvisionedThroughput>,
) -> Self
pub fn set_provisioned_throughput( self, input: Option<AwsDynamoDbTableProvisionedThroughput>, ) -> Self
Information about the provisioned throughput for the table.
Sourcepub fn get_provisioned_throughput(
&self,
) -> &Option<AwsDynamoDbTableProvisionedThroughput>
pub fn get_provisioned_throughput( &self, ) -> &Option<AwsDynamoDbTableProvisionedThroughput>
Information about the provisioned throughput for the table.
Sourcepub fn replicas(self, input: AwsDynamoDbTableReplica) -> Self
pub fn replicas(self, input: AwsDynamoDbTableReplica) -> Self
Appends an item to replicas
.
To override the contents of this collection use set_replicas
.
The list of replicas of this table.
Sourcepub fn set_replicas(self, input: Option<Vec<AwsDynamoDbTableReplica>>) -> Self
pub fn set_replicas(self, input: Option<Vec<AwsDynamoDbTableReplica>>) -> Self
The list of replicas of this table.
Sourcepub fn get_replicas(&self) -> &Option<Vec<AwsDynamoDbTableReplica>>
pub fn get_replicas(&self) -> &Option<Vec<AwsDynamoDbTableReplica>>
The list of replicas of this table.
Sourcepub fn restore_summary(self, input: AwsDynamoDbTableRestoreSummary) -> Self
pub fn restore_summary(self, input: AwsDynamoDbTableRestoreSummary) -> Self
Information about the restore for the table.
Sourcepub fn set_restore_summary(
self,
input: Option<AwsDynamoDbTableRestoreSummary>,
) -> Self
pub fn set_restore_summary( self, input: Option<AwsDynamoDbTableRestoreSummary>, ) -> Self
Information about the restore for the table.
Sourcepub fn get_restore_summary(&self) -> &Option<AwsDynamoDbTableRestoreSummary>
pub fn get_restore_summary(&self) -> &Option<AwsDynamoDbTableRestoreSummary>
Information about the restore for the table.
Sourcepub fn sse_description(self, input: AwsDynamoDbTableSseDescription) -> Self
pub fn sse_description(self, input: AwsDynamoDbTableSseDescription) -> Self
Information about the server-side encryption for the table.
Sourcepub fn set_sse_description(
self,
input: Option<AwsDynamoDbTableSseDescription>,
) -> Self
pub fn set_sse_description( self, input: Option<AwsDynamoDbTableSseDescription>, ) -> Self
Information about the server-side encryption for the table.
Sourcepub fn get_sse_description(&self) -> &Option<AwsDynamoDbTableSseDescription>
pub fn get_sse_description(&self) -> &Option<AwsDynamoDbTableSseDescription>
Information about the server-side encryption for the table.
Sourcepub fn stream_specification(
self,
input: AwsDynamoDbTableStreamSpecification,
) -> Self
pub fn stream_specification( self, input: AwsDynamoDbTableStreamSpecification, ) -> Self
The current DynamoDB Streams configuration for the table.
Sourcepub fn set_stream_specification(
self,
input: Option<AwsDynamoDbTableStreamSpecification>,
) -> Self
pub fn set_stream_specification( self, input: Option<AwsDynamoDbTableStreamSpecification>, ) -> Self
The current DynamoDB Streams configuration for the table.
Sourcepub fn get_stream_specification(
&self,
) -> &Option<AwsDynamoDbTableStreamSpecification>
pub fn get_stream_specification( &self, ) -> &Option<AwsDynamoDbTableStreamSpecification>
The current DynamoDB Streams configuration for the table.
Sourcepub fn set_table_id(self, input: Option<String>) -> Self
pub fn set_table_id(self, input: Option<String>) -> Self
The identifier of the table.
Sourcepub fn get_table_id(&self) -> &Option<String>
pub fn get_table_id(&self) -> &Option<String>
The identifier of the table.
Sourcepub fn table_name(self, input: impl Into<String>) -> Self
pub fn table_name(self, input: impl Into<String>) -> Self
The name of the table.
Sourcepub fn set_table_name(self, input: Option<String>) -> Self
pub fn set_table_name(self, input: Option<String>) -> Self
The name of the table.
Sourcepub fn get_table_name(&self) -> &Option<String>
pub fn get_table_name(&self) -> &Option<String>
The name of the table.
Sourcepub fn table_size_bytes(self, input: i64) -> Self
pub fn table_size_bytes(self, input: i64) -> Self
The total size of the table in bytes.
Sourcepub fn set_table_size_bytes(self, input: Option<i64>) -> Self
pub fn set_table_size_bytes(self, input: Option<i64>) -> Self
The total size of the table in bytes.
Sourcepub fn get_table_size_bytes(&self) -> &Option<i64>
pub fn get_table_size_bytes(&self) -> &Option<i64>
The total size of the table in bytes.
Sourcepub fn table_status(self, input: impl Into<String>) -> Self
pub fn table_status(self, input: impl Into<String>) -> Self
The current status of the table. Valid values are as follows:
-
ACTIVE
-
ARCHIVED
-
ARCHIVING
-
CREATING
-
DELETING
-
INACCESSIBLE_ENCRYPTION_CREDENTIALS
-
UPDATING
Sourcepub fn set_table_status(self, input: Option<String>) -> Self
pub fn set_table_status(self, input: Option<String>) -> Self
The current status of the table. Valid values are as follows:
-
ACTIVE
-
ARCHIVED
-
ARCHIVING
-
CREATING
-
DELETING
-
INACCESSIBLE_ENCRYPTION_CREDENTIALS
-
UPDATING
Sourcepub fn get_table_status(&self) -> &Option<String>
pub fn get_table_status(&self) -> &Option<String>
The current status of the table. Valid values are as follows:
-
ACTIVE
-
ARCHIVED
-
ARCHIVING
-
CREATING
-
DELETING
-
INACCESSIBLE_ENCRYPTION_CREDENTIALS
-
UPDATING
Sourcepub fn deletion_protection_enabled(self, input: bool) -> Self
pub fn deletion_protection_enabled(self, input: bool) -> Self
Indicates whether deletion protection is to be enabled (true) or disabled (false) on the table.
Sourcepub fn set_deletion_protection_enabled(self, input: Option<bool>) -> Self
pub fn set_deletion_protection_enabled(self, input: Option<bool>) -> Self
Indicates whether deletion protection is to be enabled (true) or disabled (false) on the table.
Sourcepub fn get_deletion_protection_enabled(&self) -> &Option<bool>
pub fn get_deletion_protection_enabled(&self) -> &Option<bool>
Indicates whether deletion protection is to be enabled (true) or disabled (false) on the table.
Sourcepub fn build(self) -> AwsDynamoDbTableDetails
pub fn build(self) -> AwsDynamoDbTableDetails
Consumes the builder and constructs a AwsDynamoDbTableDetails
.
Trait Implementations§
Source§impl Clone for AwsDynamoDbTableDetailsBuilder
impl Clone for AwsDynamoDbTableDetailsBuilder
Source§fn clone(&self) -> AwsDynamoDbTableDetailsBuilder
fn clone(&self) -> AwsDynamoDbTableDetailsBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for AwsDynamoDbTableDetailsBuilder
impl Default for AwsDynamoDbTableDetailsBuilder
Source§fn default() -> AwsDynamoDbTableDetailsBuilder
fn default() -> AwsDynamoDbTableDetailsBuilder
Source§impl PartialEq for AwsDynamoDbTableDetailsBuilder
impl PartialEq for AwsDynamoDbTableDetailsBuilder
Source§fn eq(&self, other: &AwsDynamoDbTableDetailsBuilder) -> bool
fn eq(&self, other: &AwsDynamoDbTableDetailsBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for AwsDynamoDbTableDetailsBuilder
Auto Trait Implementations§
impl Freeze for AwsDynamoDbTableDetailsBuilder
impl RefUnwindSafe for AwsDynamoDbTableDetailsBuilder
impl Send for AwsDynamoDbTableDetailsBuilder
impl Sync for AwsDynamoDbTableDetailsBuilder
impl Unpin for AwsDynamoDbTableDetailsBuilder
impl UnwindSafe for AwsDynamoDbTableDetailsBuilder
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);