Class DashExternalUserOpenedStackDetails

java.lang.Object
com.dropbox.core.v2.teamlog.DashExternalUserOpenedStackDetails

public class DashExternalUserOpenedStackDetails extends Object
External user opened a stack.
  • Field Details

    • stackName

      @Nonnull protected final String stackName
    • stackSharingScope

      @Nonnull protected final DashStackSharingScope stackSharingScope
    • isInvited

      protected final boolean isInvited
    • isVerified

      protected final boolean isVerified
    • stackOwnerTeamId

      @Nullable protected final Long stackOwnerTeamId
    • stackType

      @Nullable protected final DashStackType stackType
  • Constructor Details

    • DashExternalUserOpenedStackDetails

      public DashExternalUserOpenedStackDetails(@Nonnull String stackName, @Nonnull DashStackSharingScope stackSharingScope, boolean isInvited, boolean isVerified, @Nullable Long stackOwnerTeamId, @Nullable DashStackType stackType)
      External user opened a stack.

      Use newBuilder(java.lang.String,com.dropbox.core.v2.teamlog.DashStackSharingScope,boolean,boolean) to create instances of this class without specifying values for all optional fields.

      Parameters:
      stackName - The name of the stack. Must not be null.
      stackSharingScope - The sharing scope of the stack. Must not be null.
      isInvited - Whether the user was invited to the stack.
      isVerified - Whether the user has verified their email address.
      stackOwnerTeamId - The team ID of the stack owner.
      stackType - The type of stack backend.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • DashExternalUserOpenedStackDetails

      public DashExternalUserOpenedStackDetails(@Nonnull String stackName, @Nonnull DashStackSharingScope stackSharingScope, boolean isInvited, boolean isVerified)
      External user opened a stack.

      The default values for unset fields will be used.

      Parameters:
      stackName - The name of the stack. Must not be null.
      stackSharingScope - The sharing scope of the stack. Must not be null.
      isInvited - Whether the user was invited to the stack.
      isVerified - Whether the user has verified their email address.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getStackName

      @Nonnull public String getStackName()
      The name of the stack.
      Returns:
      value for this field, never null.
    • getStackSharingScope

      @Nonnull public DashStackSharingScope getStackSharingScope()
      The sharing scope of the stack.
      Returns:
      value for this field, never null.
    • getIsInvited

      public boolean getIsInvited()
      Whether the user was invited to the stack.
      Returns:
      value for this field.
    • getIsVerified

      public boolean getIsVerified()
      Whether the user has verified their email address.
      Returns:
      value for this field.
    • getStackOwnerTeamId

      @Nullable public Long getStackOwnerTeamId()
      The team ID of the stack owner.
      Returns:
      value for this field, or null if not present.
    • getStackType

      @Nullable public DashStackType getStackType()
      The type of stack backend.
      Returns:
      value for this field, or null if not present.
    • newBuilder

      public static DashExternalUserOpenedStackDetails.Builder newBuilder(String stackName, DashStackSharingScope stackSharingScope, boolean isInvited, boolean isVerified)
      Returns a new builder for creating an instance of this class.
      Parameters:
      stackName - The name of the stack. Must not be null.
      stackSharingScope - The sharing scope of the stack. Must not be null.
      isInvited - Whether the user was invited to the stack.
      isVerified - Whether the user has verified their email address.
      Returns:
      builder for this class.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringMultiline

      public String toStringMultiline()
      Returns a String representation of this object formatted for easier readability.

      The returned String may contain newlines.

      Returns:
      Formatted, multiline String representation of this object