Class Model.Builder
-
- All Implemented Interfaces:
public final class Model.Builder
A builder for Model.
-
-
Method Summary
Modifier and Type Method Description final Model.Builder
id(String id)
The model identifier, which can be referenced in the API endpoints. final Model.Builder
id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value. final Model.Builder
created(Long created)
The Unix timestamp (in seconds) when the model was created. final Model.Builder
created(JsonField<Long> created)
Sets Builder.created to an arbitrary JSON value. final Model.Builder
object_(JsonValue object_)
Sets the field to an arbitrary JSON value. final Model.Builder
ownedBy(String ownedBy)
The organization that owns the model. final Model.Builder
ownedBy(JsonField<String> ownedBy)
Sets Builder.ownedBy to an arbitrary JSON value. final Model.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final Model.Builder
putAdditionalProperty(String key, JsonValue value)
final Model.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final Model.Builder
removeAdditionalProperty(String key)
final Model.Builder
removeAllAdditionalProperties(Set<String> keys)
final Model
build()
Returns an immutable instance of Model. -
-
Method Detail
-
id
final Model.Builder id(String id)
The model identifier, which can be referenced in the API endpoints.
-
id
final Model.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.
-
created
final Model.Builder created(Long created)
The Unix timestamp (in seconds) when the model was created.
-
created
final Model.Builder created(JsonField<Long> created)
Sets Builder.created to an arbitrary JSON value.
You should usually call Builder.created with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
object_
final Model.Builder object_(JsonValue object_)
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.
-
ownedBy
final Model.Builder ownedBy(String ownedBy)
The organization that owns the model.
-
ownedBy
final Model.Builder ownedBy(JsonField<String> ownedBy)
Sets Builder.ownedBy to an arbitrary JSON value.
You should usually call Builder.ownedBy with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final Model.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Model.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Model.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Model.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Model.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-