#[non_exhaustive]pub struct PremigrationAssessmentStatusBuilder { /* private fields */ }
Expand description
A builder for PremigrationAssessmentStatus
.
Implementations§
Source§impl PremigrationAssessmentStatusBuilder
impl PremigrationAssessmentStatusBuilder
Sourcepub fn premigration_assessment_run_arn(self, input: impl Into<String>) -> Self
pub fn premigration_assessment_run_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of this assessment run.
Sourcepub fn set_premigration_assessment_run_arn(self, input: Option<String>) -> Self
pub fn set_premigration_assessment_run_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of this assessment run.
Sourcepub fn get_premigration_assessment_run_arn(&self) -> &Option<String>
pub fn get_premigration_assessment_run_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of this assessment run.
Sourcepub fn fail_on_assessment_failure(self, input: bool) -> Self
pub fn fail_on_assessment_failure(self, input: bool) -> Self
A configurable setting you can set to true
(the defualt setting) or false
. Use this setting to to stop the replication from starting automatically if the assessment fails. This can help you evaluate the issue that is preventing the replication from running successfully.
Sourcepub fn set_fail_on_assessment_failure(self, input: Option<bool>) -> Self
pub fn set_fail_on_assessment_failure(self, input: Option<bool>) -> Self
A configurable setting you can set to true
(the defualt setting) or false
. Use this setting to to stop the replication from starting automatically if the assessment fails. This can help you evaluate the issue that is preventing the replication from running successfully.
Sourcepub fn get_fail_on_assessment_failure(&self) -> &Option<bool>
pub fn get_fail_on_assessment_failure(&self) -> &Option<bool>
A configurable setting you can set to true
(the defualt setting) or false
. Use this setting to to stop the replication from starting automatically if the assessment fails. This can help you evaluate the issue that is preventing the replication from running successfully.
Sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
This describes the assessment run status. The status can be one of the following values:
-
cancelling
: The assessment run was canceled. -
deleting
: The assessment run was deleted. -
failed
: At least one individual assessment completed with a failed status. -
error-provisioning
: An internal error occurred while resources were provisioned (during theprovisioning
status). -
error-executing
An internal error occurred while individual assessments ran (during therunning
status). -
invalid state
: The assessment run is in an unknown state. -
passed
: All individual assessments have completed and none have a failed status. -
provisioning
: The resources required to run individual assessments are being provisioned. -
running
: Individual assessments are being run. -
starting
: The assessment run is starting, but resources are not yet being provisioned for individual assessments. -
warning
: At least one individual assessment completed with a warning status.
Sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
This describes the assessment run status. The status can be one of the following values:
-
cancelling
: The assessment run was canceled. -
deleting
: The assessment run was deleted. -
failed
: At least one individual assessment completed with a failed status. -
error-provisioning
: An internal error occurred while resources were provisioned (during theprovisioning
status). -
error-executing
An internal error occurred while individual assessments ran (during therunning
status). -
invalid state
: The assessment run is in an unknown state. -
passed
: All individual assessments have completed and none have a failed status. -
provisioning
: The resources required to run individual assessments are being provisioned. -
running
: Individual assessments are being run. -
starting
: The assessment run is starting, but resources are not yet being provisioned for individual assessments. -
warning
: At least one individual assessment completed with a warning status.
Sourcepub fn get_status(&self) -> &Option<String>
pub fn get_status(&self) -> &Option<String>
This describes the assessment run status. The status can be one of the following values:
-
cancelling
: The assessment run was canceled. -
deleting
: The assessment run was deleted. -
failed
: At least one individual assessment completed with a failed status. -
error-provisioning
: An internal error occurred while resources were provisioned (during theprovisioning
status). -
error-executing
An internal error occurred while individual assessments ran (during therunning
status). -
invalid state
: The assessment run is in an unknown state. -
passed
: All individual assessments have completed and none have a failed status. -
provisioning
: The resources required to run individual assessments are being provisioned. -
running
: Individual assessments are being run. -
starting
: The assessment run is starting, but resources are not yet being provisioned for individual assessments. -
warning
: At least one individual assessment completed with a warning status.
Sourcepub fn premigration_assessment_run_creation_date(self, input: DateTime) -> Self
pub fn premigration_assessment_run_creation_date(self, input: DateTime) -> Self
The date which the assessment run was created.
Sourcepub fn set_premigration_assessment_run_creation_date(
self,
input: Option<DateTime>,
) -> Self
pub fn set_premigration_assessment_run_creation_date( self, input: Option<DateTime>, ) -> Self
The date which the assessment run was created.
Sourcepub fn get_premigration_assessment_run_creation_date(&self) -> &Option<DateTime>
pub fn get_premigration_assessment_run_creation_date(&self) -> &Option<DateTime>
The date which the assessment run was created.
Sourcepub fn assessment_progress(
self,
input: ReplicationTaskAssessmentRunProgress,
) -> Self
pub fn assessment_progress( self, input: ReplicationTaskAssessmentRunProgress, ) -> Self
The progress values reported by the AssessmentProgress
response element.
Sourcepub fn set_assessment_progress(
self,
input: Option<ReplicationTaskAssessmentRunProgress>,
) -> Self
pub fn set_assessment_progress( self, input: Option<ReplicationTaskAssessmentRunProgress>, ) -> Self
The progress values reported by the AssessmentProgress
response element.
Sourcepub fn get_assessment_progress(
&self,
) -> &Option<ReplicationTaskAssessmentRunProgress>
pub fn get_assessment_progress( &self, ) -> &Option<ReplicationTaskAssessmentRunProgress>
The progress values reported by the AssessmentProgress
response element.
Sourcepub fn last_failure_message(self, input: impl Into<String>) -> Self
pub fn last_failure_message(self, input: impl Into<String>) -> Self
The last message generated by an individual assessment failure.
Sourcepub fn set_last_failure_message(self, input: Option<String>) -> Self
pub fn set_last_failure_message(self, input: Option<String>) -> Self
The last message generated by an individual assessment failure.
Sourcepub fn get_last_failure_message(&self) -> &Option<String>
pub fn get_last_failure_message(&self) -> &Option<String>
The last message generated by an individual assessment failure.
Sourcepub fn result_location_bucket(self, input: impl Into<String>) -> Self
pub fn result_location_bucket(self, input: impl Into<String>) -> Self
The Amazon S3 bucket that Database Migration Service Serverless created to store the results of this assessment run.
Sourcepub fn set_result_location_bucket(self, input: Option<String>) -> Self
pub fn set_result_location_bucket(self, input: Option<String>) -> Self
The Amazon S3 bucket that Database Migration Service Serverless created to store the results of this assessment run.
Sourcepub fn get_result_location_bucket(&self) -> &Option<String>
pub fn get_result_location_bucket(&self) -> &Option<String>
The Amazon S3 bucket that Database Migration Service Serverless created to store the results of this assessment run.
Sourcepub fn result_location_folder(self, input: impl Into<String>) -> Self
pub fn result_location_folder(self, input: impl Into<String>) -> Self
The folder within an Amazon S3 bucket where you want Database Migration Service to store the results of this assessment run.
Sourcepub fn set_result_location_folder(self, input: Option<String>) -> Self
pub fn set_result_location_folder(self, input: Option<String>) -> Self
The folder within an Amazon S3 bucket where you want Database Migration Service to store the results of this assessment run.
Sourcepub fn get_result_location_folder(&self) -> &Option<String>
pub fn get_result_location_folder(&self) -> &Option<String>
The folder within an Amazon S3 bucket where you want Database Migration Service to store the results of this assessment run.
Sourcepub fn result_encryption_mode(self, input: impl Into<String>) -> Self
pub fn result_encryption_mode(self, input: impl Into<String>) -> Self
The supported values are SSE_KMS
and SSE_S3
. If these values are not provided, then the files are not encrypted at rest. For more information, see Creating Amazon Web Services KMS keys to encrypt Amazon S3 target objects.
Sourcepub fn set_result_encryption_mode(self, input: Option<String>) -> Self
pub fn set_result_encryption_mode(self, input: Option<String>) -> Self
The supported values are SSE_KMS
and SSE_S3
. If these values are not provided, then the files are not encrypted at rest. For more information, see Creating Amazon Web Services KMS keys to encrypt Amazon S3 target objects.
Sourcepub fn get_result_encryption_mode(&self) -> &Option<String>
pub fn get_result_encryption_mode(&self) -> &Option<String>
The supported values are SSE_KMS
and SSE_S3
. If these values are not provided, then the files are not encrypted at rest. For more information, see Creating Amazon Web Services KMS keys to encrypt Amazon S3 target objects.
Sourcepub fn result_kms_key_arn(self, input: impl Into<String>) -> Self
pub fn result_kms_key_arn(self, input: impl Into<String>) -> Self
The ARN of a custom KMS encryption key that you specify when you set ResultEncryptionMode
to SSE_KMS
.
Sourcepub fn set_result_kms_key_arn(self, input: Option<String>) -> Self
pub fn set_result_kms_key_arn(self, input: Option<String>) -> Self
The ARN of a custom KMS encryption key that you specify when you set ResultEncryptionMode
to SSE_KMS
.
Sourcepub fn get_result_kms_key_arn(&self) -> &Option<String>
pub fn get_result_kms_key_arn(&self) -> &Option<String>
The ARN of a custom KMS encryption key that you specify when you set ResultEncryptionMode
to SSE_KMS
.
Sourcepub fn result_statistic(
self,
input: ReplicationTaskAssessmentRunResultStatistic,
) -> Self
pub fn result_statistic( self, input: ReplicationTaskAssessmentRunResultStatistic, ) -> Self
The object containing the result statistics for a completed assessment run.
Sourcepub fn set_result_statistic(
self,
input: Option<ReplicationTaskAssessmentRunResultStatistic>,
) -> Self
pub fn set_result_statistic( self, input: Option<ReplicationTaskAssessmentRunResultStatistic>, ) -> Self
The object containing the result statistics for a completed assessment run.
Sourcepub fn get_result_statistic(
&self,
) -> &Option<ReplicationTaskAssessmentRunResultStatistic>
pub fn get_result_statistic( &self, ) -> &Option<ReplicationTaskAssessmentRunResultStatistic>
The object containing the result statistics for a completed assessment run.
Sourcepub fn build(self) -> PremigrationAssessmentStatus
pub fn build(self) -> PremigrationAssessmentStatus
Consumes the builder and constructs a PremigrationAssessmentStatus
.
Trait Implementations§
Source§impl Clone for PremigrationAssessmentStatusBuilder
impl Clone for PremigrationAssessmentStatusBuilder
Source§fn clone(&self) -> PremigrationAssessmentStatusBuilder
fn clone(&self) -> PremigrationAssessmentStatusBuilder
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for PremigrationAssessmentStatusBuilder
impl Default for PremigrationAssessmentStatusBuilder
Source§fn default() -> PremigrationAssessmentStatusBuilder
fn default() -> PremigrationAssessmentStatusBuilder
Source§impl PartialEq for PremigrationAssessmentStatusBuilder
impl PartialEq for PremigrationAssessmentStatusBuilder
Source§fn eq(&self, other: &PremigrationAssessmentStatusBuilder) -> bool
fn eq(&self, other: &PremigrationAssessmentStatusBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for PremigrationAssessmentStatusBuilder
Auto Trait Implementations§
impl Freeze for PremigrationAssessmentStatusBuilder
impl RefUnwindSafe for PremigrationAssessmentStatusBuilder
impl Send for PremigrationAssessmentStatusBuilder
impl Sync for PremigrationAssessmentStatusBuilder
impl Unpin for PremigrationAssessmentStatusBuilder
impl UnwindSafe for PremigrationAssessmentStatusBuilder
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);