Class GetModelsResult

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

public class GetModelsResult extends Object implements Serializable, Cloneable

Represents a collection of Model resources.

See Also:
  • Constructor Details

    • GetModelsResult

      public GetModelsResult()
  • Method Details

    • setPosition

      public void setPosition(String position)
      Parameters:
      position -
    • getPosition

      public String getPosition()
      Returns:
    • withPosition

      public GetModelsResult withPosition(String position)
      Parameters:
      position -
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getItems

      public List<Model> getItems()

      Gets the current Model resource in the collection.

      Returns:
      Gets the current Model resource in the collection.
    • setItems

      public void setItems(Collection<Model> items)

      Gets the current Model resource in the collection.

      Parameters:
      items - Gets the current Model resource in the collection.
    • withItems

      public GetModelsResult withItems(Model... items)

      Gets the current Model resource in the collection.

      NOTE: This method appends the values to the existing list (if any). Use setItems(java.util.Collection) or withItems(java.util.Collection) if you want to override the existing values.

      Parameters:
      items - Gets the current Model resource in the collection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withItems

      public GetModelsResult withItems(Collection<Model> items)

      Gets the current Model resource in the collection.

      Parameters:
      items - Gets the current Model resource in the collection.
      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 GetModelsResult clone()
      Overrides:
      clone in class Object