@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ECSServiceRecommendationFilter extends Object implements Serializable, Cloneable, StructuredPojo
Describes a filter that returns a more specific list of Amazon ECS service recommendations. Use this filter with the GetECSServiceRecommendations action.
| Constructor and Description |
|---|
ECSServiceRecommendationFilter() |
| Modifier and Type | Method and Description |
|---|---|
ECSServiceRecommendationFilter |
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.
|
ECSServiceRecommendationFilter |
withName(ECSServiceRecommendationFilterName name)
The name of the filter.
|
ECSServiceRecommendationFilter |
withName(String name)
The name of the filter.
|
ECSServiceRecommendationFilter |
withValues(Collection<String> values)
The value of the filter.
|
ECSServiceRecommendationFilter |
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.
Specify FindingReasonCode to return recommendations with a specific finding reason code.
name - The name of the filter.
Specify Finding to return recommendations with a specific finding classification.
Specify FindingReasonCode to return recommendations with a specific finding reason code.
ECSServiceRecommendationFilterNamepublic String getName()
The name of the filter.
Specify Finding to return recommendations with a specific finding classification.
Specify FindingReasonCode to return recommendations with a specific finding reason code.
Specify Finding to return recommendations with a specific finding classification.
Specify FindingReasonCode to return recommendations with a specific finding reason code.
ECSServiceRecommendationFilterNamepublic ECSServiceRecommendationFilter withName(String name)
The name of the filter.
Specify Finding to return recommendations with a specific finding classification.
Specify FindingReasonCode to return recommendations with a specific finding reason code.
name - The name of the filter.
Specify Finding to return recommendations with a specific finding classification.
Specify FindingReasonCode to return recommendations with a specific finding reason code.
ECSServiceRecommendationFilterNamepublic ECSServiceRecommendationFilter withName(ECSServiceRecommendationFilterName name)
The name of the filter.
Specify Finding to return recommendations with a specific finding classification.
Specify FindingReasonCode to return recommendations with a specific finding reason code.
name - The name of the filter.
Specify Finding to return recommendations with a specific finding classification.
Specify FindingReasonCode to return recommendations with a specific finding reason code.
ECSServiceRecommendationFilterNamepublic List<String> getValues()
The value of the filter.
The valid values for this parameter are as follows:
If you specify the name parameter as Finding, specify Optimized,
NotOptimized, or Unavailable.
If you specify the name parameter as FindingReasonCode, specify
CPUUnderprovisioned, CPUOverprovisioned, MemoryUnderprovisioned, or
MemoryOverprovisioned.
The valid values for this parameter are as follows:
If you specify the name parameter as Finding, specify Optimized,
NotOptimized, or Unavailable.
If you specify the name parameter as FindingReasonCode, specify
CPUUnderprovisioned, CPUOverprovisioned, MemoryUnderprovisioned,
or MemoryOverprovisioned.
public void setValues(Collection<String> values)
The value of the filter.
The valid values for this parameter are as follows:
If you specify the name parameter as Finding, specify Optimized,
NotOptimized, or Unavailable.
If you specify the name parameter as FindingReasonCode, specify
CPUUnderprovisioned, CPUOverprovisioned, MemoryUnderprovisioned, or
MemoryOverprovisioned.
values - The value of the filter.
The valid values for this parameter are as follows:
If you specify the name parameter as Finding, specify Optimized,
NotOptimized, or Unavailable.
If you specify the name parameter as FindingReasonCode, specify
CPUUnderprovisioned, CPUOverprovisioned, MemoryUnderprovisioned, or
MemoryOverprovisioned.
public ECSServiceRecommendationFilter withValues(String... values)
The value of the filter.
The valid values for this parameter are as follows:
If you specify the name parameter as Finding, specify Optimized,
NotOptimized, or Unavailable.
If you specify the name parameter as FindingReasonCode, specify
CPUUnderprovisioned, CPUOverprovisioned, MemoryUnderprovisioned, or
MemoryOverprovisioned.
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:
If you specify the name parameter as Finding, specify Optimized,
NotOptimized, or Unavailable.
If you specify the name parameter as FindingReasonCode, specify
CPUUnderprovisioned, CPUOverprovisioned, MemoryUnderprovisioned, or
MemoryOverprovisioned.
public ECSServiceRecommendationFilter withValues(Collection<String> values)
The value of the filter.
The valid values for this parameter are as follows:
If you specify the name parameter as Finding, specify Optimized,
NotOptimized, or Unavailable.
If you specify the name parameter as FindingReasonCode, specify
CPUUnderprovisioned, CPUOverprovisioned, MemoryUnderprovisioned, or
MemoryOverprovisioned.
values - The value of the filter.
The valid values for this parameter are as follows:
If you specify the name parameter as Finding, specify Optimized,
NotOptimized, or Unavailable.
If you specify the name parameter as FindingReasonCode, specify
CPUUnderprovisioned, CPUOverprovisioned, MemoryUnderprovisioned, or
MemoryOverprovisioned.
public String toString()
toString in class ObjectObject.toString()public ECSServiceRecommendationFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2023. All rights reserved.