@NotThreadSafe public static final class SlackFormSelectElement.Builder extends Object
SlackFormSelectElement.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
public final SlackFormSelectElement.Builder from(SlackDialogFormElement instance)
com.hubspot.slack.client.models.dialog.form.elements.SlackDialogFormElement instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SlackFormSelectElement.Builder from(AbstractSlackFormSelectElement instance)
com.hubspot.slack.client.models.dialog.form.elements.AbstractSlackFormSelectElement instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SlackFormSelectElement.Builder setType(SlackFormElementTypes type)
type attribute.
If not set, this attribute will have a default value as returned by the initializer of type.
type - The value for typethis builder for use in a chained invocationpublic final SlackFormSelectElement.Builder setDataSource(SlackDataSource dataSource)
dataSource attribute.
If not set, this attribute will have a default value as returned by the initializer of dataSource.
dataSource - The value for dataSourcethis builder for use in a chained invocationpublic final SlackFormSelectElement.Builder addOptions(SlackFormOption element)
options list.element - A options elementthis builder for use in a chained invocationpublic final SlackFormSelectElement.Builder addOptions(SlackFormOption... elements)
options list.elements - An array of options elementsthis builder for use in a chained invocationpublic final SlackFormSelectElement.Builder setOptions(Iterable<? extends SlackFormOption> elements)
options list.elements - An iterable of options elementsthis builder for use in a chained invocationpublic final SlackFormSelectElement.Builder addAllOptions(Iterable<? extends SlackFormOption> elements)
options list.elements - An iterable of options elementsthis builder for use in a chained invocationpublic final SlackFormSelectElement.Builder addOptionGroups(SlackFormOptionGroup element)
optionGroups list.element - A optionGroups elementthis builder for use in a chained invocationpublic final SlackFormSelectElement.Builder addOptionGroups(SlackFormOptionGroup... elements)
optionGroups list.elements - An array of optionGroups elementsthis builder for use in a chained invocationpublic final SlackFormSelectElement.Builder setOptionGroups(Iterable<? extends SlackFormOptionGroup> elements)
optionGroups list.elements - An iterable of optionGroups elementsthis builder for use in a chained invocationpublic final SlackFormSelectElement.Builder addAllOptionGroups(Iterable<? extends SlackFormOptionGroup> elements)
optionGroups list.elements - An iterable of optionGroups elementsthis builder for use in a chained invocationpublic final SlackFormSelectElement.Builder setValue(@Nullable String value)
value to value.value - The value for value, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackFormSelectElement.Builder setValue(Optional<String> value)
value to value.value - The value for valuethis builder for use in a chained invocationpublic final SlackFormSelectElement.Builder addSelectedOptions(SlackFormOption element)
selectedOptions list.element - A selectedOptions elementthis builder for use in a chained invocationpublic final SlackFormSelectElement.Builder addSelectedOptions(SlackFormOption... elements)
selectedOptions list.elements - An array of selectedOptions elementsthis builder for use in a chained invocationpublic final SlackFormSelectElement.Builder setSelectedOptions(Iterable<? extends SlackFormOption> elements)
selectedOptions list.elements - An iterable of selectedOptions elementsthis builder for use in a chained invocationpublic final SlackFormSelectElement.Builder addAllSelectedOptions(Iterable<? extends SlackFormOption> elements)
selectedOptions list.elements - An iterable of selectedOptions elementsthis builder for use in a chained invocationpublic final SlackFormSelectElement.Builder setMinQueryLength(@Nullable Integer minQueryLength)
minQueryLength to minQueryLength.minQueryLength - The value for minQueryLength, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackFormSelectElement.Builder setMinQueryLength(Optional<Integer> minQueryLength)
minQueryLength to minQueryLength.minQueryLength - The value for minQueryLengththis builder for use in a chained invocationpublic final SlackFormSelectElement.Builder setName(String name)
name attribute.name - The value for namethis builder for use in a chained invocationpublic final SlackFormSelectElement.Builder setLabel(String label)
label attribute.label - The value for labelthis builder for use in a chained invocationpublic final SlackFormSelectElement.Builder setPlaceholder(@Nullable String placeholder)
placeholder to placeholder.placeholder - The value for placeholder, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackFormSelectElement.Builder setPlaceholder(Optional<String> placeholder)
placeholder to placeholder.placeholder - The value for placeholderthis builder for use in a chained invocationpublic final SlackFormSelectElement.Builder setOptional(@Nullable Boolean optional)
optional to optional.optional - The value for optional, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackFormSelectElement.Builder setOptional(Optional<Boolean> optional)
optional to optional.optional - The value for optionalthis builder for use in a chained invocationpublic SlackFormSelectElement build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
SlackFormSelectElement.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.