Class GetRecommendationError
- java.lang.Object
-
- software.amazon.awssdk.services.computeoptimizer.model.GetRecommendationError
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<GetRecommendationError.Builder,GetRecommendationError>
@Generated("software.amazon.awssdk:codegen") public final class GetRecommendationError extends Object implements SdkPojo, Serializable, ToCopyableBuilder<GetRecommendationError.Builder,GetRecommendationError>
Describes an error experienced when getting recommendations.
For example, an error is returned if you request recommendations for an unsupported Auto Scaling group, or if you request recommendations for an instance of an unsupported instance family.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetRecommendationError.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetRecommendationError.Builderbuilder()Stringcode()The error code.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringidentifier()The ID of the error.Stringmessage()The message, or reason, for the error.List<SdkField<?>>sdkFields()static Class<? extends GetRecommendationError.Builder>serializableBuilderClass()GetRecommendationError.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
-
identifier
public final String identifier()
The ID of the error.
- Returns:
- The ID of the error.
-
code
public final String code()
The error code.
- Returns:
- The error code.
-
message
public final String message()
The message, or reason, for the error.
- Returns:
- The message, or reason, for the error.
-
toBuilder
public GetRecommendationError.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetRecommendationError.Builder,GetRecommendationError>
-
builder
public static GetRecommendationError.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetRecommendationError.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.
-
-