#[non_exhaustive]pub struct TrustedAdvisorCheckResultBuilder { /* private fields */ }
Expand description
A builder for TrustedAdvisorCheckResult
.
Implementations§
source§impl TrustedAdvisorCheckResultBuilder
impl TrustedAdvisorCheckResultBuilder
sourcepub fn check_id(self, input: impl Into<String>) -> Self
pub fn check_id(self, input: impl Into<String>) -> Self
The unique identifier for the Trusted Advisor check.
This field is required.sourcepub fn set_check_id(self, input: Option<String>) -> Self
pub fn set_check_id(self, input: Option<String>) -> Self
The unique identifier for the Trusted Advisor check.
sourcepub fn get_check_id(&self) -> &Option<String>
pub fn get_check_id(&self) -> &Option<String>
The unique identifier for the Trusted Advisor check.
sourcepub fn timestamp(self, input: impl Into<String>) -> Self
pub fn timestamp(self, input: impl Into<String>) -> Self
The time of the last refresh of the check.
This field is required.sourcepub fn set_timestamp(self, input: Option<String>) -> Self
pub fn set_timestamp(self, input: Option<String>) -> Self
The time of the last refresh of the check.
sourcepub fn get_timestamp(&self) -> &Option<String>
pub fn get_timestamp(&self) -> &Option<String>
The time of the last refresh of the check.
sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available".
This field is required.sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available".
sourcepub fn get_status(&self) -> &Option<String>
pub fn get_status(&self) -> &Option<String>
The alert status of the check: "ok" (green), "warning" (yellow), "error" (red), or "not_available".
sourcepub fn resources_summary(self, input: TrustedAdvisorResourcesSummary) -> Self
pub fn resources_summary(self, input: TrustedAdvisorResourcesSummary) -> Self
Details about Amazon Web Services resources that were analyzed in a call to Trusted Advisor DescribeTrustedAdvisorCheckSummaries
.
sourcepub fn set_resources_summary(
self,
input: Option<TrustedAdvisorResourcesSummary>
) -> Self
pub fn set_resources_summary( self, input: Option<TrustedAdvisorResourcesSummary> ) -> Self
Details about Amazon Web Services resources that were analyzed in a call to Trusted Advisor DescribeTrustedAdvisorCheckSummaries
.
sourcepub fn get_resources_summary(&self) -> &Option<TrustedAdvisorResourcesSummary>
pub fn get_resources_summary(&self) -> &Option<TrustedAdvisorResourcesSummary>
Details about Amazon Web Services resources that were analyzed in a call to Trusted Advisor DescribeTrustedAdvisorCheckSummaries
.
sourcepub fn category_specific_summary(
self,
input: TrustedAdvisorCategorySpecificSummary
) -> Self
pub fn category_specific_summary( self, input: TrustedAdvisorCategorySpecificSummary ) -> Self
Summary information that relates to the category of the check. Cost Optimizing is the only category that is currently supported.
This field is required.sourcepub fn set_category_specific_summary(
self,
input: Option<TrustedAdvisorCategorySpecificSummary>
) -> Self
pub fn set_category_specific_summary( self, input: Option<TrustedAdvisorCategorySpecificSummary> ) -> Self
Summary information that relates to the category of the check. Cost Optimizing is the only category that is currently supported.
sourcepub fn get_category_specific_summary(
&self
) -> &Option<TrustedAdvisorCategorySpecificSummary>
pub fn get_category_specific_summary( &self ) -> &Option<TrustedAdvisorCategorySpecificSummary>
Summary information that relates to the category of the check. Cost Optimizing is the only category that is currently supported.
sourcepub fn flagged_resources(self, input: TrustedAdvisorResourceDetail) -> Self
pub fn flagged_resources(self, input: TrustedAdvisorResourceDetail) -> Self
Appends an item to flagged_resources
.
To override the contents of this collection use set_flagged_resources
.
The details about each resource listed in the check result.
sourcepub fn set_flagged_resources(
self,
input: Option<Vec<TrustedAdvisorResourceDetail>>
) -> Self
pub fn set_flagged_resources( self, input: Option<Vec<TrustedAdvisorResourceDetail>> ) -> Self
The details about each resource listed in the check result.
sourcepub fn get_flagged_resources(
&self
) -> &Option<Vec<TrustedAdvisorResourceDetail>>
pub fn get_flagged_resources( &self ) -> &Option<Vec<TrustedAdvisorResourceDetail>>
The details about each resource listed in the check result.
sourcepub fn build(self) -> Result<TrustedAdvisorCheckResult, BuildError>
pub fn build(self) -> Result<TrustedAdvisorCheckResult, BuildError>
Consumes the builder and constructs a TrustedAdvisorCheckResult
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TrustedAdvisorCheckResultBuilder
impl Clone for TrustedAdvisorCheckResultBuilder
source§fn clone(&self) -> TrustedAdvisorCheckResultBuilder
fn clone(&self) -> TrustedAdvisorCheckResultBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TrustedAdvisorCheckResultBuilder
impl Default for TrustedAdvisorCheckResultBuilder
source§fn default() -> TrustedAdvisorCheckResultBuilder
fn default() -> TrustedAdvisorCheckResultBuilder
source§impl PartialEq for TrustedAdvisorCheckResultBuilder
impl PartialEq for TrustedAdvisorCheckResultBuilder
source§fn eq(&self, other: &TrustedAdvisorCheckResultBuilder) -> bool
fn eq(&self, other: &TrustedAdvisorCheckResultBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TrustedAdvisorCheckResultBuilder
Auto Trait Implementations§
impl Freeze for TrustedAdvisorCheckResultBuilder
impl RefUnwindSafe for TrustedAdvisorCheckResultBuilder
impl Send for TrustedAdvisorCheckResultBuilder
impl Sync for TrustedAdvisorCheckResultBuilder
impl Unpin for TrustedAdvisorCheckResultBuilder
impl UnwindSafe for TrustedAdvisorCheckResultBuilder
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> 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 more