Struct aws_sdk_computeoptimizer::operation::delete_recommendation_preferences::builders::DeleteRecommendationPreferencesInputBuilder
source · #[non_exhaustive]pub struct DeleteRecommendationPreferencesInputBuilder { /* private fields */ }
Expand description
A builder for DeleteRecommendationPreferencesInput
.
Implementations§
source§impl DeleteRecommendationPreferencesInputBuilder
impl DeleteRecommendationPreferencesInputBuilder
sourcepub fn resource_type(self, input: ResourceType) -> Self
pub fn resource_type(self, input: ResourceType) -> Self
The target resource type of the recommendation preference to delete.
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 to delete.
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 to delete.
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 delete.
You can delete 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 delete.
You can delete 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 delete.
You can delete 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 recommendation_preference_names(
self,
input: RecommendationPreferenceName
) -> Self
pub fn recommendation_preference_names( self, input: RecommendationPreferenceName ) -> Self
Appends an item to recommendation_preference_names
.
To override the contents of this collection use set_recommendation_preference_names
.
The name of the recommendation preference to delete.
sourcepub fn set_recommendation_preference_names(
self,
input: Option<Vec<RecommendationPreferenceName>>
) -> Self
pub fn set_recommendation_preference_names( self, input: Option<Vec<RecommendationPreferenceName>> ) -> Self
The name of the recommendation preference to delete.
sourcepub fn get_recommendation_preference_names(
&self
) -> &Option<Vec<RecommendationPreferenceName>>
pub fn get_recommendation_preference_names( &self ) -> &Option<Vec<RecommendationPreferenceName>>
The name of the recommendation preference to delete.
sourcepub fn build(self) -> Result<DeleteRecommendationPreferencesInput, BuildError>
pub fn build(self) -> Result<DeleteRecommendationPreferencesInput, BuildError>
Consumes the builder and constructs a DeleteRecommendationPreferencesInput
.
source§impl DeleteRecommendationPreferencesInputBuilder
impl DeleteRecommendationPreferencesInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DeleteRecommendationPreferencesOutput, SdkError<DeleteRecommendationPreferencesError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DeleteRecommendationPreferencesOutput, SdkError<DeleteRecommendationPreferencesError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DeleteRecommendationPreferencesInputBuilder
impl Clone for DeleteRecommendationPreferencesInputBuilder
source§fn clone(&self) -> DeleteRecommendationPreferencesInputBuilder
fn clone(&self) -> DeleteRecommendationPreferencesInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DeleteRecommendationPreferencesInputBuilder
impl Default for DeleteRecommendationPreferencesInputBuilder
source§fn default() -> DeleteRecommendationPreferencesInputBuilder
fn default() -> DeleteRecommendationPreferencesInputBuilder
source§impl PartialEq for DeleteRecommendationPreferencesInputBuilder
impl PartialEq for DeleteRecommendationPreferencesInputBuilder
source§fn eq(&self, other: &DeleteRecommendationPreferencesInputBuilder) -> bool
fn eq(&self, other: &DeleteRecommendationPreferencesInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.