public class CreateModelRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
contentType
The content-type for the model.
|
private java.lang.String |
description
The description of the model.
|
private java.lang.String |
name
The name of the model.
|
private java.lang.String |
restApiId
|
private java.lang.String |
schema
The schema for the model.
|
NOOP
Constructor and Description |
---|
CreateModelRequest() |
Modifier and Type | Method and Description |
---|---|
CreateModelRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getContentType()
The content-type for the model.
|
java.lang.String |
getDescription()
The description of the model.
|
java.lang.String |
getName()
The name of the model.
|
java.lang.String |
getRestApiId()
|
java.lang.String |
getSchema()
The schema for the model.
|
int |
hashCode() |
void |
setContentType(java.lang.String contentType)
The content-type for the model.
|
void |
setDescription(java.lang.String description)
The description of the model.
|
void |
setName(java.lang.String name)
The name of the model.
|
void |
setRestApiId(java.lang.String restApiId)
|
void |
setSchema(java.lang.String schema)
The schema for the model.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateModelRequest |
withContentType(java.lang.String contentType)
The content-type for the model.
|
CreateModelRequest |
withDescription(java.lang.String description)
The description of the model.
|
CreateModelRequest |
withName(java.lang.String name)
The name of the model.
|
CreateModelRequest |
withRestApiId(java.lang.String restApiId)
|
CreateModelRequest |
withSchema(java.lang.String schema)
The schema for the model.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String restApiId
private java.lang.String name
The name of the model.
private java.lang.String description
The description of the model.
private java.lang.String schema
The schema for the model. For application/json
models, this
should be JSON-schema draft v4 model.
private java.lang.String contentType
The content-type for the model.
public void setRestApiId(java.lang.String restApiId)
public java.lang.String getRestApiId()
public CreateModelRequest withRestApiId(java.lang.String restApiId)
public void setName(java.lang.String name)
The name of the model.
name
- The name of the model.public java.lang.String getName()
The name of the model.
public CreateModelRequest withName(java.lang.String name)
The name of the model.
name
- The name of the model.public void setDescription(java.lang.String description)
The description of the model.
description
- The description of the model.public java.lang.String getDescription()
The description of the model.
public CreateModelRequest withDescription(java.lang.String description)
The description of the model.
description
- The description of the model.public void setSchema(java.lang.String schema)
The schema for the model. For application/json
models, this
should be JSON-schema draft v4 model.
schema
- The schema for the model. For application/json
models, this should be JSON-schema draft v4 model.public java.lang.String getSchema()
The schema for the model. For application/json
models, this
should be JSON-schema draft v4 model.
application/json
models, this should be JSON-schema draft v4 model.public CreateModelRequest withSchema(java.lang.String schema)
The schema for the model. For application/json
models, this
should be JSON-schema draft v4 model.
schema
- The schema for the model. For application/json
models, this should be JSON-schema draft v4 model.public void setContentType(java.lang.String contentType)
The content-type for the model.
contentType
- The content-type for the model.public java.lang.String getContentType()
The content-type for the model.
public CreateModelRequest withContentType(java.lang.String contentType)
The content-type for the model.
contentType
- The content-type for the model.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateModelRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()