Class CreateRestApiRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.apigateway.model.CreateRestApiRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class CreateRestApiRequest extends AmazonWebServiceRequest implements Serializable, Cloneable

The POST Request to add a new RestApi resource to your collection.

See Also:
  • Constructor Details

    • CreateRestApiRequest

      public CreateRestApiRequest()
  • Method Details

    • setName

      public void setName(String name)

      The name of the RestApi.

      Parameters:
      name - The name of the RestApi.
    • getName

      public String getName()

      The name of the RestApi.

      Returns:
      The name of the RestApi.
    • withName

      public CreateRestApiRequest withName(String name)

      The name of the RestApi.

      Parameters:
      name - The name of the RestApi.
      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 RestApi.

      Parameters:
      description - The description of the RestApi.
    • getDescription

      public String getDescription()

      The description of the RestApi.

      Returns:
      The description of the RestApi.
    • withDescription

      public CreateRestApiRequest withDescription(String description)

      The description of the RestApi.

      Parameters:
      description - The description of the RestApi.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setCloneFrom

      public void setCloneFrom(String cloneFrom)

      The Id of the RestApi that you want to clone from.

      Parameters:
      cloneFrom - The Id of the RestApi that you want to clone from.
    • getCloneFrom

      public String getCloneFrom()

      The Id of the RestApi that you want to clone from.

      Returns:
      The Id of the RestApi that you want to clone from.
    • withCloneFrom

      public CreateRestApiRequest withCloneFrom(String cloneFrom)

      The Id of the RestApi that you want to clone from.

      Parameters:
      cloneFrom - The Id of the RestApi that you want to clone from.
      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 CreateRestApiRequest 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: