pub struct GetRecommendations { /* private fields */ }
Expand description
Fluent builder constructing a request to GetRecommendations
.
Returns a list of Recommendation
objects that contain recommendations for a profiling group for a given time period. A list of Anomaly
objects that contains details about anomalies detected in the profiling group for the same time period is also returned.
Implementations
sourceimpl GetRecommendations
impl GetRecommendations
sourcepub async fn send(
self
) -> Result<GetRecommendationsOutput, SdkError<GetRecommendationsError>>
pub async fn send(
self
) -> Result<GetRecommendationsOutput, SdkError<GetRecommendationsError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
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 to get analysis data about.
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 to get analysis data about.
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The end time of the profile to get analysis data about. You must specify startTime
and endTime
. 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 set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
The end time of the profile to get analysis data about. You must specify startTime
and endTime
. 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 end_time(self, input: DateTime) -> Self
pub fn end_time(self, input: DateTime) -> Self
The start time of the profile to get analysis data about. You must specify startTime
and endTime
. 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 set_end_time(self, input: Option<DateTime>) -> Self
pub fn set_end_time(self, input: Option<DateTime>) -> Self
The start time of the profile to get analysis data about. You must specify startTime
and endTime
. 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 locale(self, input: impl Into<String>) -> Self
pub fn locale(self, input: impl Into<String>) -> Self
The language used to provide analysis. Specify using a string that is one of the following BCP 47
language codes.
-
de-DE
- German, Germany -
en-GB
- English, United Kingdom -
en-US
- English, United States -
es-ES
- Spanish, Spain -
fr-FR
- French, France -
it-IT
- Italian, Italy -
ja-JP
- Japanese, Japan -
ko-KR
- Korean, Republic of Korea -
pt-BR
- Portugese, Brazil -
zh-CN
- Chinese, China -
zh-TW
- Chinese, Taiwan
sourcepub fn set_locale(self, input: Option<String>) -> Self
pub fn set_locale(self, input: Option<String>) -> Self
The language used to provide analysis. Specify using a string that is one of the following BCP 47
language codes.
-
de-DE
- German, Germany -
en-GB
- English, United Kingdom -
en-US
- English, United States -
es-ES
- Spanish, Spain -
fr-FR
- French, France -
it-IT
- Italian, Italy -
ja-JP
- Japanese, Japan -
ko-KR
- Korean, Republic of Korea -
pt-BR
- Portugese, Brazil -
zh-CN
- Chinese, China -
zh-TW
- Chinese, Taiwan
Trait Implementations
sourceimpl Clone for GetRecommendations
impl Clone for GetRecommendations
sourcefn clone(&self) -> GetRecommendations
fn clone(&self) -> GetRecommendations
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for GetRecommendations
impl Send for GetRecommendations
impl Sync for GetRecommendations
impl Unpin for GetRecommendations
impl !UnwindSafe for GetRecommendations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more