Class BetaModelInfo
-
- All Implemented Interfaces:
public final class BetaModelInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaModelInfo.BuilderA builder for BetaModelInfo.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique model identifier. final OffsetDateTimecreatedAt()RFC 3339 datetime string representing the time at which the model was released. final StringdisplayName()A human-readable name for the model. final JsonValue_type()Object type. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<OffsetDateTime>_createdAt()Returns the raw JSON value of createdAt. final JsonField<String>_displayName()Returns the raw JSON value of displayName. final Map<String, JsonValue>_additionalProperties()final BetaModelInfo.BuildertoBuilder()final BetaModelInfovalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaModelInfo.Builderbuilder()Returns a mutable builder for constructing an instance of BetaModelInfo. -
-
Method Detail
-
createdAt
final OffsetDateTime createdAt()
RFC 3339 datetime string representing the time at which the model was released. May be set to an epoch value if the release date is unknown.
-
displayName
final String displayName()
A human-readable name for the model.
-
_type
final JsonValue _type()
Object type.
For Models, this is always
"model".Expected to always return the following:
JsonValue.from("model")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<OffsetDateTime> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_displayName
final JsonField<String> _displayName()
Returns the raw JSON value of displayName.
Unlike displayName, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaModelInfo.Builder toBuilder()
-
validate
final BetaModelInfo validate()
-
builder
final static BetaModelInfo.Builder builder()
Returns a mutable builder for constructing an instance of BetaModelInfo.
The following fields are required:
.id() .createdAt() .displayName()
-
-
-
-