java.lang.Object
com.hubspot.slack.client.methods.params.chat.workobject.entity.EntityPayloadAttributes
All Implemented Interfaces:
EntityPayloadAttributesIF

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

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

  • Method Details

    • getTitle

      public EntityPayloadAttributeTitle getTitle()
      Specified by:
      getTitle in interface EntityPayloadAttributesIF
      Returns:
      The value of the title attribute
    • getDisplayId

      public Optional<String> getDisplayId()
      Specified by:
      getDisplayId in interface EntityPayloadAttributesIF
      Returns:
      The value of the displayId attribute
    • getDisplayType

      public Optional<String> getDisplayType()
      Specified by:
      getDisplayType in interface EntityPayloadAttributesIF
      Returns:
      The value of the displayType attribute
    • getProductName

      public Optional<String> getProductName()
      Specified by:
      getProductName in interface EntityPayloadAttributesIF
      Returns:
      The value of the productName attribute
    • getProductIcon

      public Optional<Icon> getProductIcon()
      Specified by:
      getProductIcon in interface EntityPayloadAttributesIF
      Returns:
      The value of the productIcon attribute
    • getLocale

      public Optional<String> getLocale()
      Specified by:
      getLocale in interface EntityPayloadAttributesIF
      Returns:
      The value of the locale attribute
    • getFullSizePreview

      public Optional<FullSizePreview> getFullSizePreview()
      Specified by:
      getFullSizePreview in interface EntityPayloadAttributesIF
      Returns:
      The value of the fullSizePreview attribute
    • withTitle

      public final EntityPayloadAttributes withTitle(EntityPayloadAttributeTitle value)
      Copy the current immutable object by setting a value for the title attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for title
      Returns:
      A modified copy or the this object
    • withDisplayId

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

      public final EntityPayloadAttributes withDisplayId(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the displayId 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 displayId
      Returns:
      A modified copy or this if not changed
    • withDisplayType

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

      public final EntityPayloadAttributes withDisplayType(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the displayType 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 displayType
      Returns:
      A modified copy or this if not changed
    • withProductName

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

      public final EntityPayloadAttributes withProductName(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the productName 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 productName
      Returns:
      A modified copy or this if not changed
    • withProductIcon

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

      public final EntityPayloadAttributes withProductIcon(Optional<? extends Icon> optional)
      Copy the current immutable object by setting an optional value for the productIcon attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for productIcon
      Returns:
      A modified copy or this if not changed
    • withLocale

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

      public final EntityPayloadAttributes withLocale(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the locale 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 locale
      Returns:
      A modified copy or this if not changed
    • withFullSizePreview

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

      public final EntityPayloadAttributes withFullSizePreview(Optional<? extends FullSizePreview> optional)
      Copy the current immutable object by setting an optional value for the fullSizePreview attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for fullSizePreview
      Returns:
      A modified copy or this if not changed
    • equals

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

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

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

      public static EntityPayloadAttributes.Builder builder()
      Creates a builder for EntityPayloadAttributes.
       EntityPayloadAttributes.builder()
          .setTitle(com.hubspot.slack.client.methods.params.chat.workobject.entity.EntityPayloadAttributeTitle) // required title
          .setDisplayId(Optional<String>) // optional displayId
          .setDisplayType(Optional<String>) // optional displayType
          .setProductName(Optional<String>) // optional productName
          .setProductIcon(Optional<Icon>) // optional productIcon
          .setLocale(Optional<String>) // optional locale
          .setFullSizePreview(Optional<com.hubspot.slack.client.methods.params.chat.workobject.entity.fullsizepreview.FullSizePreview>) // optional fullSizePreview
          .build();
       
      Returns:
      A new EntityPayloadAttributes builder