@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","AttachmentIF"}) @Immutable public final class Attachment extends Object implements AttachmentIF
AttachmentIF.
Use the builder to create immutable instances:
Attachment.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
Attachment.Builder
Builds instances of type
Attachment. |
| Modifier and Type | Method and Description |
|---|---|
static Attachment.Builder |
builder()
Creates a builder for
Attachment. |
static Attachment |
copyOf(AttachmentIF instance)
Creates an immutable copy of a
AttachmentIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
Attachment that have equal attribute values. |
List<Action> |
getActions() |
Optional<String> |
getAttachmentType() |
Optional<String> |
getAuthorIcon() |
Optional<String> |
getAuthorLink() |
Optional<String> |
getAuthorName() |
Optional<String> |
getCallbackId() |
Optional<String> |
getColor() |
Optional<String> |
getEpochSeconds() |
Optional<String> |
getFallback() |
List<Field> |
getFields() |
Optional<String> |
getFooter() |
Optional<String> |
getFooterIcon() |
Optional<String> |
getImageUrl() |
Set<String> |
getMrkdwnIn()
Slack will only markdown in fields whose names are included in this set.
|
Optional<String> |
getPretext() |
Optional<String> |
getText() |
Optional<String> |
getThumbUrl() |
Optional<String> |
getTitle() |
Optional<String> |
getTitleLink() |
int |
hashCode()
Computes a hash code from attributes:
fallback, color, pretext, authorName, authorLink, authorIcon, title, titleLink, text, imageUrl, attachmentType, fields, footer, footerIcon, thumbUrl, epochSeconds, callbackId, actions, mrkdwnIn. |
String |
toString()
Prints the immutable value
Attachment with attribute values. |
Attachment |
withActions(Action... elements)
Copy the current immutable object with elements that replace the content of
actions. |
Attachment |
withActions(Iterable<? extends Action> elements)
Copy the current immutable object with elements that replace the content of
actions. |
Attachment |
withAttachmentType(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
attachmentType attribute. |
Attachment |
withAttachmentType(String value)
Copy the current immutable object by setting a present value for the optional
attachmentType attribute. |
Attachment |
withAuthorIcon(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
authorIcon attribute. |
Attachment |
withAuthorIcon(String value)
Copy the current immutable object by setting a present value for the optional
authorIcon attribute. |
Attachment |
withAuthorLink(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
authorLink attribute. |
Attachment |
withAuthorLink(String value)
Copy the current immutable object by setting a present value for the optional
authorLink attribute. |
Attachment |
withAuthorName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
authorName attribute. |
Attachment |
withAuthorName(String value)
Copy the current immutable object by setting a present value for the optional
authorName attribute. |
Attachment |
withCallbackId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
callbackId attribute. |
Attachment |
withCallbackId(String value)
Copy the current immutable object by setting a present value for the optional
callbackId attribute. |
Attachment |
withColor(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
color attribute. |
Attachment |
withColor(String value)
Copy the current immutable object by setting a present value for the optional
color attribute. |
Attachment |
withEpochSeconds(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
epochSeconds attribute. |
Attachment |
withEpochSeconds(String value)
Copy the current immutable object by setting a present value for the optional
epochSeconds attribute. |
Attachment |
withFallback(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
fallback attribute. |
Attachment |
withFallback(String value)
Copy the current immutable object by setting a present value for the optional
fallback attribute. |
Attachment |
withFields(Field... elements)
Copy the current immutable object with elements that replace the content of
fields. |
Attachment |
withFields(Iterable<? extends Field> elements)
Copy the current immutable object with elements that replace the content of
fields. |
Attachment |
withFooter(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
footer attribute. |
Attachment |
withFooter(String value)
Copy the current immutable object by setting a present value for the optional
footer attribute. |
Attachment |
withFooterIcon(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
footerIcon attribute. |
Attachment |
withFooterIcon(String value)
Copy the current immutable object by setting a present value for the optional
footerIcon attribute. |
Attachment |
withImageUrl(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
imageUrl attribute. |
Attachment |
withImageUrl(String value)
Copy the current immutable object by setting a present value for the optional
imageUrl attribute. |
Attachment |
withMrkdwnIn(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
mrkdwnIn. |
Attachment |
withMrkdwnIn(String... elements)
Copy the current immutable object with elements that replace the content of
mrkdwnIn. |
Attachment |
withPretext(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
pretext attribute. |
Attachment |
withPretext(String value)
Copy the current immutable object by setting a present value for the optional
pretext attribute. |
Attachment |
withText(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
text attribute. |
Attachment |
withText(String value)
Copy the current immutable object by setting a present value for the optional
text attribute. |
Attachment |
withThumbUrl(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
thumbUrl attribute. |
Attachment |
withThumbUrl(String value)
Copy the current immutable object by setting a present value for the optional
thumbUrl attribute. |
Attachment |
withTitle(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
title attribute. |
Attachment |
withTitle(String value)
Copy the current immutable object by setting a present value for the optional
title attribute. |
Attachment |
withTitleLink(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
titleLink attribute. |
Attachment |
withTitleLink(String value)
Copy the current immutable object by setting a present value for the optional
titleLink attribute. |
public Optional<String> getFallback()
getFallback in interface AttachmentIFfallback attributepublic Optional<String> getColor()
getColor in interface AttachmentIFcolor attributepublic Optional<String> getPretext()
getPretext in interface AttachmentIFpretext attributepublic Optional<String> getAuthorName()
getAuthorName in interface AttachmentIFauthorName attributepublic Optional<String> getAuthorLink()
getAuthorLink in interface AttachmentIFauthorLink attributepublic Optional<String> getAuthorIcon()
getAuthorIcon in interface AttachmentIFauthorIcon attributepublic Optional<String> getTitle()
getTitle in interface AttachmentIFtitle attributepublic Optional<String> getTitleLink()
getTitleLink in interface AttachmentIFtitleLink attributepublic Optional<String> getText()
getText in interface AttachmentIFtext attributepublic Optional<String> getImageUrl()
getImageUrl in interface AttachmentIFimageUrl attributepublic Optional<String> getAttachmentType()
getAttachmentType in interface AttachmentIFattachmentType attributepublic List<Field> getFields()
getFields in interface AttachmentIFfields attributepublic Optional<String> getFooter()
getFooter in interface AttachmentIFfooter attributepublic Optional<String> getFooterIcon()
getFooterIcon in interface AttachmentIFfooterIcon attributepublic Optional<String> getThumbUrl()
getThumbUrl in interface AttachmentIFthumbUrl attributepublic Optional<String> getEpochSeconds()
getEpochSeconds in interface AttachmentIFepochSeconds attributepublic Optional<String> getCallbackId()
getCallbackId in interface AttachmentIFcallbackId attributepublic List<Action> getActions()
getActions in interface AttachmentIFactions attributepublic Set<String> getMrkdwnIn()
MarkdownSupportedFieldsgetMrkdwnIn in interface AttachmentIFpublic final Attachment withFallback(@Nullable String value)
fallback attribute.value - The value for fallback, null is accepted as java.util.Optional.empty()this objectpublic final Attachment withFallback(Optional<String> optional)
fallback attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for fallbackthis objectpublic final Attachment withColor(@Nullable String value)
color attribute.value - The value for color, null is accepted as java.util.Optional.empty()this objectpublic final Attachment withColor(Optional<String> optional)
color attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for colorthis objectpublic final Attachment withPretext(@Nullable String value)
pretext attribute.value - The value for pretext, null is accepted as java.util.Optional.empty()this objectpublic final Attachment withPretext(Optional<String> optional)
pretext attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for pretextthis objectpublic final Attachment withAuthorName(@Nullable String value)
authorName attribute.value - The value for authorName, null is accepted as java.util.Optional.empty()this objectpublic final Attachment withAuthorName(Optional<String> optional)
authorName attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for authorNamethis objectpublic final Attachment withAuthorLink(@Nullable String value)
authorLink attribute.value - The value for authorLink, null is accepted as java.util.Optional.empty()this objectpublic final Attachment withAuthorLink(Optional<String> optional)
authorLink attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for authorLinkthis objectpublic final Attachment withAuthorIcon(@Nullable String value)
authorIcon attribute.value - The value for authorIcon, null is accepted as java.util.Optional.empty()this objectpublic final Attachment withAuthorIcon(Optional<String> optional)
authorIcon attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for authorIconthis objectpublic final Attachment withTitle(@Nullable String value)
title attribute.value - The value for title, null is accepted as java.util.Optional.empty()this objectpublic final Attachment withTitle(Optional<String> optional)
title attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for titlethis objectpublic final Attachment withTitleLink(@Nullable String value)
titleLink attribute.value - The value for titleLink, null is accepted as java.util.Optional.empty()this objectpublic final Attachment withTitleLink(Optional<String> optional)
titleLink attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for titleLinkthis objectpublic final Attachment withText(@Nullable String value)
text attribute.value - The value for text, null is accepted as java.util.Optional.empty()this objectpublic final Attachment withText(Optional<String> optional)
text attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for textthis objectpublic final Attachment withImageUrl(@Nullable String value)
imageUrl attribute.value - The value for imageUrl, null is accepted as java.util.Optional.empty()this objectpublic final Attachment withImageUrl(Optional<String> optional)
imageUrl attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for imageUrlthis objectpublic final Attachment withAttachmentType(@Nullable String value)
attachmentType attribute.value - The value for attachmentType, null is accepted as java.util.Optional.empty()this objectpublic final Attachment withAttachmentType(Optional<String> optional)
attachmentType attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for attachmentTypethis objectpublic final Attachment withFields(Field... elements)
fields.elements - The elements to setthis objectpublic final Attachment withFields(Iterable<? extends Field> elements)
fields.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of fields elements to setthis objectpublic final Attachment withFooter(@Nullable String value)
footer attribute.value - The value for footer, null is accepted as java.util.Optional.empty()this objectpublic final Attachment withFooter(Optional<String> optional)
footer attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for footerthis objectpublic final Attachment withFooterIcon(@Nullable String value)
footerIcon attribute.value - The value for footerIcon, null is accepted as java.util.Optional.empty()this objectpublic final Attachment withFooterIcon(Optional<String> optional)
footerIcon attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for footerIconthis objectpublic final Attachment withThumbUrl(@Nullable String value)
thumbUrl attribute.value - The value for thumbUrl, null is accepted as java.util.Optional.empty()this objectpublic final Attachment withThumbUrl(Optional<String> optional)
thumbUrl attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for thumbUrlthis objectpublic final Attachment withEpochSeconds(@Nullable String value)
epochSeconds attribute.value - The value for epochSeconds, null is accepted as java.util.Optional.empty()this objectpublic final Attachment withEpochSeconds(Optional<String> optional)
epochSeconds attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for epochSecondsthis objectpublic final Attachment withCallbackId(@Nullable String value)
callbackId attribute.value - The value for callbackId, null is accepted as java.util.Optional.empty()this objectpublic final Attachment withCallbackId(Optional<String> optional)
callbackId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for callbackIdthis objectpublic final Attachment withActions(Action... elements)
actions.elements - The elements to setthis objectpublic final Attachment withActions(Iterable<? extends Action> elements)
actions.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of actions elements to setthis objectpublic final Attachment withMrkdwnIn(String... elements)
mrkdwnIn.elements - The elements to setthis objectpublic final Attachment withMrkdwnIn(Iterable<String> elements)
mrkdwnIn.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of mrkdwnIn elements to setthis objectpublic boolean equals(@Nullable Object another)
Attachment that have equal attribute values.public int hashCode()
fallback, color, pretext, authorName, authorLink, authorIcon, title, titleLink, text, imageUrl, attachmentType, fields, footer, footerIcon, thumbUrl, epochSeconds, callbackId, actions, mrkdwnIn.public String toString()
Attachment with attribute values.public static Attachment copyOf(AttachmentIF instance)
AttachmentIF value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static Attachment.Builder builder()
Attachment.Copyright © 2019. All rights reserved.