@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetGatewayResponseResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
A gateway response of a given response type and status code, with optional response parameters and mapping templates.
Constructor and Description |
---|
GetGatewayResponseResult() |
Modifier and Type | Method and Description |
---|---|
GetGatewayResponseResult |
addResponseParametersEntry(String key,
String value)
Add a single ResponseParameters entry
|
GetGatewayResponseResult |
addResponseTemplatesEntry(String key,
String value)
Add a single ResponseTemplates entry
|
GetGatewayResponseResult |
clearResponseParametersEntries()
Removes all the entries added into ResponseParameters.
|
GetGatewayResponseResult |
clearResponseTemplatesEntries()
Removes all the entries added into ResponseTemplates.
|
GetGatewayResponseResult |
clone() |
boolean |
equals(Object obj) |
Boolean |
getDefaultResponse()
A Boolean flag to indicate whether this GatewayResponse is the default gateway response (
true ) or
not (false ). |
Map<String,String> |
getResponseParameters()
Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of
key-value pairs.
|
Map<String,String> |
getResponseTemplates()
Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
|
String |
getResponseType()
The response type of the associated GatewayResponse.
|
String |
getStatusCode()
The HTTP status code for this GatewayResponse.
|
int |
hashCode() |
Boolean |
isDefaultResponse()
A Boolean flag to indicate whether this GatewayResponse is the default gateway response (
true ) or
not (false ). |
void |
setDefaultResponse(Boolean defaultResponse)
A Boolean flag to indicate whether this GatewayResponse is the default gateway response (
true ) or
not (false ). |
void |
setResponseParameters(Map<String,String> responseParameters)
Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of
key-value pairs.
|
void |
setResponseTemplates(Map<String,String> responseTemplates)
Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
|
void |
setResponseType(GatewayResponseType responseType)
The response type of the associated GatewayResponse.
|
void |
setResponseType(String responseType)
The response type of the associated GatewayResponse.
|
void |
setStatusCode(String statusCode)
The HTTP status code for this GatewayResponse.
|
String |
toString()
Returns a string representation of this object.
|
GetGatewayResponseResult |
withDefaultResponse(Boolean defaultResponse)
A Boolean flag to indicate whether this GatewayResponse is the default gateway response (
true ) or
not (false ). |
GetGatewayResponseResult |
withResponseParameters(Map<String,String> responseParameters)
Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of
key-value pairs.
|
GetGatewayResponseResult |
withResponseTemplates(Map<String,String> responseTemplates)
Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
|
GetGatewayResponseResult |
withResponseType(GatewayResponseType responseType)
The response type of the associated GatewayResponse.
|
GetGatewayResponseResult |
withResponseType(String responseType)
The response type of the associated GatewayResponse.
|
GetGatewayResponseResult |
withStatusCode(String statusCode)
The HTTP status code for this GatewayResponse.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setResponseType(String responseType)
The response type of the associated GatewayResponse.
responseType
- The response type of the associated GatewayResponse.GatewayResponseType
public String getResponseType()
The response type of the associated GatewayResponse.
GatewayResponseType
public GetGatewayResponseResult withResponseType(String responseType)
The response type of the associated GatewayResponse.
responseType
- The response type of the associated GatewayResponse.GatewayResponseType
public void setResponseType(GatewayResponseType responseType)
The response type of the associated GatewayResponse.
responseType
- The response type of the associated GatewayResponse.GatewayResponseType
public GetGatewayResponseResult withResponseType(GatewayResponseType responseType)
The response type of the associated GatewayResponse.
responseType
- The response type of the associated GatewayResponse.GatewayResponseType
public void setStatusCode(String statusCode)
The HTTP status code for this GatewayResponse.
statusCode
- The HTTP status code for this GatewayResponse.public String getStatusCode()
The HTTP status code for this GatewayResponse.
public GetGatewayResponseResult withStatusCode(String statusCode)
The HTTP status code for this GatewayResponse.
statusCode
- The HTTP status code for this GatewayResponse.public Map<String,String> getResponseParameters()
Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.
public void setResponseParameters(Map<String,String> responseParameters)
Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.
responseParameters
- Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of
key-value pairs.public GetGatewayResponseResult withResponseParameters(Map<String,String> responseParameters)
Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.
responseParameters
- Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of
key-value pairs.public GetGatewayResponseResult addResponseParametersEntry(String key, String value)
public GetGatewayResponseResult clearResponseParametersEntries()
public Map<String,String> getResponseTemplates()
Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
public void setResponseTemplates(Map<String,String> responseTemplates)
Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
responseTemplates
- Response templates of the GatewayResponse as a string-to-string map of key-value pairs.public GetGatewayResponseResult withResponseTemplates(Map<String,String> responseTemplates)
Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
responseTemplates
- Response templates of the GatewayResponse as a string-to-string map of key-value pairs.public GetGatewayResponseResult addResponseTemplatesEntry(String key, String value)
public GetGatewayResponseResult clearResponseTemplatesEntries()
public void setDefaultResponse(Boolean defaultResponse)
A Boolean flag to indicate whether this GatewayResponse is the default gateway response (true
) or
not (false
). A default gateway response is one generated by API Gateway without any customization by
an API developer.
defaultResponse
- A Boolean flag to indicate whether this GatewayResponse is the default gateway response (true
) or not (false
). A default gateway response is one generated by API Gateway without any
customization by an API developer.public Boolean getDefaultResponse()
A Boolean flag to indicate whether this GatewayResponse is the default gateway response (true
) or
not (false
). A default gateway response is one generated by API Gateway without any customization by
an API developer.
true
) or not (false
). A default gateway response is one generated by API
Gateway without any customization by an API developer.public GetGatewayResponseResult withDefaultResponse(Boolean defaultResponse)
A Boolean flag to indicate whether this GatewayResponse is the default gateway response (true
) or
not (false
). A default gateway response is one generated by API Gateway without any customization by
an API developer.
defaultResponse
- A Boolean flag to indicate whether this GatewayResponse is the default gateway response (true
) or not (false
). A default gateway response is one generated by API Gateway without any
customization by an API developer.public Boolean isDefaultResponse()
A Boolean flag to indicate whether this GatewayResponse is the default gateway response (true
) or
not (false
). A default gateway response is one generated by API Gateway without any customization by
an API developer.
true
) or not (false
). A default gateway response is one generated by API
Gateway without any customization by an API developer.public String toString()
toString
in class Object
Object.toString()
public GetGatewayResponseResult clone()