Class DashRenamedStackDetails

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

public class DashRenamedStackDetails extends Object
Renamed a stack.
  • Field Details

    • oldName

      @Nonnull protected final String oldName
    • newName

      @Nonnull protected final String newName
    • stackType

      @Nullable protected final DashStackType stackType
  • Constructor Details

    • DashRenamedStackDetails

      public DashRenamedStackDetails(@Nonnull String oldName, @Nonnull String newName, @Nullable DashStackType stackType)
      Renamed a stack.
      Parameters:
      oldName - The old name of the stack. Must not be null.
      newName - The new name of the stack. Must not be null.
      stackType - The type of stack backend.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • DashRenamedStackDetails

      public DashRenamedStackDetails(@Nonnull String oldName, @Nonnull String newName)
      Renamed a stack.

      The default values for unset fields will be used.

      Parameters:
      oldName - The old name of the stack. Must not be null.
      newName - The new name of the stack. Must not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getOldName

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

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

      @Nullable public DashStackType getStackType()
      The type of stack backend.
      Returns:
      value for this field, or null if not present.
    • 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