Class PostUserWatchSpaceBySpaceKeyV1OperationSpec
java.lang.Object
io.github.primelib.confluence4j.rest.v1.operations.PostUserWatchSpaceBySpaceKeyV1OperationSpec
@Generated("io.github.primelib.primecodegen")
public class PostUserWatchSpaceBySpaceKeyV1OperationSpec
extends Object
PostUserWatchSpaceBySpaceKeyV1
Adds a user as a watcher to a space. Choose the user by doing one of the following: - Specify a user via a query parameter: Use the `accountId` to identify the user. - Do not specify a user: The currently logged-in user will be used. Note, you must add the `X-Atlassian-Token: no-check` header when making a request, as this operation has XSRF protection. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Booleanallows to disable validation of the spec, use with care! -
Constructor Summary
ConstructorsConstructorDescriptionPostUserWatchSpaceBySpaceKeyV1OperationSpec(Consumer<PostUserWatchSpaceBySpaceKeyV1OperationSpec> spec) Constructs a validated instance ofPostUserWatchSpaceBySpaceKeyV1OperationSpec. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringThe account ID of the user.The account ID of the user.protected booleanbooleaninthashCode()@Nullable Stringkey()Deprecated.Deprecated.@NonNull StringspaceKey()The key of the space to add the watcher to.The key of the space to add the watcher to.toString()@Nullable Stringusername()Deprecated.Deprecated.voidvalidate()Validates the Spec, will throw a exception if required parameters are missing@NonNull StringNote, you must add header when making a request, as this operation has XSRF protection.xAtlassianToken(@NonNull String xAtlassianToken) Note, you must add header when making a request, as this operation has XSRF protection.
-
Field Details
-
VALIDATION_ENABLED
allows to disable validation of the spec, use with care!
-
-
Constructor Details
-
PostUserWatchSpaceBySpaceKeyV1OperationSpec
@Internal public PostUserWatchSpaceBySpaceKeyV1OperationSpec(Consumer<PostUserWatchSpaceBySpaceKeyV1OperationSpec> spec) Constructs a validated instance ofPostUserWatchSpaceBySpaceKeyV1OperationSpec.- 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
-
xAtlassianToken
Note, you must add header when making a request, as this operation has XSRF protection. -
spaceKey
The key of the space to add the watcher to. -
key
Deprecated.This parameter is no longer available and will be removed from the documentation soon. Use `accountId` instead. See the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details. -
username
Deprecated.This parameter is no longer available and will be removed from the documentation soon. Use `accountId` instead. See the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details. -
accountId
The account ID of the user. The accountId uniquely identifies the user across all Atlassian products. For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`. -
xAtlassianToken
Note, you must add header when making a request, as this operation has XSRF protection.- Returns:
this.
-
spaceKey
The key of the space to add the watcher to.- Returns:
this.
-
key
Deprecated.This parameter is no longer available and will be removed from the documentation soon. Use `accountId` instead. See the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details.- Returns:
this.
-
username
Deprecated.This parameter is no longer available and will be removed from the documentation soon. Use `accountId` instead. See the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details.- Returns:
this.
-
accountId
The account ID of the user. The accountId uniquely identifies the user across all Atlassian products. For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-