Class EffectivePreferredResource
- java.lang.Object
-
- software.amazon.awssdk.services.computeoptimizer.model.EffectivePreferredResource
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EffectivePreferredResource.Builder,EffectivePreferredResource>
@Generated("software.amazon.awssdk:codegen") public final class EffectivePreferredResource extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EffectivePreferredResource.Builder,EffectivePreferredResource>
Describes the effective preferred resources that Compute Optimizer considers as rightsizing recommendation candidates.
Compute Optimizer only supports Amazon EC2 instance types.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEffectivePreferredResource.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EffectivePreferredResource.Builderbuilder()List<String>effectiveIncludeList()The expanded version of your preferred resource's include list.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)List<String>excludeList()The list of preferred resources values that you want excluded from rightsizing recommendation candidates.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasEffectiveIncludeList()For responses, this returns true if the service returned a value for the EffectiveIncludeList property.booleanhasExcludeList()For responses, this returns true if the service returned a value for the ExcludeList property.inthashCode()booleanhasIncludeList()For responses, this returns true if the service returned a value for the IncludeList property.List<String>includeList()The list of preferred resource values that you want considered as rightsizing recommendation candidates.PreferredResourceNamename()The name of the preferred resource list.StringnameAsString()The name of the preferred resource list.List<SdkField<?>>sdkFields()static Class<? extends EffectivePreferredResource.Builder>serializableBuilderClass()EffectivePreferredResource.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
name
public final PreferredResourceName name()
The name of the preferred resource list.
If the service returns an enum value that is not available in the current SDK version,
namewill returnPreferredResourceName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnameAsString().- Returns:
- The name of the preferred resource list.
- See Also:
PreferredResourceName
-
nameAsString
public final String nameAsString()
The name of the preferred resource list.
If the service returns an enum value that is not available in the current SDK version,
namewill returnPreferredResourceName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnameAsString().- Returns:
- The name of the preferred resource list.
- See Also:
PreferredResourceName
-
hasIncludeList
public final boolean hasIncludeList()
For responses, this returns true if the service returned a value for the IncludeList property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
includeList
public final List<String> includeList()
The list of preferred resource values that you want considered as rightsizing recommendation candidates.
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
hasIncludeList()method.- Returns:
- The list of preferred resource values that you want considered as rightsizing recommendation candidates.
-
hasEffectiveIncludeList
public final boolean hasEffectiveIncludeList()
For responses, this returns true if the service returned a value for the EffectiveIncludeList property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
effectiveIncludeList
public final List<String> effectiveIncludeList()
The expanded version of your preferred resource's include list.
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
hasEffectiveIncludeList()method.- Returns:
- The expanded version of your preferred resource's include list.
-
hasExcludeList
public final boolean hasExcludeList()
For responses, this returns true if the service returned a value for the ExcludeList property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
excludeList
public final List<String> excludeList()
The list of preferred resources values that you want excluded from rightsizing recommendation candidates.
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
hasExcludeList()method.- Returns:
- The list of preferred resources values that you want excluded from rightsizing recommendation candidates.
-
toBuilder
public EffectivePreferredResource.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<EffectivePreferredResource.Builder,EffectivePreferredResource>
-
builder
public static EffectivePreferredResource.Builder builder()
-
serializableBuilderClass
public static Class<? extends EffectivePreferredResource.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-