Class ViewContainer

java.lang.Object
com.hubspot.slack.client.models.interaction.ViewContainer
All Implemented Interfaces:
Container, ViewContainerIF

@Generated(from="ViewContainerIF", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ViewContainer extends Object implements ViewContainerIF
Immutable implementation of ViewContainerIF.

Use the builder to create immutable instances: ViewContainer.builder().

  • Method Details

    • getType

      public ContainerType getType()
      Specified by:
      getType in interface Container
      Returns:
      The value of the type attribute
    • getViewId

      public String getViewId()
      Specified by:
      getViewId in interface ViewContainerIF
      Returns:
      The value of the viewId attribute
    • withType

      public final ViewContainer withType(ContainerType value)
      Copy the current immutable object by setting a value for the type attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for type
      Returns:
      A modified copy or the this object
    • withViewId

      public final ViewContainer withViewId(String value)
      Copy the current immutable object by setting a value for the viewId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for viewId
      Returns:
      A modified copy or the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ViewContainer that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: type, viewId.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value ViewContainer with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ViewContainer copyOf(ViewContainerIF instance)
      Creates an immutable copy of a ViewContainerIF value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable ViewContainer instance
    • builder

      public static ViewContainer.Builder builder()
      Creates a builder for ViewContainer.
       ViewContainer.builder()
          .setType(com.hubspot.slack.client.models.interaction.ContainerType) // required type
          .setViewId(String) // required viewId
          .build();
       
      Returns:
      A new ViewContainer builder