public class GetModelsResult extends Object implements Serializable, Cloneable
Represents a collection of Model resources.
Constructor and Description |
---|
GetModelsResult() |
Modifier and Type | Method and Description |
---|---|
GetModelsResult |
clone() |
boolean |
equals(Object obj) |
List<Model> |
getItems()
Gets the current Model resource in the collection.
|
String |
getPosition() |
int |
hashCode() |
void |
setItems(Collection<Model> items)
Gets the current Model resource in the collection.
|
void |
setPosition(String position) |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetModelsResult |
withItems(Collection<Model> items)
Gets the current Model resource in the collection.
|
GetModelsResult |
withItems(Model... items)
Gets the current Model resource in the collection.
|
GetModelsResult |
withPosition(String position) |
public void setPosition(String position)
position
- public String getPosition()
public GetModelsResult withPosition(String position)
position
- public List<Model> getItems()
Gets the current Model resource in the collection.
public void setItems(Collection<Model> items)
Gets the current Model resource in the collection.
items
- Gets the current Model resource in the collection.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.
items
- Gets the current Model resource in the collection.public GetModelsResult withItems(Collection<Model> items)
Gets the current Model resource in the collection.
items
- Gets the current Model resource in the collection.public String toString()
toString
in class Object
Object.toString()
public GetModelsResult clone()
Copyright © 2016. All rights reserved.