@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","SlackDialogIF"}) @Immutable public final class SlackDialog extends Object implements SlackDialogIF
SlackDialogIF.
Use the builder to create immutable instances:
SlackDialog.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackDialog.Builder
Builds instances of type
SlackDialog. |
| Modifier and Type | Method and Description |
|---|---|
static SlackDialog.Builder |
builder()
Creates a builder for
SlackDialog. |
static SlackDialog |
copyOf(SlackDialogIF instance)
Creates an immutable copy of a
SlackDialogIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackDialog that have equal attribute values. |
String |
getCallbackId() |
List<SlackDialogFormElement> |
getElements() |
Optional<Boolean> |
getNotifyOnCancel() |
Optional<String> |
getState() |
Optional<String> |
getSubmitLabel() |
String |
getTitle() |
int |
hashCode()
Computes a hash code from attributes:
title, callbackId, elements, state, submitLabel, notifyOnCancel. |
String |
toString()
Prints the immutable value
SlackDialog with attribute values. |
SlackDialog |
withCallbackId(String callbackId)
Copy the current immutable object by setting a value for the
callbackId attribute. |
SlackDialog |
withElements(Iterable<? extends SlackDialogFormElement> elements)
Copy the current immutable object with elements that replace the content of
elements. |
SlackDialog |
withElements(SlackDialogFormElement... elements)
Copy the current immutable object with elements that replace the content of
elements. |
SlackDialog |
withNotifyOnCancel(Boolean value)
Copy the current immutable object by setting a present value for the optional
notifyOnCancel attribute. |
SlackDialog |
withNotifyOnCancel(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
notifyOnCancel attribute. |
SlackDialog |
withState(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
state attribute. |
SlackDialog |
withState(String value)
Copy the current immutable object by setting a present value for the optional
state attribute. |
SlackDialog |
withSubmitLabel(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
submitLabel attribute. |
SlackDialog |
withSubmitLabel(String value)
Copy the current immutable object by setting a present value for the optional
submitLabel attribute. |
SlackDialog |
withTitle(String title)
Copy the current immutable object by setting a value for the
title attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitvalidatepublic String getTitle()
getTitle in interface SlackDialogIFtitle attributepublic String getCallbackId()
getCallbackId in interface SlackDialogIFcallbackId attributepublic List<SlackDialogFormElement> getElements()
getElements in interface SlackDialogIFelements attributepublic Optional<String> getState()
getState in interface SlackDialogIFstate attributepublic Optional<String> getSubmitLabel()
getSubmitLabel in interface SlackDialogIFsubmitLabel attributepublic Optional<Boolean> getNotifyOnCancel()
getNotifyOnCancel in interface SlackDialogIFnotifyOnCancel attributepublic final SlackDialog withTitle(String title)
title attribute.
An equals check used to prevent copying of the same value by returning this.title - A new value for titlethis objectpublic final SlackDialog withCallbackId(String callbackId)
callbackId attribute.
An equals check used to prevent copying of the same value by returning this.callbackId - A new value for callbackIdthis objectpublic final SlackDialog withElements(SlackDialogFormElement... elements)
elements.elements - The elements to setthis objectpublic final SlackDialog withElements(Iterable<? extends SlackDialogFormElement> elements)
elements.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of elements elements to setthis objectpublic final SlackDialog withState(@Nullable String value)
state attribute.value - The value for state, null is accepted as java.util.Optional.empty()this objectpublic final SlackDialog withState(Optional<String> optional)
state attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for statethis objectpublic final SlackDialog withSubmitLabel(@Nullable String value)
submitLabel attribute.value - The value for submitLabel, null is accepted as java.util.Optional.empty()this objectpublic final SlackDialog withSubmitLabel(Optional<String> optional)
submitLabel attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for submitLabelthis objectpublic final SlackDialog withNotifyOnCancel(@Nullable Boolean value)
notifyOnCancel attribute.value - The value for notifyOnCancel, null is accepted as java.util.Optional.empty()this objectpublic final SlackDialog withNotifyOnCancel(Optional<Boolean> optional)
notifyOnCancel attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for notifyOnCancelthis objectpublic boolean equals(@Nullable Object another)
SlackDialog that have equal attribute values.public int hashCode()
title, callbackId, elements, state, submitLabel, notifyOnCancel.public String toString()
SlackDialog with attribute values.public static SlackDialog copyOf(SlackDialogIF instance)
SlackDialogIF 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 SlackDialog.Builder builder()
SlackDialog.Copyright © 2019. All rights reserved.