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 ==
.