java.lang.Object
com.hubspot.slack.client.models.interaction.views.ViewUrlInput
All Implemented Interfaces:
ViewInput, ViewUrlInputIF

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

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

  • Method Details

    • getType

      public ViewInputType getType()
      Specified by:
      getType in interface ViewInput
      Returns:
      The value of the type attribute
    • getValue

      public Optional<String> getValue()
      Specified by:
      getValue in interface ViewUrlInputIF
      Returns:
      The value of the value attribute
    • withType

      public final ViewUrlInput withType(ViewInputType 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
    • withValue

      public final ViewUrlInput withValue(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional value attribute.
      Parameters:
      value - The value for value, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withValue

      public final ViewUrlInput withValue(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the value attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for value
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ViewUrlInput 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, value.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static ViewUrlInput copyOf(ViewUrlInputIF instance)
      Creates an immutable copy of a ViewUrlInputIF 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 ViewUrlInput instance
    • builder

      public static ViewUrlInput.Builder builder()
      Creates a builder for ViewUrlInput.
       ViewUrlInput.builder()
          .setType(com.hubspot.slack.client.models.interaction.views.ViewInputType) // required type
          .setValue(Optional<String>) // optional value
          .build();
       
      Returns:
      A new ViewUrlInput builder