Class GetModelTemplateRequest
java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.apigateway.model.GetModelTemplateRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class GetModelTemplateRequest
extends AmazonWebServiceRequest
implements Serializable, Cloneable
Request to generate a sample mapping template used to transform the payload.
- 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 name of the model for which to generate a template.The ID of the RestApi under which the model exists.int
hashCode()
void
setModelName
(String modelName) The name of the model for which to generate a template.void
setRestApiId
(String restApiId) The ID of the RestApi under which the model exists.toString()
Returns a string representation of this object; useful for testing and debugging.withModelName
(String modelName) The name of the model for which to generate a template.withRestApiId
(String restApiId) The ID of the RestApi under which the model exists.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
-
GetModelTemplateRequest
public GetModelTemplateRequest()
-
-
Method Details
-
setRestApiId
The ID of the RestApi under which the model exists.
- Parameters:
restApiId
- The ID of the RestApi under which the model exists.
-
getRestApiId
The ID of the RestApi under which the model exists.
- Returns:
- The ID of the RestApi under which the model exists.
-
withRestApiId
The ID of the RestApi under which the model exists.
- Parameters:
restApiId
- The ID of the RestApi under which the model exists.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setModelName
The name of the model for which to generate a template.
- Parameters:
modelName
- The name of the model for which to generate a template.
-
getModelName
The name of the model for which to generate a template.
- Returns:
- The name of the model for which to generate a template.
-
withModelName
The name of the model for which to generate a template.
- Parameters:
modelName
- The name of the model for which to generate a template.- 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:
-