Class PostSpaceBySpaceKeyLabelV1OperationSpec
java.lang.Object
io.github.primelib.confluence4j.rest.v1.operations.PostSpaceBySpaceKeyLabelV1OperationSpec
@Generated("io.github.primelib.primecodegen")
public class PostSpaceBySpaceKeyLabelV1OperationSpec
extends Object
PostSpaceBySpaceKeyLabelV1
Adds labels to a piece of content. Does not modify the existing labels. Notes: - Labels can also be added when creating content ([Create content](#api-content-post)). - Labels can be updated when updating content ([Update content](#api-content-id-put)). This will delete the existing labels and replace them with the labels in the request. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Booleanallows to disable validation of the spec, use with care! -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()payload()The labels to add to the content.The labels to add to the content.@NonNull StringspaceKey()The key of the space to add labels to.The key of the space to add labels to.toString()voidvalidate()Validates the Spec, will throw a exception if required parameters are missing
-
Field Details
-
VALIDATION_ENABLED
allows to disable validation of the spec, use with care!
-
-
Constructor Details
-
PostSpaceBySpaceKeyLabelV1OperationSpec
@Internal public PostSpaceBySpaceKeyLabelV1OperationSpec(Consumer<PostSpaceBySpaceKeyLabelV1OperationSpec> spec) Constructs a validated instance ofPostSpaceBySpaceKeyLabelV1OperationSpec.- Parameters:
spec- the specification to process
-
-
Method Details
-
validate
public void validate()Validates the Spec, will throw a exception if required parameters are missing- Throws:
NullPointerException
-
spaceKey
The key of the space to add labels to. -
payload
-
spaceKey
The key of the space to add labels to.- Returns:
this.
-
payload
The labels to add to the content.- Returns:
this.
-
equals
-
canEqual
-
hashCode
-
toString
-