Class VersionNode.Builder
-
- All Implemented Interfaces:
public final class VersionNode.BuilderA builder for VersionNode.
-
-
Method Summary
-
-
Method Detail
-
created
final VersionNode.Builder created(Long created)
Epoch milliseconds when this version was created.
-
created
final VersionNode.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.
-
creator
final VersionNode.Builder creator(String creator)
User ID of the version creator.
-
creator
final VersionNode.Builder creator(JsonField<String> creator)
Sets Builder.creator to an arbitrary JSON value.
You should usually call Builder.creator with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
version
final VersionNode.Builder version(String version)
Version identifier. One of "draft", "published:vNNN" (current published version), or "vNNN" (historical version).
-
version
final VersionNode.Builder version(JsonField<String> version)
Sets Builder.version to an arbitrary JSON value.
You should usually call Builder.version with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
hasChanges
final VersionNode.Builder hasChanges(Boolean hasChanges)
Whether the draft has unpublished changes. Only present on the draft version.
-
hasChanges
final VersionNode.Builder hasChanges(JsonField<Boolean> hasChanges)
Sets Builder.hasChanges to an arbitrary JSON value.
You should usually call Builder.hasChanges with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final VersionNode.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final VersionNode.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final VersionNode.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final VersionNode.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final VersionNode.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final VersionNode build()
Returns an immutable instance of VersionNode.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.created() .creator() .version()
-
-
-
-