@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetRecommendationError extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
GetRecommendationError() |
Modifier and Type | Method and Description |
---|---|
GetRecommendationError |
clone() |
boolean |
equals(Object obj) |
String |
getCode()
The error code.
|
String |
getIdentifier()
The ID of the error.
|
String |
getMessage()
The message, or reason, for the error.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCode(String code)
The error code.
|
void |
setIdentifier(String identifier)
The ID of the error.
|
void |
setMessage(String message)
The message, or reason, for the error.
|
String |
toString()
Returns a string representation of this object.
|
GetRecommendationError |
withCode(String code)
The error code.
|
GetRecommendationError |
withIdentifier(String identifier)
The ID of the error.
|
GetRecommendationError |
withMessage(String message)
The message, or reason, for the error.
|
public void setIdentifier(String identifier)
The ID of the error.
identifier
- The ID of the error.public String getIdentifier()
The ID of the error.
public GetRecommendationError withIdentifier(String identifier)
The ID of the error.
identifier
- The ID of the error.public void setCode(String code)
The error code.
code
- The error code.public String getCode()
The error code.
public GetRecommendationError withCode(String code)
The error code.
code
- The error code.public void setMessage(String message)
The message, or reason, for the error.
message
- The message, or reason, for the error.public String getMessage()
The message, or reason, for the error.
public GetRecommendationError withMessage(String message)
The message, or reason, for the error.
message
- The message, or reason, for the error.public String toString()
toString
in class Object
Object.toString()
public GetRecommendationError clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.