Class UsageCostsResponse.Data
-
- All Implemented Interfaces:
public final class UsageCostsResponse.Data
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUsageCostsResponse.Data.BuilderA builder for Data.
public final classUsageCostsResponse.Data.ResultThe aggregated completions usage details of the specific time bucket.
-
Method Summary
Modifier and Type Method Description final LongendTime()final JsonValue_object_()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("bucket")final List<UsageCostsResponse.Data.Result>results()final LongstartTime()final JsonField<Long>_endTime()Returns the raw JSON value of endTime. final JsonField<List<UsageCostsResponse.Data.Result>>_results()Returns the raw JSON value of results. final JsonField<Long>_startTime()Returns the raw JSON value of startTime. final Map<String, JsonValue>_additionalProperties()final UsageCostsResponse.Data.BuildertoBuilder()final UsageCostsResponse.Datavalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static UsageCostsResponse.Data.Builderbuilder()Returns a mutable builder for constructing an instance of Data. -
-
Method Detail
-
_object_
final JsonValue _object_()
Expected to always return the following:
JsonValue.from("bucket")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
results
final List<UsageCostsResponse.Data.Result> results()
-
_endTime
final JsonField<Long> _endTime()
Returns the raw JSON value of endTime.
Unlike endTime, this method doesn't throw if the JSON field has an unexpected type.
-
_results
final JsonField<List<UsageCostsResponse.Data.Result>> _results()
Returns the raw JSON value of results.
Unlike results, this method doesn't throw if the JSON field has an unexpected type.
-
_startTime
final JsonField<Long> _startTime()
Returns the raw JSON value of startTime.
Unlike startTime, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final UsageCostsResponse.Data.Builder toBuilder()
-
validate
final UsageCostsResponse.Data validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static UsageCostsResponse.Data.Builder builder()
Returns a mutable builder for constructing an instance of Data.
The following fields are required:
.endTime() .results() .startTime()
-
-
-
-