Class UpdateFileRequest.ChangePublicationStatus.Publish
-
- All Implemented Interfaces:
public final class UpdateFileRequest.ChangePublicationStatus.PublishConfigure the publication status of a file and its versions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUpdateFileRequest.ChangePublicationStatus.Publish.BuilderA builder for Publish.
-
Method Summary
Modifier and Type Method Description final BooleanisPublished()Set to trueto publish the file.final Optional<Boolean>includeFileVersions()Set to trueto publish/unpublish all versions of the file.final JsonField<Boolean>_isPublished()Returns the raw JSON value of isPublished. final JsonField<Boolean>_includeFileVersions()Returns the raw JSON value of includeFileVersions. final Map<String, JsonValue>_additionalProperties()final UpdateFileRequest.ChangePublicationStatus.Publish.BuildertoBuilder()final UpdateFileRequest.ChangePublicationStatus.Publishvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static UpdateFileRequest.ChangePublicationStatus.Publish.Builderbuilder()Returns a mutable builder for constructing an instance of Publish. -
-
Method Detail
-
isPublished
final Boolean isPublished()
Set to
trueto publish the file. Set tofalseto unpublish the file.
-
includeFileVersions
final Optional<Boolean> includeFileVersions()
Set to
trueto publish/unpublish all versions of the file. Set tofalseto publish/unpublish only the current version of the file.
-
_isPublished
final JsonField<Boolean> _isPublished()
Returns the raw JSON value of isPublished.
Unlike isPublished, this method doesn't throw if the JSON field has an unexpected type.
-
_includeFileVersions
final JsonField<Boolean> _includeFileVersions()
Returns the raw JSON value of includeFileVersions.
Unlike includeFileVersions, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final UpdateFileRequest.ChangePublicationStatus.Publish.Builder toBuilder()
-
validate
final UpdateFileRequest.ChangePublicationStatus.Publish 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 UpdateFileRequest.ChangePublicationStatus.Publish.Builder builder()
Returns a mutable builder for constructing an instance of Publish.
The following fields are required:
.isPublished()
-
-
-
-