@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CustomResponseBody extends Object implements Serializable, Cloneable, StructuredPojo
The response body to use in a custom response to a web request. This is referenced by key from CustomResponse
CustomResponseBodyKey
.
Constructor and Description |
---|
CustomResponseBody() |
Modifier and Type | Method and Description |
---|---|
CustomResponseBody |
clone() |
boolean |
equals(Object obj) |
String |
getContent()
The payload of the custom response.
|
String |
getContentType()
The type of content in the payload that you are defining in the
Content string. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContent(String content)
The payload of the custom response.
|
void |
setContentType(String contentType)
The type of content in the payload that you are defining in the
Content string. |
String |
toString()
Returns a string representation of this object.
|
CustomResponseBody |
withContent(String content)
The payload of the custom response.
|
CustomResponseBody |
withContentType(ResponseContentType contentType)
The type of content in the payload that you are defining in the
Content string. |
CustomResponseBody |
withContentType(String contentType)
The type of content in the payload that you are defining in the
Content string. |
public void setContentType(String contentType)
The type of content in the payload that you are defining in the Content
string.
contentType
- The type of content in the payload that you are defining in the Content
string.ResponseContentType
public String getContentType()
The type of content in the payload that you are defining in the Content
string.
Content
string.ResponseContentType
public CustomResponseBody withContentType(String contentType)
The type of content in the payload that you are defining in the Content
string.
contentType
- The type of content in the payload that you are defining in the Content
string.ResponseContentType
public CustomResponseBody withContentType(ResponseContentType contentType)
The type of content in the payload that you are defining in the Content
string.
contentType
- The type of content in the payload that you are defining in the Content
string.ResponseContentType
public void setContent(String content)
The payload of the custom response.
You can use JSON escape strings in JSON content. To do this, you must specify JSON content in the
ContentType
setting.
For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.
content
- The payload of the custom response.
You can use JSON escape strings in JSON content. To do this, you must specify JSON content in the
ContentType
setting.
For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.
public String getContent()
The payload of the custom response.
You can use JSON escape strings in JSON content. To do this, you must specify JSON content in the
ContentType
setting.
For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.
You can use JSON escape strings in JSON content. To do this, you must specify JSON content in the
ContentType
setting.
For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.
public CustomResponseBody withContent(String content)
The payload of the custom response.
You can use JSON escape strings in JSON content. To do this, you must specify JSON content in the
ContentType
setting.
For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.
content
- The payload of the custom response.
You can use JSON escape strings in JSON content. To do this, you must specify JSON content in the
ContentType
setting.
For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.
public String toString()
toString
in class Object
Object.toString()
public CustomResponseBody clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.