public class Error extends Object
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="Type">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="Receiver"/>
<enumeration value="Sender"/>
</restriction>
</simpleType>
</element>
<element name="Code" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="Message" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="Detail">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<any/>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
</sequence>
</restriction>
</complexContent>
</complexType>
Generated by AWS Code Generator
Wed Feb 18 13:28:59 PST 2009| Modifier and Type | Class and Description |
|---|---|
static class |
Error.Detail
Java class for anonymous complex type.
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
code |
protected Error.Detail |
detail |
protected String |
message |
protected String |
type |
| Constructor and Description |
|---|
Error()
Default constructor
|
Error(String type,
String code,
String message,
Error.Detail detail)
Value constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCode()
Gets the value of the code property.
|
Error.Detail |
getDetail()
Gets the value of the detail property.
|
String |
getMessage()
Gets the value of the message property.
|
String |
getType()
Gets the value of the type property.
|
boolean |
isSetCode() |
boolean |
isSetDetail() |
boolean |
isSetMessage() |
boolean |
isSetType() |
void |
setCode(String value)
Sets the value of the code property.
|
void |
setDetail(Error.Detail value)
Sets the value of the detail property.
|
void |
setMessage(String value)
Sets the value of the message property.
|
void |
setType(String value)
Sets the value of the type property.
|
protected String |
toJSONFragment()
JSON fragment representation of this object
|
protected String |
toXMLFragment()
XML fragment representation of this object
|
Error |
withCode(String value)
Sets the value of the Code property.
|
Error |
withDetail(Error.Detail value)
Sets the value of the Detail property.
|
Error |
withMessage(String value)
Sets the value of the Message property.
|
Error |
withType(String value)
Sets the value of the Type property.
|
protected String type
protected String code
protected String message
protected Error.Detail detail
public Error()
public Error(String type, String code, String message, Error.Detail detail)
public String getType()
Stringpublic void setType(String value)
value - allowed object is
Stringpublic boolean isSetType()
public String getCode()
Stringpublic void setCode(String value)
value - allowed object is
Stringpublic boolean isSetCode()
public String getMessage()
Stringpublic void setMessage(String value)
value - allowed object is
Stringpublic boolean isSetMessage()
public Error.Detail getDetail()
Error.Detailpublic void setDetail(Error.Detail value)
value - allowed object is
Error.Detailpublic boolean isSetDetail()
public Error withType(String value)
value - public Error withCode(String value)
value - public Error withMessage(String value)
value - public Error withDetail(Error.Detail value)
value - protected String toXMLFragment()
protected String toJSONFragment()
Copyright © 2020. All rights reserved.