public class UnitQuery extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | UnitQuery.BuilderBuilder to make query construction easier. | 
| Constructor and Description | 
|---|
| UnitQuery()Default constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| static UnitQuery.Builder | builder()Returns a builder for the query. | 
| int | getSize()Returns the quantity of items to be returned. | 
| Unit | getUnit()Returns the unit for the query (either "minute", "hour", "day", "week", "month"). | 
| String | getUnitReference()Returns the most recent time for to pull metrics for (ISO-8601 timestamp). | 
| int | getUnits()Returns the units for the query. | 
| void | setSize(int size)Sets the quantity of items to be returned. | 
| void | setUnit(Unit unit)Sets the unit for the query (either "minute", "hour", "day", "week", "month"). | 
| void | setUnitReference(String unitReference)Sets the most recent time for to pull metrics for (ISO-8601 timestamp). | 
| void | setUnits(int units)Sets the units for the query. | 
| String | toString()Returns a string representation of the object. | 
public Unit getUnit()
public void setUnit(Unit unit)
unit - The unit for the querypublic int getUnits()
public void setUnits(int units)
units - The units for the querypublic String getUnitReference()
public void setUnitReference(String unitReference)
unitReference - The unit reference for the querypublic int getSize()
public void setSize(int size)
size - The size for the querypublic String toString()
public static UnitQuery.Builder builder()
Copyright © 2020. All rights reserved.