Struct aws_sdk_computeoptimizer::operation::get_ec2_instance_recommendations::GetEc2InstanceRecommendationsOutput
source · #[non_exhaustive]pub struct GetEc2InstanceRecommendationsOutput {
pub next_token: Option<String>,
pub instance_recommendations: Option<Vec<InstanceRecommendation>>,
pub errors: Option<Vec<GetRecommendationError>>,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.next_token: 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.
instance_recommendations: Option<Vec<InstanceRecommendation>>
An array of objects that describe instance recommendations.
errors: 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.
Implementations§
source§impl GetEc2InstanceRecommendationsOutput
impl GetEc2InstanceRecommendationsOutput
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
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) -> &[InstanceRecommendation]
pub fn instance_recommendations(&self) -> &[InstanceRecommendation]
An array of objects that describe instance recommendations.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .instance_recommendations.is_none()
.
sourcepub fn errors(&self) -> &[GetRecommendationError]
pub fn errors(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .errors.is_none()
.
source§impl GetEc2InstanceRecommendationsOutput
impl GetEc2InstanceRecommendationsOutput
sourcepub fn builder() -> GetEc2InstanceRecommendationsOutputBuilder
pub fn builder() -> GetEc2InstanceRecommendationsOutputBuilder
Creates a new builder-style object to manufacture GetEc2InstanceRecommendationsOutput
.
Trait Implementations§
source§impl Clone for GetEc2InstanceRecommendationsOutput
impl Clone for GetEc2InstanceRecommendationsOutput
source§fn clone(&self) -> GetEc2InstanceRecommendationsOutput
fn clone(&self) -> GetEc2InstanceRecommendationsOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for GetEc2InstanceRecommendationsOutput
impl PartialEq for GetEc2InstanceRecommendationsOutput
source§fn eq(&self, other: &GetEc2InstanceRecommendationsOutput) -> bool
fn eq(&self, other: &GetEc2InstanceRecommendationsOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetEc2InstanceRecommendationsOutput
impl RequestId for GetEc2InstanceRecommendationsOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.