@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateModelRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Request to add a new Model to an existing RestApi resource.
NOOP
Constructor and Description |
---|
CreateModelRequest() |
Modifier and Type | Method and Description |
---|---|
CreateModelRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getContentType()
The content-type for the model.
|
String |
getDescription()
The description of the model.
|
String |
getName()
The name of the model.
|
String |
getRestApiId()
The RestApi identifier under which the Model will be created.
|
String |
getSchema()
The schema for the model.
|
int |
hashCode() |
void |
setContentType(String contentType)
The content-type for the model.
|
void |
setDescription(String description)
The description of the model.
|
void |
setName(String name)
The name of the model.
|
void |
setRestApiId(String restApiId)
The RestApi identifier under which the Model will be created.
|
void |
setSchema(String schema)
The schema for the model.
|
String |
toString()
Returns a string representation of this object.
|
CreateModelRequest |
withContentType(String contentType)
The content-type for the model.
|
CreateModelRequest |
withDescription(String description)
The description of the model.
|
CreateModelRequest |
withName(String name)
The name of the model.
|
CreateModelRequest |
withRestApiId(String restApiId)
The RestApi identifier under which the Model will be created.
|
CreateModelRequest |
withSchema(String schema)
The schema for the model.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setRestApiId(String restApiId)
The RestApi identifier under which the Model will be created.
restApiId
- The RestApi identifier under which the Model will be created.public String getRestApiId()
The RestApi identifier under which the Model will be created.
public CreateModelRequest withRestApiId(String restApiId)
The RestApi identifier under which the Model will be created.
restApiId
- The RestApi identifier under which the Model will be created.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 CreateModelRequest withName(String name)
The name of the model. Must be alphanumeric.
name
- The name of the model. Must be alphanumeric.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 CreateModelRequest withDescription(String description)
The description of the model.
description
- The description of the model.public void setSchema(String schema)
The schema for the model. For application/json
models, this should be JSON schema draft 4 model. The
maximum size of the model is 400 KB.
schema
- The schema for the model. For application/json
models, this should be JSON schema draft 4
model. The maximum size of the model is 400 KB.public String getSchema()
The schema for the model. For application/json
models, this should be JSON schema draft 4 model. The
maximum size of the model is 400 KB.
application/json
models, this should be JSON schema draft 4
model. The maximum size of the model is 400 KB.public CreateModelRequest withSchema(String schema)
The schema for the model. For application/json
models, this should be JSON schema draft 4 model. The
maximum size of the model is 400 KB.
schema
- The schema for the model. For application/json
models, this should be JSON schema draft 4
model. The maximum size of the model is 400 KB.public void setContentType(String contentType)
The content-type for the model.
contentType
- The content-type for the model.public String getContentType()
The content-type for the model.
public CreateModelRequest withContentType(String contentType)
The content-type for the model.
contentType
- The content-type for the model.public String toString()
toString
in class Object
Object.toString()
public CreateModelRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()