@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Model extends Object implements Serializable, Cloneable, StructuredPojo
Represents a data model for an API. Supported only for WebSocket APIs. See Create Models and Mapping Templates for Request and Response Mappings.
Constructor and Description |
---|
Model() |
Modifier and Type | Method and Description |
---|---|
Model |
clone() |
boolean |
equals(Object obj) |
String |
getContentType()
The content-type for the model, for example, "application/json".
|
String |
getDescription()
The description of the model.
|
String |
getModelId()
The model identifier.
|
String |
getName()
The name of the model.
|
String |
getSchema()
The schema for the model.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContentType(String contentType)
The content-type for the model, for example, "application/json".
|
void |
setDescription(String description)
The description of the model.
|
void |
setModelId(String modelId)
The model identifier.
|
void |
setName(String name)
The name of the model.
|
void |
setSchema(String schema)
The schema for the model.
|
String |
toString()
Returns a string representation of this object.
|
Model |
withContentType(String contentType)
The content-type for the model, for example, "application/json".
|
Model |
withDescription(String description)
The description of the model.
|
Model |
withModelId(String modelId)
The model identifier.
|
Model |
withName(String name)
The name of the model.
|
Model |
withSchema(String schema)
The schema for the model.
|
public void setContentType(String contentType)
The content-type for the model, for example, "application/json".
contentType
- The content-type for the model, for example, "application/json".public String getContentType()
The content-type for the model, for example, "application/json".
public Model withContentType(String contentType)
The content-type for the model, for example, "application/json".
contentType
- The content-type for the model, for example, "application/json".public void setDescription(String description)
The description of the model.
description
- The description of the model.public String getDescription()
The description of the model.
public Model withDescription(String description)
The description of the model.
description
- The description of the model.public void setModelId(String modelId)
The model identifier.
modelId
- The model identifier.public String getModelId()
The model identifier.
public Model withModelId(String modelId)
The model identifier.
modelId
- The model identifier.public void setName(String name)
The name of the model. Must be alphanumeric.
name
- The name of the model. Must be alphanumeric.public String getName()
The name of the model. Must be alphanumeric.
public Model withName(String name)
The name of the model. Must be alphanumeric.
name
- The name of the model. Must be alphanumeric.public void setSchema(String schema)
The schema for the model. For application/json models, this should be JSON schema draft 4 model.
schema
- The schema for the model. For application/json models, this should be JSON schema draft 4 model.public String getSchema()
The schema for the model. For application/json models, this should be JSON schema draft 4 model.
public Model withSchema(String schema)
The schema for the model. For application/json models, this should be JSON schema draft 4 model.
schema
- The schema for the model. For application/json models, this should be JSON schema draft 4 model.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.