Class ModelInfo.Builder
-
- All Implemented Interfaces:
public final class ModelInfo.BuilderA builder for ModelInfo.
-
-
Method Summary
Modifier and Type Method Description final ModelInfo.Builderid(String id)Unique model identifier. final ModelInfo.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final ModelInfo.BuildercreatedAt(OffsetDateTime createdAt)RFC 3339 datetime string representing the time at which the model was released. final ModelInfo.BuildercreatedAt(JsonField<OffsetDateTime> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final ModelInfo.BuilderdisplayName(String displayName)A human-readable name for the model. final ModelInfo.BuilderdisplayName(JsonField<String> displayName)Sets Builder.displayName to an arbitrary JSON value. final ModelInfo.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final ModelInfo.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ModelInfo.BuilderputAdditionalProperty(String key, JsonValue value)final ModelInfo.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ModelInfo.BuilderremoveAdditionalProperty(String key)final ModelInfo.BuilderremoveAllAdditionalProperties(Set<String> keys)final ModelInfobuild()Returns an immutable instance of ModelInfo. -
-
Method Detail
-
id
final ModelInfo.Builder id(String id)
Unique model identifier.
-
id
final ModelInfo.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdAt
final ModelInfo.Builder createdAt(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.
-
createdAt
final ModelInfo.Builder createdAt(JsonField<OffsetDateTime> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
displayName
final ModelInfo.Builder displayName(String displayName)
A human-readable name for the model.
-
displayName
final ModelInfo.Builder displayName(JsonField<String> displayName)
Sets Builder.displayName to an arbitrary JSON value.
You should usually call Builder.displayName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ModelInfo.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("model")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ModelInfo.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ModelInfo.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ModelInfo.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ModelInfo.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ModelInfo.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-