public class ErrorResponse 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 ref="{http://mws.amazonaws.com/doc/2009-01-01/}Error" maxOccurs="unbounded"/>
<element name="RequestID" type="{http://www.w3.org/2001/XMLSchema}string"/>
</sequence>
</restriction>
</complexContent>
</complexType>
Generated by AWS Code Generator
Wed Feb 18 13:28:59 PST 2009| Modifier and Type | Field and Description |
|---|---|
protected List<Error> |
error |
protected String |
requestId |
| Constructor and Description |
|---|
ErrorResponse()
Default constructor
|
ErrorResponse(List<Error> error,
String requestId)
Value constructor
|
| Modifier and Type | Method and Description |
|---|---|
List<Error> |
getError()
Gets the value of the error property.
|
String |
getRequestId()
Gets the value of the requestId property.
|
ResponseHeaderMetadata |
getResponseHeaderMetadata() |
boolean |
isSetError() |
boolean |
isSetRequestId() |
boolean |
isSetResponseHeaderMetadata() |
void |
setError(List<Error> error)
Sets the value of the error property.
|
void |
setRequestId(String value)
Sets the value of the requestId property.
|
void |
setResponseHeaderMetadata(ResponseHeaderMetadata responseHeaderMetadata) |
String |
toJSON()
JSON string representation of this object
|
String |
toXML()
XML string representation of this object
|
void |
unsetError() |
ErrorResponse |
withError(Error... values)
Sets the value of the Error property.
|
ErrorResponse |
withRequestId(String value)
Sets the value of the RequestId property.
|
public List<Error> getError()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the error property.
For example, to add a new item, do as follows:
getError().add(newItem);
Objects of the following type(s) are allowed in the list
Error
public boolean isSetError()
public void unsetError()
public String getRequestId()
Stringpublic void setRequestId(String value)
value - allowed object is
Stringpublic boolean isSetRequestId()
public ErrorResponse withError(Error... values)
values - public ErrorResponse withRequestId(String value)
value - public void setError(List<Error> error)
error - allowed object is
Errorpublic boolean isSetResponseHeaderMetadata()
public void setResponseHeaderMetadata(ResponseHeaderMetadata responseHeaderMetadata)
public ResponseHeaderMetadata getResponseHeaderMetadata()
public String toXML()
public String toJSON()
Copyright © 2020. All rights reserved.