Struct aws_sdk_computeoptimizer::operation::get_recommendation_preferences::builders::GetRecommendationPreferencesInputBuilder
source · #[non_exhaustive]pub struct GetRecommendationPreferencesInputBuilder { /* private fields */ }
Expand description
A builder for GetRecommendationPreferencesInput
.
Implementations§
source§impl GetRecommendationPreferencesInputBuilder
impl GetRecommendationPreferencesInputBuilder
sourcepub fn resource_type(self, input: ResourceType) -> Self
pub fn resource_type(self, input: ResourceType) -> Self
The target resource type of the recommendation preference for which to return preferences.
The Ec2Instance
option encompasses standalone instances and instances that are part of Auto Scaling groups. The AutoScalingGroup
option encompasses only instances that are part of an Auto Scaling group.
The valid values for this parameter are Ec2Instance
and AutoScalingGroup
.
sourcepub fn set_resource_type(self, input: Option<ResourceType>) -> Self
pub fn set_resource_type(self, input: Option<ResourceType>) -> Self
The target resource type of the recommendation preference for which to return preferences.
The Ec2Instance
option encompasses standalone instances and instances that are part of Auto Scaling groups. The AutoScalingGroup
option encompasses only instances that are part of an Auto Scaling group.
The valid values for this parameter are Ec2Instance
and AutoScalingGroup
.
sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
The target resource type of the recommendation preference for which to return preferences.
The Ec2Instance
option encompasses standalone instances and instances that are part of Auto Scaling groups. The AutoScalingGroup
option encompasses only instances that are part of an Auto Scaling group.
The valid values for this parameter are Ec2Instance
and AutoScalingGroup
.
sourcepub fn scope(self, input: Scope) -> Self
pub fn scope(self, input: Scope) -> Self
An object that describes the scope of the recommendation preference to return.
You can return recommendation preferences that are created at the organization level (for management accounts of an organization only), account level, and resource level. For more information, see Activating enhanced infrastructure metrics in the Compute Optimizer User Guide.
sourcepub fn set_scope(self, input: Option<Scope>) -> Self
pub fn set_scope(self, input: Option<Scope>) -> Self
An object that describes the scope of the recommendation preference to return.
You can return recommendation preferences that are created at the organization level (for management accounts of an organization only), account level, and resource level. For more information, see Activating enhanced infrastructure metrics in the Compute Optimizer User Guide.
sourcepub fn get_scope(&self) -> &Option<Scope>
pub fn get_scope(&self) -> &Option<Scope>
An object that describes the scope of the recommendation preference to return.
You can return recommendation preferences that are created at the organization level (for management accounts of an organization only), account level, and resource level. For more information, see Activating enhanced infrastructure metrics in the Compute Optimizer User Guide.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
The token to advance to the next page of recommendation preferences.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
The token to advance to the next page of recommendation preferences.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
The token to advance to the next page of recommendation preferences.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of recommendation preferences to return with a single request.
To retrieve the remaining results, make another request with the returned nextToken
value.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of recommendation preferences to return with a single request.
To retrieve the remaining results, make another request with the returned nextToken
value.
sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
The maximum number of recommendation preferences to return with a single request.
To retrieve the remaining results, make another request with the returned nextToken
value.
sourcepub fn build(self) -> Result<GetRecommendationPreferencesInput, BuildError>
pub fn build(self) -> Result<GetRecommendationPreferencesInput, BuildError>
Consumes the builder and constructs a GetRecommendationPreferencesInput
.
source§impl GetRecommendationPreferencesInputBuilder
impl GetRecommendationPreferencesInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GetRecommendationPreferencesOutput, SdkError<GetRecommendationPreferencesError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GetRecommendationPreferencesOutput, SdkError<GetRecommendationPreferencesError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetRecommendationPreferencesInputBuilder
impl Clone for GetRecommendationPreferencesInputBuilder
source§fn clone(&self) -> GetRecommendationPreferencesInputBuilder
fn clone(&self) -> GetRecommendationPreferencesInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetRecommendationPreferencesInputBuilder
impl Default for GetRecommendationPreferencesInputBuilder
source§fn default() -> GetRecommendationPreferencesInputBuilder
fn default() -> GetRecommendationPreferencesInputBuilder
source§impl PartialEq for GetRecommendationPreferencesInputBuilder
impl PartialEq for GetRecommendationPreferencesInputBuilder
source§fn eq(&self, other: &GetRecommendationPreferencesInputBuilder) -> bool
fn eq(&self, other: &GetRecommendationPreferencesInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.