@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Filter extends Object implements Serializable, Cloneable, StructuredPojo
Describes a filter that returns a more specific list of recommendations.
This filter is used with the GetAutoScalingGroupRecommendations and
GetEC2InstanceRecommendations actions.
| Constructor and Description |
|---|
Filter() |
| Modifier and Type | Method and Description |
|---|---|
Filter |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the filter.
|
List<String> |
getValues()
The value of the filter.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setName(String name)
The name of the filter.
|
void |
setValues(Collection<String> values)
The value of the filter.
|
String |
toString()
Returns a string representation of this object.
|
Filter |
withName(FilterName name)
The name of the filter.
|
Filter |
withName(String name)
The name of the filter.
|
Filter |
withValues(Collection<String> values)
The value of the filter.
|
Filter |
withValues(String... values)
The value of the filter.
|
public void setName(String name)
The name of the filter.
Specify Finding to return recommendations with a specific finding classification (e.g.,
Overprovisioned).
Specify RecommendationSourceType to return recommendations of a specific resource type (e.g.,
AutoScalingGroup).
name - The name of the filter.
Specify Finding to return recommendations with a specific finding classification (e.g.,
Overprovisioned).
Specify RecommendationSourceType to return recommendations of a specific resource type (e.g.,
AutoScalingGroup).
FilterNamepublic String getName()
The name of the filter.
Specify Finding to return recommendations with a specific finding classification (e.g.,
Overprovisioned).
Specify RecommendationSourceType to return recommendations of a specific resource type (e.g.,
AutoScalingGroup).
Specify Finding to return recommendations with a specific finding classification (e.g.,
Overprovisioned).
Specify RecommendationSourceType to return recommendations of a specific resource type
(e.g., AutoScalingGroup).
FilterNamepublic Filter withName(String name)
The name of the filter.
Specify Finding to return recommendations with a specific finding classification (e.g.,
Overprovisioned).
Specify RecommendationSourceType to return recommendations of a specific resource type (e.g.,
AutoScalingGroup).
name - The name of the filter.
Specify Finding to return recommendations with a specific finding classification (e.g.,
Overprovisioned).
Specify RecommendationSourceType to return recommendations of a specific resource type (e.g.,
AutoScalingGroup).
FilterNamepublic Filter withName(FilterName name)
The name of the filter.
Specify Finding to return recommendations with a specific finding classification (e.g.,
Overprovisioned).
Specify RecommendationSourceType to return recommendations of a specific resource type (e.g.,
AutoScalingGroup).
name - The name of the filter.
Specify Finding to return recommendations with a specific finding classification (e.g.,
Overprovisioned).
Specify RecommendationSourceType to return recommendations of a specific resource type (e.g.,
AutoScalingGroup).
FilterNamepublic List<String> getValues()
The value of the filter.
The valid values for this parameter are as follows, depending on what you specify for the name
parameter and the resource type that you wish to filter results for:
Specify Optimized or NotOptimized if you specified the name parameter as
Finding and you want to filter results for Auto Scaling groups.
Specify Underprovisioned, Overprovisioned, or Optimized if you specified
the name parameter as Finding and you want to filter results for EC2 instances.
Specify Ec2Instance or AutoScalingGroup if you specified the name
parameter as RecommendationSourceType.
The valid values for this parameter are as follows, depending on what you specify for the
name parameter and the resource type that you wish to filter results for:
Specify Optimized or NotOptimized if you specified the name
parameter as Finding and you want to filter results for Auto Scaling groups.
Specify Underprovisioned, Overprovisioned, or Optimized if you
specified the name parameter as Finding and you want to filter results for EC2
instances.
Specify Ec2Instance or AutoScalingGroup if you specified the name
parameter as RecommendationSourceType.
public void setValues(Collection<String> values)
The value of the filter.
The valid values for this parameter are as follows, depending on what you specify for the name
parameter and the resource type that you wish to filter results for:
Specify Optimized or NotOptimized if you specified the name parameter as
Finding and you want to filter results for Auto Scaling groups.
Specify Underprovisioned, Overprovisioned, or Optimized if you specified
the name parameter as Finding and you want to filter results for EC2 instances.
Specify Ec2Instance or AutoScalingGroup if you specified the name
parameter as RecommendationSourceType.
values - The value of the filter.
The valid values for this parameter are as follows, depending on what you specify for the
name parameter and the resource type that you wish to filter results for:
Specify Optimized or NotOptimized if you specified the name
parameter as Finding and you want to filter results for Auto Scaling groups.
Specify Underprovisioned, Overprovisioned, or Optimized if you
specified the name parameter as Finding and you want to filter results for EC2
instances.
Specify Ec2Instance or AutoScalingGroup if you specified the name
parameter as RecommendationSourceType.
public Filter withValues(String... values)
The value of the filter.
The valid values for this parameter are as follows, depending on what you specify for the name
parameter and the resource type that you wish to filter results for:
Specify Optimized or NotOptimized if you specified the name parameter as
Finding and you want to filter results for Auto Scaling groups.
Specify Underprovisioned, Overprovisioned, or Optimized if you specified
the name parameter as Finding and you want to filter results for EC2 instances.
Specify Ec2Instance or AutoScalingGroup if you specified the name
parameter as RecommendationSourceType.
NOTE: This method appends the values to the existing list (if any). Use
setValues(java.util.Collection) or withValues(java.util.Collection) if you want to override the
existing values.
values - The value of the filter.
The valid values for this parameter are as follows, depending on what you specify for the
name parameter and the resource type that you wish to filter results for:
Specify Optimized or NotOptimized if you specified the name
parameter as Finding and you want to filter results for Auto Scaling groups.
Specify Underprovisioned, Overprovisioned, or Optimized if you
specified the name parameter as Finding and you want to filter results for EC2
instances.
Specify Ec2Instance or AutoScalingGroup if you specified the name
parameter as RecommendationSourceType.
public Filter withValues(Collection<String> values)
The value of the filter.
The valid values for this parameter are as follows, depending on what you specify for the name
parameter and the resource type that you wish to filter results for:
Specify Optimized or NotOptimized if you specified the name parameter as
Finding and you want to filter results for Auto Scaling groups.
Specify Underprovisioned, Overprovisioned, or Optimized if you specified
the name parameter as Finding and you want to filter results for EC2 instances.
Specify Ec2Instance or AutoScalingGroup if you specified the name
parameter as RecommendationSourceType.
values - The value of the filter.
The valid values for this parameter are as follows, depending on what you specify for the
name parameter and the resource type that you wish to filter results for:
Specify Optimized or NotOptimized if you specified the name
parameter as Finding and you want to filter results for Auto Scaling groups.
Specify Underprovisioned, Overprovisioned, or Optimized if you
specified the name parameter as Finding and you want to filter results for EC2
instances.
Specify Ec2Instance or AutoScalingGroup if you specified the name
parameter as RecommendationSourceType.
public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2021. All rights reserved.