Class UsageModerationsResponse.Data
-
- All Implemented Interfaces:
public final class UsageModerationsResponse.Data
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUsageModerationsResponse.Data.BuilderA builder for Data.
public final classUsageModerationsResponse.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<UsageModerationsResponse.Data.Result>results()final LongstartTime()final JsonField<Long>_endTime()Returns the raw JSON value of endTime. final JsonField<List<UsageModerationsResponse.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 UsageModerationsResponse.Data.BuildertoBuilder()final UsageModerationsResponse.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 UsageModerationsResponse.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<UsageModerationsResponse.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<UsageModerationsResponse.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 UsageModerationsResponse.Data.Builder toBuilder()
-
validate
final UsageModerationsResponse.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 UsageModerationsResponse.Data.Builder builder()
Returns a mutable builder for constructing an instance of Data.
The following fields are required:
.endTime() .results() .startTime()
-
-
-
-