@Generated(value="software.amazon.awssdk:codegen") public final class ECSServiceRecommendationOption extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ECSServiceRecommendationOption.Builder,ECSServiceRecommendationOption>
Describes the recommendation options for an Amazon ECS service.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ECSServiceRecommendationOption.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ECSServiceRecommendationOption.Builder |
builder() |
List<ContainerRecommendation> |
containerRecommendations()
The CPU and memory size recommendations for the containers within the task of your Amazon ECS service.
|
Integer |
cpu()
The CPU size of the Amazon ECS service recommendation option.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasContainerRecommendations()
For responses, this returns true if the service returned a value for the ContainerRecommendations property.
|
int |
hashCode() |
boolean |
hasProjectedUtilizationMetrics()
For responses, this returns true if the service returned a value for the ProjectedUtilizationMetrics property.
|
Integer |
memory()
The memory size of the Amazon ECS service recommendation option.
|
List<ECSServiceProjectedUtilizationMetric> |
projectedUtilizationMetrics()
An array of objects that describe the projected utilization metrics of the Amazon ECS service recommendation
option.
|
SavingsOpportunity |
savingsOpportunity()
Returns the value of the SavingsOpportunity property for this object.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ECSServiceRecommendationOption.Builder> |
serializableBuilderClass() |
ECSServiceRecommendationOption.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Integer memory()
The memory size of the Amazon ECS service recommendation option.
public final Integer cpu()
The CPU size of the Amazon ECS service recommendation option.
public final SavingsOpportunity savingsOpportunity()
public final boolean hasProjectedUtilizationMetrics()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<ECSServiceProjectedUtilizationMetric> projectedUtilizationMetrics()
An array of objects that describe the projected utilization metrics of the Amazon ECS service recommendation option.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasProjectedUtilizationMetrics() method.
public final boolean hasContainerRecommendations()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<ContainerRecommendation> containerRecommendations()
The CPU and memory size recommendations for the containers within the task of your Amazon ECS service.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasContainerRecommendations() method.
public ECSServiceRecommendationOption.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ECSServiceRecommendationOption.Builder,ECSServiceRecommendationOption>public static ECSServiceRecommendationOption.Builder builder()
public static Class<? extends ECSServiceRecommendationOption.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.