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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description GetModelTemplateRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetModelTemplateRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getModelName()
The name of the model for which to generate a template.String
getRestApiId()
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.String
toString()
Returns a string representation of this object; useful for testing and debugging.GetModelTemplateRequest
withModelName(String modelName)
The name of the model for which to generate a template.GetModelTemplateRequest
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
-
-
-
-
Method Detail
-
setRestApiId
public void setRestApiId(String restApiId)
The ID of the RestApi under which the model exists.
- Parameters:
restApiId
- The ID of the RestApi under which the model exists.
-
getRestApiId
public String getRestApiId()
The ID of the RestApi under which the model exists.
- Returns:
- The ID of the RestApi under which the model exists.
-
withRestApiId
public GetModelTemplateRequest withRestApiId(String restApiId)
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
public void setModelName(String modelName)
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
public String 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
public GetModelTemplateRequest withModelName(String modelName)
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
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 GetModelTemplateRequest 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()
-
-