Struct aws_sdk_computeoptimizer::operation::get_ec2_instance_recommendations::builders::GetEc2InstanceRecommendationsOutputBuilder
source · #[non_exhaustive]pub struct GetEc2InstanceRecommendationsOutputBuilder { /* private fields */ }
Expand description
A builder for GetEc2InstanceRecommendationsOutput
.
Implementations§
source§impl GetEc2InstanceRecommendationsOutputBuilder
impl GetEc2InstanceRecommendationsOutputBuilder
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
The token to use to advance to the next page of instance recommendations.
This value is null when there are no more pages of instance recommendations to return.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
The token to use to advance to the next page of instance recommendations.
This value is null when there are no more pages of instance recommendations to return.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
The token to use to advance to the next page of instance recommendations.
This value is null when there are no more pages of instance recommendations to return.
sourcepub fn instance_recommendations(self, input: InstanceRecommendation) -> Self
pub fn instance_recommendations(self, input: InstanceRecommendation) -> Self
Appends an item to instance_recommendations
.
To override the contents of this collection use set_instance_recommendations
.
An array of objects that describe instance recommendations.
sourcepub fn set_instance_recommendations(
self,
input: Option<Vec<InstanceRecommendation>>
) -> Self
pub fn set_instance_recommendations( self, input: Option<Vec<InstanceRecommendation>> ) -> Self
An array of objects that describe instance recommendations.
sourcepub fn get_instance_recommendations(
&self
) -> &Option<Vec<InstanceRecommendation>>
pub fn get_instance_recommendations( &self ) -> &Option<Vec<InstanceRecommendation>>
An array of objects that describe instance recommendations.
sourcepub fn errors(self, input: GetRecommendationError) -> Self
pub fn errors(self, input: GetRecommendationError) -> Self
Appends an item to errors
.
To override the contents of this collection use set_errors
.
An array of objects that describe errors of the request.
For example, an error is returned if you request recommendations for an instance of an unsupported instance family.
sourcepub fn set_errors(self, input: Option<Vec<GetRecommendationError>>) -> Self
pub fn set_errors(self, input: Option<Vec<GetRecommendationError>>) -> Self
An array of objects that describe errors of the request.
For example, an error is returned if you request recommendations for an instance of an unsupported instance family.
sourcepub fn get_errors(&self) -> &Option<Vec<GetRecommendationError>>
pub fn get_errors(&self) -> &Option<Vec<GetRecommendationError>>
An array of objects that describe errors of the request.
For example, an error is returned if you request recommendations for an instance of an unsupported instance family.
sourcepub fn build(self) -> GetEc2InstanceRecommendationsOutput
pub fn build(self) -> GetEc2InstanceRecommendationsOutput
Consumes the builder and constructs a GetEc2InstanceRecommendationsOutput
.
Trait Implementations§
source§impl Clone for GetEc2InstanceRecommendationsOutputBuilder
impl Clone for GetEc2InstanceRecommendationsOutputBuilder
source§fn clone(&self) -> GetEc2InstanceRecommendationsOutputBuilder
fn clone(&self) -> GetEc2InstanceRecommendationsOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetEc2InstanceRecommendationsOutputBuilder
impl Default for GetEc2InstanceRecommendationsOutputBuilder
source§fn default() -> GetEc2InstanceRecommendationsOutputBuilder
fn default() -> GetEc2InstanceRecommendationsOutputBuilder
source§impl PartialEq for GetEc2InstanceRecommendationsOutputBuilder
impl PartialEq for GetEc2InstanceRecommendationsOutputBuilder
source§fn eq(&self, other: &GetEc2InstanceRecommendationsOutputBuilder) -> bool
fn eq(&self, other: &GetEc2InstanceRecommendationsOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetEc2InstanceRecommendationsOutputBuilder
Auto Trait Implementations§
impl Freeze for GetEc2InstanceRecommendationsOutputBuilder
impl RefUnwindSafe for GetEc2InstanceRecommendationsOutputBuilder
impl Send for GetEc2InstanceRecommendationsOutputBuilder
impl Sync for GetEc2InstanceRecommendationsOutputBuilder
impl Unpin for GetEc2InstanceRecommendationsOutputBuilder
impl UnwindSafe for GetEc2InstanceRecommendationsOutputBuilder
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