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