Class CreateModelRequest
java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.apigateway.model.CreateModelRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The content-type for the model.The description of the model.getName()
The name of the model.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
The name of the model.void
setRestApiId
(String restApiId) void
The schema for the model.toString()
Returns a string representation of this object; useful for testing and debugging.withContentType
(String contentType) The content-type for the model.withDescription
(String description) The description of the model.The name of the model.withRestApiId
(String restApiId) withSchema
(String schema) The schema for the model.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
Constructor Details
-
CreateModelRequest
public CreateModelRequest()
-
-
Method Details
-
setRestApiId
-
getRestApiId
-
withRestApiId
-
setName
The name of the model.
- Parameters:
name
- The name of the model.
-
getName
The name of the model.
- Returns:
- The name of the model.
-
withName
The name of the model.
- Parameters:
name
- The name of the model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
The description of the model.
- Parameters:
description
- The description of the model.
-
getDescription
The description of the model.
- Returns:
- The description of the model.
-
withDescription
The description of the model.
- Parameters:
description
- The description of the model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSchema
The schema for the model. For
application/json
models, this should be JSON-schema draft v4 model.- Parameters:
schema
- The schema for the model. Forapplication/json
models, this should be JSON-schema draft v4 model.
-
getSchema
The schema for the model. For
application/json
models, this should be JSON-schema draft v4 model.- Returns:
- The schema for the model. For
application/json
models, this should be JSON-schema draft v4 model.
-
withSchema
The schema for the model. For
application/json
models, this should be JSON-schema draft v4 model.- Parameters:
schema
- The schema for the model. Forapplication/json
models, this should be JSON-schema draft v4 model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setContentType
The content-type for the model.
- Parameters:
contentType
- The content-type for the model.
-
getContentType
The content-type for the model.
- Returns:
- The content-type for the model.
-
withContentType
The content-type for the model.
- Parameters:
contentType
- The content-type for the model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-