@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateModelRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Creates a new Model.
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 |
getApiId()
The API identifier.
|
String |
getContentType()
The content-type for the model, for example, "application/json".
|
String |
getDescription()
The description of the model.
|
String |
getName()
The name of the model.
|
String |
getSchema()
The schema for the model.
|
int |
hashCode() |
void |
setApiId(String apiId)
The API identifier.
|
void |
setContentType(String contentType)
The content-type for the model, for example, "application/json".
|
void |
setDescription(String description)
The description of the model.
|
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.
|
CreateModelRequest |
withApiId(String apiId)
The API identifier.
|
CreateModelRequest |
withContentType(String contentType)
The content-type for the model, for example, "application/json".
|
CreateModelRequest |
withDescription(String description)
The description of the model.
|
CreateModelRequest |
withName(String name)
The name of the model.
|
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 setApiId(String apiId)
The API identifier.
apiId
- The API identifier.public String getApiId()
The API identifier.
public CreateModelRequest withApiId(String apiId)
The API identifier.
apiId
- The API identifier.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 CreateModelRequest 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 CreateModelRequest withDescription(String description)
The description of the model.
description
- The description of the model.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 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 CreateModelRequest 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 CreateModelRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()