Class CreateModelRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.apigateway.model.CreateModelRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class CreateModelRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateModelRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateModelRequest
clone()
Creates a shallow clone of this request.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()
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)
void
setSchema(String schema)
The schema for the model.String
toString()
Returns a string representation of this object; useful for testing and debugging.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)
CreateModelRequest
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
-
-
-
-
Method Detail
-
setRestApiId
public void setRestApiId(String restApiId)
-
getRestApiId
public String getRestApiId()
-
withRestApiId
public CreateModelRequest withRestApiId(String restApiId)
-
setName
public void setName(String name)
The name of the model.
- Parameters:
name
- The name of the model.
-
getName
public String getName()
The name of the model.
- Returns:
- The name of the model.
-
withName
public CreateModelRequest withName(String name)
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
public void setDescription(String description)
The description of the model.
- Parameters:
description
- The description of the model.
-
getDescription
public String getDescription()
The description of the model.
- Returns:
- The description of the model.
-
withDescription
public CreateModelRequest withDescription(String description)
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
public void setSchema(String schema)
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
public String 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
public CreateModelRequest withSchema(String schema)
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
public void setContentType(String contentType)
The content-type for the model.
- Parameters:
contentType
- The content-type for the model.
-
getContentType
public String getContentType()
The content-type for the model.
- Returns:
- The content-type for the model.
-
withContentType
public CreateModelRequest withContentType(String contentType)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateModelRequest 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:
Object.clone()
-
-