Struct aws_sdk_codeguruprofiler::operation::get_recommendations::builders::GetRecommendationsOutputBuilder
source · #[non_exhaustive]pub struct GetRecommendationsOutputBuilder { /* private fields */ }
Expand description
A builder for GetRecommendationsOutput
.
Implementations§
source§impl GetRecommendationsOutputBuilder
impl GetRecommendationsOutputBuilder
sourcepub fn profiling_group_name(self, input: impl Into<String>) -> Self
pub fn profiling_group_name(self, input: impl Into<String>) -> Self
The name of the profiling group the analysis data is about.
This field is required.sourcepub fn set_profiling_group_name(self, input: Option<String>) -> Self
pub fn set_profiling_group_name(self, input: Option<String>) -> Self
The name of the profiling group the analysis data is about.
sourcepub fn get_profiling_group_name(&self) -> &Option<String>
pub fn get_profiling_group_name(&self) -> &Option<String>
The name of the profiling group the analysis data is about.
sourcepub fn profile_start_time(self, input: DateTime) -> Self
pub fn profile_start_time(self, input: DateTime) -> Self
The start time of the profile the analysis data is about. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
This field is required.sourcepub fn set_profile_start_time(self, input: Option<DateTime>) -> Self
pub fn set_profile_start_time(self, input: Option<DateTime>) -> Self
The start time of the profile the analysis data is about. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
sourcepub fn get_profile_start_time(&self) -> &Option<DateTime>
pub fn get_profile_start_time(&self) -> &Option<DateTime>
The start time of the profile the analysis data is about. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
sourcepub fn profile_end_time(self, input: DateTime) -> Self
pub fn profile_end_time(self, input: DateTime) -> Self
The end time of the profile the analysis data is about. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
This field is required.sourcepub fn set_profile_end_time(self, input: Option<DateTime>) -> Self
pub fn set_profile_end_time(self, input: Option<DateTime>) -> Self
The end time of the profile the analysis data is about. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
sourcepub fn get_profile_end_time(&self) -> &Option<DateTime>
pub fn get_profile_end_time(&self) -> &Option<DateTime>
The end time of the profile the analysis data is about. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
sourcepub fn recommendations(self, input: Recommendation) -> Self
pub fn recommendations(self, input: Recommendation) -> Self
Appends an item to recommendations
.
To override the contents of this collection use set_recommendations
.
The list of recommendations that the analysis found for this profile.
sourcepub fn set_recommendations(self, input: Option<Vec<Recommendation>>) -> Self
pub fn set_recommendations(self, input: Option<Vec<Recommendation>>) -> Self
The list of recommendations that the analysis found for this profile.
sourcepub fn get_recommendations(&self) -> &Option<Vec<Recommendation>>
pub fn get_recommendations(&self) -> &Option<Vec<Recommendation>>
The list of recommendations that the analysis found for this profile.
sourcepub fn anomalies(self, input: Anomaly) -> Self
pub fn anomalies(self, input: Anomaly) -> Self
Appends an item to anomalies
.
To override the contents of this collection use set_anomalies
.
The list of anomalies that the analysis has found for this profile.
sourcepub fn set_anomalies(self, input: Option<Vec<Anomaly>>) -> Self
pub fn set_anomalies(self, input: Option<Vec<Anomaly>>) -> Self
The list of anomalies that the analysis has found for this profile.
sourcepub fn get_anomalies(&self) -> &Option<Vec<Anomaly>>
pub fn get_anomalies(&self) -> &Option<Vec<Anomaly>>
The list of anomalies that the analysis has found for this profile.
sourcepub fn build(self) -> Result<GetRecommendationsOutput, BuildError>
pub fn build(self) -> Result<GetRecommendationsOutput, BuildError>
Consumes the builder and constructs a GetRecommendationsOutput
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GetRecommendationsOutputBuilder
impl Clone for GetRecommendationsOutputBuilder
source§fn clone(&self) -> GetRecommendationsOutputBuilder
fn clone(&self) -> GetRecommendationsOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetRecommendationsOutputBuilder
impl Default for GetRecommendationsOutputBuilder
source§fn default() -> GetRecommendationsOutputBuilder
fn default() -> GetRecommendationsOutputBuilder
source§impl PartialEq for GetRecommendationsOutputBuilder
impl PartialEq for GetRecommendationsOutputBuilder
source§fn eq(&self, other: &GetRecommendationsOutputBuilder) -> bool
fn eq(&self, other: &GetRecommendationsOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetRecommendationsOutputBuilder
Auto Trait Implementations§
impl Freeze for GetRecommendationsOutputBuilder
impl RefUnwindSafe for GetRecommendationsOutputBuilder
impl Send for GetRecommendationsOutputBuilder
impl Sync for GetRecommendationsOutputBuilder
impl Unpin for GetRecommendationsOutputBuilder
impl UnwindSafe for GetRecommendationsOutputBuilder
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