@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FixedResponseActionConfig extends Object implements Serializable, Cloneable
Information about an action that returns a custom HTTP response.
Constructor and Description |
---|
FixedResponseActionConfig() |
Modifier and Type | Method and Description |
---|---|
FixedResponseActionConfig |
clone() |
boolean |
equals(Object obj) |
String |
getContentType()
The content type.
|
String |
getMessageBody()
The message.
|
String |
getStatusCode()
The HTTP response code (2XX, 4XX, or 5XX).
|
int |
hashCode() |
void |
setContentType(String contentType)
The content type.
|
void |
setMessageBody(String messageBody)
The message.
|
void |
setStatusCode(String statusCode)
The HTTP response code (2XX, 4XX, or 5XX).
|
String |
toString()
Returns a string representation of this object.
|
FixedResponseActionConfig |
withContentType(String contentType)
The content type.
|
FixedResponseActionConfig |
withMessageBody(String messageBody)
The message.
|
FixedResponseActionConfig |
withStatusCode(String statusCode)
The HTTP response code (2XX, 4XX, or 5XX).
|
public void setMessageBody(String messageBody)
The message.
messageBody
- The message.public String getMessageBody()
The message.
public FixedResponseActionConfig withMessageBody(String messageBody)
The message.
messageBody
- The message.public void setStatusCode(String statusCode)
The HTTP response code (2XX, 4XX, or 5XX).
statusCode
- The HTTP response code (2XX, 4XX, or 5XX).public String getStatusCode()
The HTTP response code (2XX, 4XX, or 5XX).
public FixedResponseActionConfig withStatusCode(String statusCode)
The HTTP response code (2XX, 4XX, or 5XX).
statusCode
- The HTTP response code (2XX, 4XX, or 5XX).public void setContentType(String contentType)
The content type.
Valid Values: text/plain | text/css | text/html | application/javascript | application/json
contentType
- The content type.
Valid Values: text/plain | text/css | text/html | application/javascript | application/json
public String getContentType()
The content type.
Valid Values: text/plain | text/css | text/html | application/javascript | application/json
Valid Values: text/plain | text/css | text/html | application/javascript | application/json
public FixedResponseActionConfig withContentType(String contentType)
The content type.
Valid Values: text/plain | text/css | text/html | application/javascript | application/json
contentType
- The content type.
Valid Values: text/plain | text/css | text/html | application/javascript | application/json
public String toString()
toString
in class Object
Object.toString()
public FixedResponseActionConfig clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.