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.impl StructuralPartialEq for GetEc2InstanceRecommendationsOutput
Auto Trait Implementations§
impl Freeze for GetEc2InstanceRecommendationsOutput
impl RefUnwindSafe for GetEc2InstanceRecommendationsOutput
impl Send for GetEc2InstanceRecommendationsOutput
impl Sync for GetEc2InstanceRecommendationsOutput
impl Unpin for GetEc2InstanceRecommendationsOutput
impl UnwindSafe for GetEc2InstanceRecommendationsOutput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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