Class VersionNode
-
- All Implemented Interfaces:
public final class VersionNodeA version entry for a notification template.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classVersionNode.BuilderA builder for VersionNode.
-
Method Summary
Modifier and Type Method Description final Longcreated()Epoch milliseconds when this version was created. final Stringcreator()User ID of the version creator. final Stringversion()Version identifier. final Optional<Boolean>hasChanges()Whether the draft has unpublished changes. final JsonField<Long>_created()Returns the raw JSON value of created. final JsonField<String>_creator()Returns the raw JSON value of creator. final JsonField<String>_version()Returns the raw JSON value of version. final JsonField<Boolean>_hasChanges()Returns the raw JSON value of hasChanges. final Map<String, JsonValue>_additionalProperties()final VersionNode.BuildertoBuilder()final VersionNodevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static VersionNode.Builderbuilder()Returns a mutable builder for constructing an instance of VersionNode. -
-
Method Detail
-
version
final String version()
Version identifier. One of "draft", "published:vNNN" (current published version), or "vNNN" (historical version).
-
hasChanges
final Optional<Boolean> hasChanges()
Whether the draft has unpublished changes. Only present on the draft version.
-
_created
final JsonField<Long> _created()
Returns the raw JSON value of created.
Unlike created, this method doesn't throw if the JSON field has an unexpected type.
-
_creator
final JsonField<String> _creator()
Returns the raw JSON value of creator.
Unlike creator, this method doesn't throw if the JSON field has an unexpected type.
-
_version
final JsonField<String> _version()
Returns the raw JSON value of version.
Unlike version, this method doesn't throw if the JSON field has an unexpected type.
-
_hasChanges
final JsonField<Boolean> _hasChanges()
Returns the raw JSON value of hasChanges.
Unlike hasChanges, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final VersionNode.Builder toBuilder()
-
validate
final VersionNode validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static VersionNode.Builder builder()
Returns a mutable builder for constructing an instance of VersionNode.
The following fields are required:
.created() .creator() .version()
-
-
-
-