Class EntityPayloadAttributesCustomField
java.lang.Object
com.hubspot.slack.client.methods.params.chat.workobject.entity.EntityPayloadAttributesCustomField
- All Implemented Interfaces:
EntityPayloadAttributesCustomFieldIF
@Generated(from="EntityPayloadAttributesCustomFieldIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class EntityPayloadAttributesCustomField
extends Object
implements EntityPayloadAttributesCustomFieldIF
Immutable implementation of
EntityPayloadAttributesCustomFieldIF.
Use the builder to create immutable instances:
EntityPayloadAttributesCustomField.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeEntityPayloadAttributesCustomField. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forEntityPayloadAttributesCustomField.copyOf(EntityPayloadAttributesCustomFieldIF instance) Creates an immutable copy of aEntityPayloadAttributesCustomFieldIFvalue.booleanThis instance is equal to all instances ofEntityPayloadAttributesCustomFieldthat have equal attribute values.getIcon()getKey()getLabel()getLink()getType()getValue()inthashCode()Computes a hash code from attributes:key,label,value,type,icon,link,tagColor,format,isLong,imageUrl,slackFile,altText.isLong()toString()Prints the immutable valueEntityPayloadAttributesCustomFieldwith attribute values.withAltText(String value) Copy the current immutable object by setting a present value for the optionalaltTextattribute.withAltText(Optional<String> optional) Copy the current immutable object by setting an optional value for thealtTextattribute.withFormat(String value) Copy the current immutable object by setting a present value for the optionalformatattribute.withFormat(Optional<String> optional) Copy the current immutable object by setting an optional value for theformatattribute.Copy the current immutable object by setting a present value for the optionaliconattribute.Copy the current immutable object by setting an optional value for theiconattribute.withImageUrl(String value) Copy the current immutable object by setting a present value for the optionalimageUrlattribute.withImageUrl(Optional<String> optional) Copy the current immutable object by setting an optional value for theimageUrlattribute.Copy the current immutable object by setting a value for thekeyattribute.Copy the current immutable object by setting a value for thelabelattribute.Copy the current immutable object by setting a present value for the optionallinkattribute.Copy the current immutable object by setting an optional value for thelinkattribute.Copy the current immutable object by setting a present value for the optionallongattribute.Copy the current immutable object by setting an optional value for thelongattribute.withSlackFile(String value) Copy the current immutable object by setting a present value for the optionalslackFileattribute.withSlackFile(Optional<String> optional) Copy the current immutable object by setting an optional value for theslackFileattribute.withTagColor(TagColor value) Copy the current immutable object by setting a present value for the optionaltagColorattribute.withTagColor(Optional<? extends TagColor> optional) Copy the current immutable object by setting an optional value for thetagColorattribute.withType(FieldDataType value) Copy the current immutable object by setting a value for thetypeattribute.Copy the current immutable object by setting a value for thevalueattribute.
-
Method Details
-
getKey
- Specified by:
getKeyin interfaceEntityPayloadAttributesCustomFieldIF- Returns:
- The value of the
keyattribute
-
getLabel
- Specified by:
getLabelin interfaceEntityPayloadAttributesCustomFieldIF- Returns:
- The value of the
labelattribute
-
getValue
- Specified by:
getValuein interfaceEntityPayloadAttributesCustomFieldIF- Returns:
- The value of the
valueattribute
-
getType
- Specified by:
getTypein interfaceEntityPayloadAttributesCustomFieldIF- Returns:
- The value of the
typeattribute
-
getIcon
- Specified by:
getIconin interfaceEntityPayloadAttributesCustomFieldIF- Returns:
- The value of the
iconattribute
-
getLink
- Specified by:
getLinkin interfaceEntityPayloadAttributesCustomFieldIF- Returns:
- The value of the
linkattribute
-
getTagColor
- Specified by:
getTagColorin interfaceEntityPayloadAttributesCustomFieldIF- Returns:
- The value of the
tagColorattribute
-
getFormat
- Specified by:
getFormatin interfaceEntityPayloadAttributesCustomFieldIF- Returns:
- The value of the
formatattribute
-
isLong
- Specified by:
isLongin interfaceEntityPayloadAttributesCustomFieldIF- Returns:
- The value of the
isLongattribute
-
getImageUrl
- Specified by:
getImageUrlin interfaceEntityPayloadAttributesCustomFieldIF- Returns:
- The value of the
imageUrlattribute
-
getSlackFile
- Specified by:
getSlackFilein interfaceEntityPayloadAttributesCustomFieldIF- Returns:
- The value of the
slackFileattribute
-
getAltText
- Specified by:
getAltTextin interfaceEntityPayloadAttributesCustomFieldIF- Returns:
- The value of the
altTextattribute
-
withKey
Copy the current immutable object by setting a value for thekeyattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for key- Returns:
- A modified copy or the
thisobject
-
withLabel
Copy the current immutable object by setting a value for thelabelattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for label- Returns:
- A modified copy or the
thisobject
-
withValue
Copy the current immutable object by setting a value for thevalueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value- Returns:
- A modified copy or the
thisobject
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy or the
thisobject
-
withIcon
Copy the current immutable object by setting a present value for the optionaliconattribute.- Parameters:
value- The value for icon,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withIcon
Copy the current immutable object by setting an optional value for theiconattribute. 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 icon- Returns:
- A modified copy or
thisif not changed
-
withLink
Copy the current immutable object by setting a present value for the optionallinkattribute.- Parameters:
value- The value for link,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withLink
Copy the current immutable object by setting an optional value for thelinkattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for link- Returns:
- A modified copy or
thisif not changed
-
withTagColor
Copy the current immutable object by setting a present value for the optionaltagColorattribute.- Parameters:
value- The value for tagColor,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withTagColor
Copy the current immutable object by setting an optional value for thetagColorattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for tagColor- Returns:
- A modified copy or
thisif not changed
-
withFormat
Copy the current immutable object by setting a present value for the optionalformatattribute.- Parameters:
value- The value for format,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withFormat
Copy the current immutable object by setting an optional value for theformatattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for format- Returns:
- A modified copy or
thisif not changed
-
withLong
Copy the current immutable object by setting a present value for the optionallongattribute.- Parameters:
value- The value for isLong,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withLong
Copy the current immutable object by setting an optional value for thelongattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for isLong- Returns:
- A modified copy or
thisif not changed
-
withImageUrl
Copy the current immutable object by setting a present value for the optionalimageUrlattribute.- Parameters:
value- The value for imageUrl,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withImageUrl
Copy the current immutable object by setting an optional value for theimageUrlattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for imageUrl- Returns:
- A modified copy or
thisif not changed
-
withSlackFile
Copy the current immutable object by setting a present value for the optionalslackFileattribute.- Parameters:
value- The value for slackFile,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withSlackFile
Copy the current immutable object by setting an optional value for theslackFileattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for slackFile- Returns:
- A modified copy or
thisif not changed
-
withAltText
Copy the current immutable object by setting a present value for the optionalaltTextattribute.- Parameters:
value- The value for altText,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withAltText
Copy the current immutable object by setting an optional value for thealtTextattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for altText- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofEntityPayloadAttributesCustomFieldthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:key,label,value,type,icon,link,tagColor,format,isLong,imageUrl,slackFile,altText. -
toString
Prints the immutable valueEntityPayloadAttributesCustomFieldwith attribute values. -
copyOf
public static EntityPayloadAttributesCustomField copyOf(EntityPayloadAttributesCustomFieldIF instance) Creates an immutable copy of aEntityPayloadAttributesCustomFieldIFvalue. 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 EntityPayloadAttributesCustomField instance
-
builder
Creates a builder forEntityPayloadAttributesCustomField.EntityPayloadAttributesCustomField.builder() .setKey(String) // requiredkey.setLabel(String) // requiredlabel.setValue(String) // requiredvalue.setType(com.hubspot.slack.client.methods.params.chat.workobject.entity.FieldDataType) // requiredtype.setIcon(Optional<Icon>) // optionalicon.setLink(Optional<String>) // optionallink.setTagColor(Optional<com.hubspot.slack.client.methods.params.chat.workobject.entity.fields.TagColor>) // optionaltagColor.setFormat(Optional<String>) // optionalformat.setLong(Optional<Boolean>) // optionallong.setImageUrl(Optional<String>) // optionalimageUrl.setSlackFile(Optional<String>) // optionalslackFile.setAltText(Optional<String>) // optionalaltText.build();- Returns:
- A new EntityPayloadAttributesCustomField builder
-