Class EntityPayloadAttributes
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().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeEntityPayloadAttributes. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forEntityPayloadAttributes.static EntityPayloadAttributescopyOf(EntityPayloadAttributesIF instance) Creates an immutable copy of aEntityPayloadAttributesIFvalue.booleanThis instance is equal to all instances ofEntityPayloadAttributesthat have equal attribute values.getTitle()inthashCode()Computes a hash code from attributes:title,displayId,displayType,productName,productIcon,locale,fullSizePreview.toString()Prints the immutable valueEntityPayloadAttributeswith attribute values.final EntityPayloadAttributeswithDisplayId(String value) Copy the current immutable object by setting a present value for the optionaldisplayIdattribute.final EntityPayloadAttributeswithDisplayId(Optional<String> optional) Copy the current immutable object by setting an optional value for thedisplayIdattribute.final EntityPayloadAttributeswithDisplayType(String value) Copy the current immutable object by setting a present value for the optionaldisplayTypeattribute.final EntityPayloadAttributeswithDisplayType(Optional<String> optional) Copy the current immutable object by setting an optional value for thedisplayTypeattribute.final EntityPayloadAttributesCopy the current immutable object by setting a present value for the optionalfullSizePreviewattribute.final EntityPayloadAttributeswithFullSizePreview(Optional<? extends FullSizePreview> optional) Copy the current immutable object by setting an optional value for thefullSizePreviewattribute.final EntityPayloadAttributeswithLocale(String value) Copy the current immutable object by setting a present value for the optionallocaleattribute.final EntityPayloadAttributeswithLocale(Optional<String> optional) Copy the current immutable object by setting an optional value for thelocaleattribute.final EntityPayloadAttributeswithProductIcon(Icon value) Copy the current immutable object by setting a present value for the optionalproductIconattribute.final EntityPayloadAttributeswithProductIcon(Optional<? extends Icon> optional) Copy the current immutable object by setting an optional value for theproductIconattribute.final EntityPayloadAttributeswithProductName(String value) Copy the current immutable object by setting a present value for the optionalproductNameattribute.final EntityPayloadAttributeswithProductName(Optional<String> optional) Copy the current immutable object by setting an optional value for theproductNameattribute.final EntityPayloadAttributesCopy the current immutable object by setting a value for thetitleattribute.
-
Method Details
-
getTitle
- Specified by:
getTitlein interfaceEntityPayloadAttributesIF- Returns:
- The value of the
titleattribute
-
getDisplayId
- Specified by:
getDisplayIdin interfaceEntityPayloadAttributesIF- Returns:
- The value of the
displayIdattribute
-
getDisplayType
- Specified by:
getDisplayTypein interfaceEntityPayloadAttributesIF- Returns:
- The value of the
displayTypeattribute
-
getProductName
- Specified by:
getProductNamein interfaceEntityPayloadAttributesIF- Returns:
- The value of the
productNameattribute
-
getProductIcon
- Specified by:
getProductIconin interfaceEntityPayloadAttributesIF- Returns:
- The value of the
productIconattribute
-
getLocale
- Specified by:
getLocalein interfaceEntityPayloadAttributesIF- Returns:
- The value of the
localeattribute
-
getFullSizePreview
- Specified by:
getFullSizePreviewin interfaceEntityPayloadAttributesIF- Returns:
- The value of the
fullSizePreviewattribute
-
withTitle
Copy the current immutable object by setting a value for thetitleattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for title- Returns:
- A modified copy or the
thisobject
-
withDisplayId
Copy the current immutable object by setting a present value for the optionaldisplayIdattribute.- Parameters:
value- The value for displayId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withDisplayId
Copy the current immutable object by setting an optional value for thedisplayIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for displayId- Returns:
- A modified copy or
thisif not changed
-
withDisplayType
Copy the current immutable object by setting a present value for the optionaldisplayTypeattribute.- Parameters:
value- The value for displayType,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withDisplayType
Copy the current immutable object by setting an optional value for thedisplayTypeattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for displayType- Returns:
- A modified copy or
thisif not changed
-
withProductName
Copy the current immutable object by setting a present value for the optionalproductNameattribute.- Parameters:
value- The value for productName,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withProductName
Copy the current immutable object by setting an optional value for theproductNameattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for productName- Returns:
- A modified copy or
thisif not changed
-
withProductIcon
Copy the current immutable object by setting a present value for the optionalproductIconattribute.- Parameters:
value- The value for productIcon,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withProductIcon
Copy the current immutable object by setting an optional value for theproductIconattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for productIcon- Returns:
- A modified copy or
thisif not changed
-
withLocale
Copy the current immutable object by setting a present value for the optionallocaleattribute.- Parameters:
value- The value for locale,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withLocale
Copy the current immutable object by setting an optional value for thelocaleattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for locale- Returns:
- A modified copy or
thisif not changed
-
withFullSizePreview
Copy the current immutable object by setting a present value for the optionalfullSizePreviewattribute.- Parameters:
value- The value for fullSizePreview,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withFullSizePreview
public final EntityPayloadAttributes withFullSizePreview(Optional<? extends FullSizePreview> optional) Copy the current immutable object by setting an optional value for thefullSizePreviewattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for fullSizePreview- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofEntityPayloadAttributesthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:title,displayId,displayType,productName,productIcon,locale,fullSizePreview. -
toString
Prints the immutable valueEntityPayloadAttributeswith attribute values. -
copyOf
Creates an immutable copy of aEntityPayloadAttributesIFvalue. 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
Creates a builder forEntityPayloadAttributes.EntityPayloadAttributes.builder() .setTitle(com.hubspot.slack.client.methods.params.chat.workobject.entity.EntityPayloadAttributeTitle) // requiredtitle.setDisplayId(Optional<String>) // optionaldisplayId.setDisplayType(Optional<String>) // optionaldisplayType.setProductName(Optional<String>) // optionalproductName.setProductIcon(Optional<Icon>) // optionalproductIcon.setLocale(Optional<String>) // optionallocale.setFullSizePreview(Optional<com.hubspot.slack.client.methods.params.chat.workobject.entity.fullsizepreview.FullSizePreview>) // optionalfullSizePreview.build();- Returns:
- A new EntityPayloadAttributes builder
-