Class WatchUser

java.lang.Object
io.github.primelib.confluence4j.rest.v1.models.WatchUser

@Generated("io.github.primelib.primecodegen") public class WatchUser extends Object
WatchUser

This essentially the same as the `User` object, but no `_links` property and no `_expandable` property (therefore, different required fields).

  • Field Details

    • type

      protected String type
    • username

      protected String username
      This property 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.
    • userKey

      protected String userKey
      This property 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

      protected String accountId
      The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
    • profilePicture

      protected Icon profilePicture
      This object represents an icon. If used as a profilePicture, this may be returned as null, depending on the user's privacy setting.
    • displayName

      protected String displayName
    • timeZone

      protected String timeZone
    • operations

      protected List<OperationCheckResult> operations
    • externalCollaborator

      protected Boolean externalCollaborator
    • isGuest

      protected Boolean isGuest
    • isExternalCollaborator

      protected Boolean isExternalCollaborator
    • details

      protected UserDetails details
    • accountType

      protected String accountType
    • email

      protected String email
    • publicName

      protected String publicName
    • personalSpace

      protected Object personalSpace
  • Constructor Details

    • WatchUser

      public WatchUser(Consumer<WatchUser> spec)
      Constructs a validated instance of WatchUser.
      Parameters:
      spec - the specification to process
    • WatchUser

      @Internal protected WatchUser()
      Protected no-args constructor for use by serialization frameworks.
    • WatchUser

      @Internal public WatchUser(String type, String username, String userKey, String accountId, Icon profilePicture, String displayName, String timeZone, List<OperationCheckResult> operations, Boolean externalCollaborator, Boolean isGuest, Boolean isExternalCollaborator, UserDetails details, String accountType, String email, String publicName, Object personalSpace)
      Constructs a validated instance of WatchUser.

      NOTE: This constructor is not considered stable and may change if the model is updated. Consider using WatchUser(Consumer) instead.

      Parameters:
      type - type
      username - This property 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.
      userKey - This property 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, which uniquely identifies the user across all Atlassian products. For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
      profilePicture - This object represents an icon. If used as a profilePicture, this may be returned as null, depending on the user's privacy setting.
      displayName - displayName
      timeZone - timeZone
      operations - operations
      externalCollaborator - externalCollaborator
      isGuest - isGuest
      isExternalCollaborator - isExternalCollaborator
      details - details
      accountType - accountType
      email - email
      publicName - publicName
      personalSpace - personalSpace
  • Method Details

    • type

      public String type()
      Fluent getter for type.
      Returns:
      type
    • type

      public WatchUser type(String type)
      Fluent setter for type.
      Parameters:
      type - type
      Returns:
      this
    • getType

      public String getType()
      Gets the value of type.
      Returns:
      type
    • setType

      public void setType(String type)
      Sets the value of type.
      Parameters:
      type - type
    • username

      public String username()
      Fluent getter for username.

      This property 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:
      username
    • username

      public WatchUser username(String username)
      Fluent setter for username.

      This property 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.

      Parameters:
      username - username
      Returns:
      this
    • getUsername

      public String getUsername()
      Gets the value of username.

      This property 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:
      username
    • setUsername

      public void setUsername(String username)
      Sets the value of username.

      This property 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.

      Parameters:
      username - username
    • userKey

      public String userKey()
      Fluent getter for userKey.

      This property 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:
      userKey
    • userKey

      public WatchUser userKey(String userKey)
      Fluent setter for userKey.

      This property 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.

      Parameters:
      userKey - userKey
      Returns:
      this
    • getUserKey

      public String getUserKey()
      Gets the value of userKey.

      This property 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:
      userKey
    • setUserKey

      public void setUserKey(String userKey)
      Sets the value of userKey.

      This property 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.

      Parameters:
      userKey - userKey
    • accountId

      public String accountId()
      Fluent getter for accountId.

      The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.

      Returns:
      accountId
    • accountId

      public WatchUser accountId(String accountId)
      Fluent setter for accountId.

      The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.

      Parameters:
      accountId - accountId
      Returns:
      this
    • getAccountId

      public String getAccountId()
      Gets the value of accountId.

      The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.

      Returns:
      accountId
    • setAccountId

      public void setAccountId(String accountId)
      Sets the value of accountId.

      The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.

      Parameters:
      accountId - accountId
    • profilePicture

      public Icon profilePicture()
      Fluent getter for profilePicture.

      This object represents an icon. If used as a profilePicture, this may be returned as null, depending on the user's privacy setting.

      Returns:
      profilePicture
    • profilePicture

      public WatchUser profilePicture(Icon profilePicture)
      Fluent setter for profilePicture.

      This object represents an icon. If used as a profilePicture, this may be returned as null, depending on the user's privacy setting.

      Parameters:
      profilePicture - profilePicture
      Returns:
      this
    • getProfilePicture

      public Icon getProfilePicture()
      Gets the value of profilePicture.

      This object represents an icon. If used as a profilePicture, this may be returned as null, depending on the user's privacy setting.

      Returns:
      profilePicture
    • setProfilePicture

      public void setProfilePicture(Icon profilePicture)
      Sets the value of profilePicture.

      This object represents an icon. If used as a profilePicture, this may be returned as null, depending on the user's privacy setting.

      Parameters:
      profilePicture - profilePicture
    • displayName

      public String displayName()
      Fluent getter for displayName.
      Returns:
      displayName
    • displayName

      public WatchUser displayName(String displayName)
      Fluent setter for displayName.
      Parameters:
      displayName - displayName
      Returns:
      this
    • getDisplayName

      public String getDisplayName()
      Gets the value of displayName.
      Returns:
      displayName
    • setDisplayName

      public void setDisplayName(String displayName)
      Sets the value of displayName.
      Parameters:
      displayName - displayName
    • timeZone

      public String timeZone()
      Fluent getter for timeZone.
      Returns:
      timeZone
    • timeZone

      public WatchUser timeZone(String timeZone)
      Fluent setter for timeZone.
      Parameters:
      timeZone - timeZone
      Returns:
      this
    • getTimeZone

      public String getTimeZone()
      Gets the value of timeZone.
      Returns:
      timeZone
    • setTimeZone

      public void setTimeZone(String timeZone)
      Sets the value of timeZone.
      Parameters:
      timeZone - timeZone
    • operations

      public List<OperationCheckResult> operations()
      Fluent getter for operations.
      Returns:
      operations
    • operations

      public WatchUser operations(List<OperationCheckResult> operations)
      Fluent setter for operations.
      Parameters:
      operations - operations
      Returns:
      this
    • getOperations

      public List<OperationCheckResult> getOperations()
      Gets the value of operations.
      Returns:
      operations
    • setOperations

      public void setOperations(List<OperationCheckResult> operations)
      Sets the value of operations.
      Parameters:
      operations - operations
    • externalCollaborator

      public Boolean externalCollaborator()
      Fluent getter for externalCollaborator.
      Returns:
      externalCollaborator
    • externalCollaborator

      public WatchUser externalCollaborator(Boolean externalCollaborator)
      Fluent setter for externalCollaborator.
      Parameters:
      externalCollaborator - externalCollaborator
      Returns:
      this
    • getExternalCollaborator

      public Boolean getExternalCollaborator()
      Gets the value of externalCollaborator.
      Returns:
      externalCollaborator
    • setExternalCollaborator

      public void setExternalCollaborator(Boolean externalCollaborator)
      Sets the value of externalCollaborator.
      Parameters:
      externalCollaborator - externalCollaborator
    • isGuest

      public Boolean isGuest()
      Fluent getter for isGuest.
      Returns:
      isGuest
    • isGuest

      public WatchUser isGuest(Boolean isGuest)
      Fluent setter for isGuest.
      Parameters:
      isGuest - isGuest
      Returns:
      this
    • getIsGuest

      public Boolean getIsGuest()
      Gets the value of isGuest.
      Returns:
      isGuest
    • setIsGuest

      public void setIsGuest(Boolean isGuest)
      Sets the value of isGuest.
      Parameters:
      isGuest - isGuest
    • isExternalCollaborator

      public Boolean isExternalCollaborator()
      Fluent getter for isExternalCollaborator.
      Returns:
      isExternalCollaborator
    • isExternalCollaborator

      public WatchUser isExternalCollaborator(Boolean isExternalCollaborator)
      Fluent setter for isExternalCollaborator.
      Parameters:
      isExternalCollaborator - isExternalCollaborator
      Returns:
      this
    • getIsExternalCollaborator

      public Boolean getIsExternalCollaborator()
      Gets the value of isExternalCollaborator.
      Returns:
      isExternalCollaborator
    • setIsExternalCollaborator

      public void setIsExternalCollaborator(Boolean isExternalCollaborator)
      Sets the value of isExternalCollaborator.
      Parameters:
      isExternalCollaborator - isExternalCollaborator
    • details

      public UserDetails details()
      Fluent getter for details.
      Returns:
      details
    • details

      public WatchUser details(UserDetails details)
      Fluent setter for details.
      Parameters:
      details - details
      Returns:
      this
    • getDetails

      public UserDetails getDetails()
      Gets the value of details.
      Returns:
      details
    • setDetails

      public void setDetails(UserDetails details)
      Sets the value of details.
      Parameters:
      details - details
    • accountType

      public String accountType()
      Fluent getter for accountType.
      Returns:
      accountType
    • accountType

      public WatchUser accountType(String accountType)
      Fluent setter for accountType.
      Parameters:
      accountType - accountType
      Returns:
      this
    • getAccountType

      public String getAccountType()
      Gets the value of accountType.
      Returns:
      accountType
    • setAccountType

      public void setAccountType(String accountType)
      Sets the value of accountType.
      Parameters:
      accountType - accountType
    • email

      public String email()
      Fluent getter for email.
      Returns:
      email
    • email

      public WatchUser email(String email)
      Fluent setter for email.
      Parameters:
      email - email
      Returns:
      this
    • getEmail

      public String getEmail()
      Gets the value of email.
      Returns:
      email
    • setEmail

      public void setEmail(String email)
      Sets the value of email.
      Parameters:
      email - email
    • publicName

      public String publicName()
      Fluent getter for publicName.
      Returns:
      publicName
    • publicName

      public WatchUser publicName(String publicName)
      Fluent setter for publicName.
      Parameters:
      publicName - publicName
      Returns:
      this
    • getPublicName

      public String getPublicName()
      Gets the value of publicName.
      Returns:
      publicName
    • setPublicName

      public void setPublicName(String publicName)
      Sets the value of publicName.
      Parameters:
      publicName - publicName
    • personalSpace

      public Object personalSpace()
      Fluent getter for personalSpace.
      Returns:
      personalSpace
    • personalSpace

      public WatchUser personalSpace(Object personalSpace)
      Fluent setter for personalSpace.
      Parameters:
      personalSpace - personalSpace
      Returns:
      this
    • getPersonalSpace

      public Object getPersonalSpace()
      Gets the value of personalSpace.
      Returns:
      personalSpace
    • setPersonalSpace

      public void setPersonalSpace(Object personalSpace)
      Sets the value of personalSpace.
      Parameters:
      personalSpace - personalSpace
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object