#[non_exhaustive]pub struct StartExportTaskOutputBuilder { /* private fields */ }
Expand description
A builder for StartExportTaskOutput
.
Implementations§
Source§impl StartExportTaskOutputBuilder
impl StartExportTaskOutputBuilder
Sourcepub fn export_task_identifier(self, input: impl Into<String>) -> Self
pub fn export_task_identifier(self, input: impl Into<String>) -> Self
A unique identifier for the snapshot or cluster export task. This ID isn't an identifier for the Amazon S3 bucket where the data is exported.
Sourcepub fn set_export_task_identifier(self, input: Option<String>) -> Self
pub fn set_export_task_identifier(self, input: Option<String>) -> Self
A unique identifier for the snapshot or cluster export task. This ID isn't an identifier for the Amazon S3 bucket where the data is exported.
Sourcepub fn get_export_task_identifier(&self) -> &Option<String>
pub fn get_export_task_identifier(&self) -> &Option<String>
A unique identifier for the snapshot or cluster export task. This ID isn't an identifier for the Amazon S3 bucket where the data is exported.
Sourcepub fn source_arn(self, input: impl Into<String>) -> Self
pub fn source_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the snapshot or cluster exported to Amazon S3.
Sourcepub fn set_source_arn(self, input: Option<String>) -> Self
pub fn set_source_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the snapshot or cluster exported to Amazon S3.
Sourcepub fn get_source_arn(&self) -> &Option<String>
pub fn get_source_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the snapshot or cluster exported to Amazon S3.
Sourcepub fn export_only(self, input: impl Into<String>) -> Self
pub fn export_only(self, input: impl Into<String>) -> Self
Appends an item to export_only
.
To override the contents of this collection use set_export_only
.
The data exported from the snapshot or cluster.
Valid Values:
-
database
- Export all the data from a specified database. -
database.table
table-name - Export a table of the snapshot or cluster. This format is valid only for RDS for MySQL, RDS for MariaDB, and Aurora MySQL. -
database.schema
schema-name - Export a database schema of the snapshot or cluster. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL. -
database.schema.table
table-name - Export a table of the database schema. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.
Sourcepub fn set_export_only(self, input: Option<Vec<String>>) -> Self
pub fn set_export_only(self, input: Option<Vec<String>>) -> Self
The data exported from the snapshot or cluster.
Valid Values:
-
database
- Export all the data from a specified database. -
database.table
table-name - Export a table of the snapshot or cluster. This format is valid only for RDS for MySQL, RDS for MariaDB, and Aurora MySQL. -
database.schema
schema-name - Export a database schema of the snapshot or cluster. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL. -
database.schema.table
table-name - Export a table of the database schema. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.
Sourcepub fn get_export_only(&self) -> &Option<Vec<String>>
pub fn get_export_only(&self) -> &Option<Vec<String>>
The data exported from the snapshot or cluster.
Valid Values:
-
database
- Export all the data from a specified database. -
database.table
table-name - Export a table of the snapshot or cluster. This format is valid only for RDS for MySQL, RDS for MariaDB, and Aurora MySQL. -
database.schema
schema-name - Export a database schema of the snapshot or cluster. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL. -
database.schema.table
table-name - Export a table of the database schema. This format is valid only for RDS for PostgreSQL and Aurora PostgreSQL.
Sourcepub fn snapshot_time(self, input: DateTime) -> Self
pub fn snapshot_time(self, input: DateTime) -> Self
The time when the snapshot was created.
Sourcepub fn set_snapshot_time(self, input: Option<DateTime>) -> Self
pub fn set_snapshot_time(self, input: Option<DateTime>) -> Self
The time when the snapshot was created.
Sourcepub fn get_snapshot_time(&self) -> &Option<DateTime>
pub fn get_snapshot_time(&self) -> &Option<DateTime>
The time when the snapshot was created.
Sourcepub fn task_start_time(self, input: DateTime) -> Self
pub fn task_start_time(self, input: DateTime) -> Self
The time when the snapshot or cluster export task started.
Sourcepub fn set_task_start_time(self, input: Option<DateTime>) -> Self
pub fn set_task_start_time(self, input: Option<DateTime>) -> Self
The time when the snapshot or cluster export task started.
Sourcepub fn get_task_start_time(&self) -> &Option<DateTime>
pub fn get_task_start_time(&self) -> &Option<DateTime>
The time when the snapshot or cluster export task started.
Sourcepub fn task_end_time(self, input: DateTime) -> Self
pub fn task_end_time(self, input: DateTime) -> Self
The time when the snapshot or cluster export task ended.
Sourcepub fn set_task_end_time(self, input: Option<DateTime>) -> Self
pub fn set_task_end_time(self, input: Option<DateTime>) -> Self
The time when the snapshot or cluster export task ended.
Sourcepub fn get_task_end_time(&self) -> &Option<DateTime>
pub fn get_task_end_time(&self) -> &Option<DateTime>
The time when the snapshot or cluster export task ended.
Sourcepub fn s3_bucket(self, input: impl Into<String>) -> Self
pub fn s3_bucket(self, input: impl Into<String>) -> Self
The Amazon S3 bucket where the snapshot or cluster is exported to.
Sourcepub fn set_s3_bucket(self, input: Option<String>) -> Self
pub fn set_s3_bucket(self, input: Option<String>) -> Self
The Amazon S3 bucket where the snapshot or cluster is exported to.
Sourcepub fn get_s3_bucket(&self) -> &Option<String>
pub fn get_s3_bucket(&self) -> &Option<String>
The Amazon S3 bucket where the snapshot or cluster is exported to.
Sourcepub fn s3_prefix(self, input: impl Into<String>) -> Self
pub fn s3_prefix(self, input: impl Into<String>) -> Self
The Amazon S3 bucket prefix that is the file name and path of the exported data.
Sourcepub fn set_s3_prefix(self, input: Option<String>) -> Self
pub fn set_s3_prefix(self, input: Option<String>) -> Self
The Amazon S3 bucket prefix that is the file name and path of the exported data.
Sourcepub fn get_s3_prefix(&self) -> &Option<String>
pub fn get_s3_prefix(&self) -> &Option<String>
The Amazon S3 bucket prefix that is the file name and path of the exported data.
Sourcepub fn iam_role_arn(self, input: impl Into<String>) -> Self
pub fn iam_role_arn(self, input: impl Into<String>) -> Self
The name of the IAM role that is used to write to Amazon S3 when exporting a snapshot or cluster.
Sourcepub fn set_iam_role_arn(self, input: Option<String>) -> Self
pub fn set_iam_role_arn(self, input: Option<String>) -> Self
The name of the IAM role that is used to write to Amazon S3 when exporting a snapshot or cluster.
Sourcepub fn get_iam_role_arn(&self) -> &Option<String>
pub fn get_iam_role_arn(&self) -> &Option<String>
The name of the IAM role that is used to write to Amazon S3 when exporting a snapshot or cluster.
Sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The key identifier of the Amazon Web Services KMS key that is used to encrypt the data when it's exported to Amazon S3. The KMS key identifier is its key ARN, key ID, alias ARN, or alias name. The IAM role used for the export must have encryption and decryption permissions to use this KMS key.
Sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The key identifier of the Amazon Web Services KMS key that is used to encrypt the data when it's exported to Amazon S3. The KMS key identifier is its key ARN, key ID, alias ARN, or alias name. The IAM role used for the export must have encryption and decryption permissions to use this KMS key.
Sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The key identifier of the Amazon Web Services KMS key that is used to encrypt the data when it's exported to Amazon S3. The KMS key identifier is its key ARN, key ID, alias ARN, or alias name. The IAM role used for the export must have encryption and decryption permissions to use this KMS key.
Sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
The progress status of the export task. The status can be one of the following:
-
CANCELED
-
CANCELING
-
COMPLETE
-
FAILED
-
IN_PROGRESS
-
STARTING
Sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The progress status of the export task. The status can be one of the following:
-
CANCELED
-
CANCELING
-
COMPLETE
-
FAILED
-
IN_PROGRESS
-
STARTING
Sourcepub fn get_status(&self) -> &Option<String>
pub fn get_status(&self) -> &Option<String>
The progress status of the export task. The status can be one of the following:
-
CANCELED
-
CANCELING
-
COMPLETE
-
FAILED
-
IN_PROGRESS
-
STARTING
Sourcepub fn percent_progress(self, input: i32) -> Self
pub fn percent_progress(self, input: i32) -> Self
The progress of the snapshot or cluster export task as a percentage.
Sourcepub fn set_percent_progress(self, input: Option<i32>) -> Self
pub fn set_percent_progress(self, input: Option<i32>) -> Self
The progress of the snapshot or cluster export task as a percentage.
Sourcepub fn get_percent_progress(&self) -> &Option<i32>
pub fn get_percent_progress(&self) -> &Option<i32>
The progress of the snapshot or cluster export task as a percentage.
Sourcepub fn total_extracted_data_in_gb(self, input: i32) -> Self
pub fn total_extracted_data_in_gb(self, input: i32) -> Self
The total amount of data exported, in gigabytes.
Sourcepub fn set_total_extracted_data_in_gb(self, input: Option<i32>) -> Self
pub fn set_total_extracted_data_in_gb(self, input: Option<i32>) -> Self
The total amount of data exported, in gigabytes.
Sourcepub fn get_total_extracted_data_in_gb(&self) -> &Option<i32>
pub fn get_total_extracted_data_in_gb(&self) -> &Option<i32>
The total amount of data exported, in gigabytes.
Sourcepub fn failure_cause(self, input: impl Into<String>) -> Self
pub fn failure_cause(self, input: impl Into<String>) -> Self
The reason the export failed, if it failed.
Sourcepub fn set_failure_cause(self, input: Option<String>) -> Self
pub fn set_failure_cause(self, input: Option<String>) -> Self
The reason the export failed, if it failed.
Sourcepub fn get_failure_cause(&self) -> &Option<String>
pub fn get_failure_cause(&self) -> &Option<String>
The reason the export failed, if it failed.
Sourcepub fn warning_message(self, input: impl Into<String>) -> Self
pub fn warning_message(self, input: impl Into<String>) -> Self
A warning about the snapshot or cluster export task.
Sourcepub fn set_warning_message(self, input: Option<String>) -> Self
pub fn set_warning_message(self, input: Option<String>) -> Self
A warning about the snapshot or cluster export task.
Sourcepub fn get_warning_message(&self) -> &Option<String>
pub fn get_warning_message(&self) -> &Option<String>
A warning about the snapshot or cluster export task.
Sourcepub fn source_type(self, input: ExportSourceType) -> Self
pub fn source_type(self, input: ExportSourceType) -> Self
The type of source for the export.
Sourcepub fn set_source_type(self, input: Option<ExportSourceType>) -> Self
pub fn set_source_type(self, input: Option<ExportSourceType>) -> Self
The type of source for the export.
Sourcepub fn get_source_type(&self) -> &Option<ExportSourceType>
pub fn get_source_type(&self) -> &Option<ExportSourceType>
The type of source for the export.
Sourcepub fn build(self) -> StartExportTaskOutput
pub fn build(self) -> StartExportTaskOutput
Consumes the builder and constructs a StartExportTaskOutput
.
Trait Implementations§
Source§impl Clone for StartExportTaskOutputBuilder
impl Clone for StartExportTaskOutputBuilder
Source§fn clone(&self) -> StartExportTaskOutputBuilder
fn clone(&self) -> StartExportTaskOutputBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for StartExportTaskOutputBuilder
impl Debug for StartExportTaskOutputBuilder
Source§impl Default for StartExportTaskOutputBuilder
impl Default for StartExportTaskOutputBuilder
Source§fn default() -> StartExportTaskOutputBuilder
fn default() -> StartExportTaskOutputBuilder
Source§impl PartialEq for StartExportTaskOutputBuilder
impl PartialEq for StartExportTaskOutputBuilder
Source§fn eq(&self, other: &StartExportTaskOutputBuilder) -> bool
fn eq(&self, other: &StartExportTaskOutputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for StartExportTaskOutputBuilder
Auto Trait Implementations§
impl Freeze for StartExportTaskOutputBuilder
impl RefUnwindSafe for StartExportTaskOutputBuilder
impl Send for StartExportTaskOutputBuilder
impl Sync for StartExportTaskOutputBuilder
impl Unpin for StartExportTaskOutputBuilder
impl UnwindSafe for StartExportTaskOutputBuilder
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);