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:
  • Constructor Details

    • GetModelTemplateRequest

      public GetModelTemplateRequest()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 class AmazonWebServiceRequest
      See Also: