Class CommitCreateParams.Commit.Builder
-
- All Implemented Interfaces:
public final class CommitCreateParams.Commit.BuilderA builder for Commit.
-
-
Method Summary
-
-
Method Detail
-
id
final CommitCreateParams.Commit.Builder id(String id)
The commit id.
-
id
final CommitCreateParams.Commit.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.
-
authorId
final CommitCreateParams.Commit.Builder authorId(String authorId)
The author id of the commit.
-
authorId
final CommitCreateParams.Commit.Builder authorId(JsonField<String> authorId)
Sets Builder.authorId to an arbitrary JSON value.
You should usually call Builder.authorId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
fileSize
final CommitCreateParams.Commit.Builder fileSize(Long fileSize)
The size of the commit bundle in bytes.
-
fileSize
final CommitCreateParams.Commit.Builder fileSize(Long fileSize)
Alias for Builder.fileSize.
This unboxed primitive overload exists for backwards compatibility.
-
fileSize
final CommitCreateParams.Commit.Builder fileSize(Optional<Long> fileSize)
Alias for calling Builder.fileSize with
fileSize.orElse(null).
-
fileSize
final CommitCreateParams.Commit.Builder fileSize(JsonField<Long> fileSize)
Sets Builder.fileSize to an arbitrary JSON value.
You should usually call Builder.fileSize with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
message
final CommitCreateParams.Commit.Builder message(String message)
The commit message.
-
message
final CommitCreateParams.Commit.Builder message(JsonField<String> message)
Sets Builder.message to an arbitrary JSON value.
You should usually call Builder.message with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
mlModelId
final CommitCreateParams.Commit.Builder mlModelId(String mlModelId)
The model id.
-
mlModelId
final CommitCreateParams.Commit.Builder mlModelId(Optional<String> mlModelId)
Alias for calling Builder.mlModelId with
mlModelId.orElse(null).
-
mlModelId
final CommitCreateParams.Commit.Builder mlModelId(JsonField<String> mlModelId)
Sets Builder.mlModelId to an arbitrary JSON value.
You should usually call Builder.mlModelId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
storageUri
final CommitCreateParams.Commit.Builder storageUri(String storageUri)
The storage URI where the commit bundle is stored.
-
storageUri
final CommitCreateParams.Commit.Builder storageUri(JsonField<String> storageUri)
Sets Builder.storageUri to an arbitrary JSON value.
You should usually call Builder.storageUri with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
trainingDatasetId
final CommitCreateParams.Commit.Builder trainingDatasetId(String trainingDatasetId)
The training dataset id.
-
trainingDatasetId
final CommitCreateParams.Commit.Builder trainingDatasetId(Optional<String> trainingDatasetId)
Alias for calling Builder.trainingDatasetId with
trainingDatasetId.orElse(null).
-
trainingDatasetId
final CommitCreateParams.Commit.Builder trainingDatasetId(JsonField<String> trainingDatasetId)
Sets Builder.trainingDatasetId to an arbitrary JSON value.
You should usually call Builder.trainingDatasetId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
validationDatasetId
final CommitCreateParams.Commit.Builder validationDatasetId(String validationDatasetId)
The validation dataset id.
-
validationDatasetId
final CommitCreateParams.Commit.Builder validationDatasetId(Optional<String> validationDatasetId)
Alias for calling Builder.validationDatasetId with
validationDatasetId.orElse(null).
-
validationDatasetId
final CommitCreateParams.Commit.Builder validationDatasetId(JsonField<String> validationDatasetId)
Sets Builder.validationDatasetId to an arbitrary JSON value.
You should usually call Builder.validationDatasetId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
dateCreated
final CommitCreateParams.Commit.Builder dateCreated(OffsetDateTime dateCreated)
The commit creation date.
-
dateCreated
final CommitCreateParams.Commit.Builder dateCreated(JsonField<OffsetDateTime> dateCreated)
Sets Builder.dateCreated to an arbitrary JSON value.
You should usually call Builder.dateCreated with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
gitCommitRef
final CommitCreateParams.Commit.Builder gitCommitRef(String gitCommitRef)
The ref of the corresponding git commit.
-
gitCommitRef
final CommitCreateParams.Commit.Builder gitCommitRef(JsonField<String> gitCommitRef)
Sets Builder.gitCommitRef to an arbitrary JSON value.
You should usually call Builder.gitCommitRef with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
gitCommitSha
final CommitCreateParams.Commit.Builder gitCommitSha(Long gitCommitSha)
The SHA of the corresponding git commit.
-
gitCommitSha
final CommitCreateParams.Commit.Builder gitCommitSha(JsonField<Long> gitCommitSha)
Sets Builder.gitCommitSha to an arbitrary JSON value.
You should usually call Builder.gitCommitSha with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
gitCommitUrl
final CommitCreateParams.Commit.Builder gitCommitUrl(String gitCommitUrl)
The URL of the corresponding git commit.
-
gitCommitUrl
final CommitCreateParams.Commit.Builder gitCommitUrl(JsonField<String> gitCommitUrl)
Sets Builder.gitCommitUrl to an arbitrary JSON value.
You should usually call Builder.gitCommitUrl 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 CommitCreateParams.Commit.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final CommitCreateParams.Commit.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final CommitCreateParams.Commit.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final CommitCreateParams.Commit.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final CommitCreateParams.Commit.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final CommitCreateParams.Commit build()
Returns an immutable instance of Commit.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .authorId() .fileSize() .message() .mlModelId() .storageUri() .trainingDatasetId() .validationDatasetId()
-
-
-
-