Class Warning
- java.lang.Object
-
- software.amazon.spapi.models.services.v1.Warning
-
public class Warning extends java.lang.Object
Warning returned when the request is successful, but there are important callouts based on which API clients should take defined actions.
-
-
Constructor Summary
Constructors Constructor Description Warning()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Warning
code(java.lang.String code)
Warning
details(java.lang.String details)
boolean
equals(java.lang.Object o)
java.lang.String
getCode()
An warning code that identifies the type of warning that occurred.java.lang.String
getDetails()
Additional details that can help the caller understand or address the warning.java.lang.String
getMessage()
A message that describes the warning condition in a human-readable form.int
hashCode()
Warning
message(java.lang.String message)
void
setCode(java.lang.String code)
void
setDetails(java.lang.String details)
void
setMessage(java.lang.String message)
java.lang.String
toString()
-
-
-
Method Detail
-
code
public Warning code(java.lang.String code)
-
getCode
public java.lang.String getCode()
An warning code that identifies the type of warning that occurred.- Returns:
- code
-
setCode
public void setCode(java.lang.String code)
-
message
public Warning message(java.lang.String message)
-
getMessage
public java.lang.String getMessage()
A message that describes the warning condition in a human-readable form.- Returns:
- message
-
setMessage
public void setMessage(java.lang.String message)
-
details
public Warning details(java.lang.String details)
-
getDetails
public java.lang.String getDetails()
Additional details that can help the caller understand or address the warning.- Returns:
- details
-
setDetails
public void setDetails(java.lang.String details)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-