@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListFleetsForVehicleResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListFleetsForVehicleResult() |
Modifier and Type | Method and Description |
---|---|
ListFleetsForVehicleResult |
clone() |
boolean |
equals(Object obj) |
List<String> |
getFleets()
A list of fleet IDs that the vehicle is associated with.
|
String |
getNextToken()
The token to retrieve the next set of results, or
null if there are no more results. |
int |
hashCode() |
void |
setFleets(Collection<String> fleets)
A list of fleet IDs that the vehicle is associated with.
|
void |
setNextToken(String nextToken)
The token to retrieve the next set of results, or
null if there are no more results. |
String |
toString()
Returns a string representation of this object.
|
ListFleetsForVehicleResult |
withFleets(Collection<String> fleets)
A list of fleet IDs that the vehicle is associated with.
|
ListFleetsForVehicleResult |
withFleets(String... fleets)
A list of fleet IDs that the vehicle is associated with.
|
ListFleetsForVehicleResult |
withNextToken(String nextToken)
The token to retrieve the next set of results, or
null if there are no more results. |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<String> getFleets()
A list of fleet IDs that the vehicle is associated with.
public void setFleets(Collection<String> fleets)
A list of fleet IDs that the vehicle is associated with.
fleets
- A list of fleet IDs that the vehicle is associated with.public ListFleetsForVehicleResult withFleets(String... fleets)
A list of fleet IDs that the vehicle is associated with.
NOTE: This method appends the values to the existing list (if any). Use
setFleets(java.util.Collection)
or withFleets(java.util.Collection)
if you want to override the
existing values.
fleets
- A list of fleet IDs that the vehicle is associated with.public ListFleetsForVehicleResult withFleets(Collection<String> fleets)
A list of fleet IDs that the vehicle is associated with.
fleets
- A list of fleet IDs that the vehicle is associated with.public void setNextToken(String nextToken)
The token to retrieve the next set of results, or null
if there are no more results.
nextToken
- The token to retrieve the next set of results, or null
if there are no more results.public String getNextToken()
The token to retrieve the next set of results, or null
if there are no more results.
null
if there are no more results.public ListFleetsForVehicleResult withNextToken(String nextToken)
The token to retrieve the next set of results, or null
if there are no more results.
nextToken
- The token to retrieve the next set of results, or null
if there are no more results.public String toString()
toString
in class Object
Object.toString()
public ListFleetsForVehicleResult clone()