/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.computeoptimizer.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DeleteRecommendationPreferencesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* 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
.
*
* 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. *
*/ private Scope scope; /** ** The name of the recommendation preference to delete. *
*/ private java.util.List* 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
.
*
* 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
.
*
* 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
.
*
* 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
.
*
* 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
.
*
* 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
.
*
* 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
.
*
* 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
.
*
* 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. *
* * @param 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. */ public void setScope(Scope scope) { this.scope = 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. *
* * @return 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. */ public Scope getScope() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteRecommendationPreferencesRequest withScope(Scope scope) { setScope(scope); return this; } /** *
* The name of the recommendation preference to delete. *
* * @return The name of the recommendation preference to delete. * @see RecommendationPreferenceName */ public java.util.List* The name of the recommendation preference to delete. *
* * @param recommendationPreferenceNames * The name of the recommendation preference to delete. * @see RecommendationPreferenceName */ public void setRecommendationPreferenceNames(java.util.Collection* The name of the recommendation preference to delete. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRecommendationPreferenceNames(java.util.Collection)} or * {@link #withRecommendationPreferenceNames(java.util.Collection)} if you want to override the existing values. *
* * @param recommendationPreferenceNames * The name of the recommendation preference to delete. * @return Returns a reference to this object so that method calls can be chained together. * @see RecommendationPreferenceName */ public DeleteRecommendationPreferencesRequest withRecommendationPreferenceNames(String... recommendationPreferenceNames) { if (this.recommendationPreferenceNames == null) { setRecommendationPreferenceNames(new java.util.ArrayList* The name of the recommendation preference to delete. *
* * @param recommendationPreferenceNames * The name of the recommendation preference to delete. * @return Returns a reference to this object so that method calls can be chained together. * @see RecommendationPreferenceName */ public DeleteRecommendationPreferencesRequest withRecommendationPreferenceNames(java.util.Collection* The name of the recommendation preference to delete. *
* * @param recommendationPreferenceNames * The name of the recommendation preference to delete. * @return Returns a reference to this object so that method calls can be chained together. * @see RecommendationPreferenceName */ public DeleteRecommendationPreferencesRequest withRecommendationPreferenceNames(RecommendationPreferenceName... recommendationPreferenceNames) { java.util.ArrayList