@NotThreadSafe public static final class ViewDatePicker.Builder extends Object
ViewDatePicker.
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.
| Modifier and Type | Method and Description |
|---|---|
ViewDatePicker |
build()
Builds a new
ViewDatePicker. |
ViewDatePicker.Builder |
from(ViewDatePickerIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.interaction.views.ViewDatePickerIF instance. |
ViewDatePicker.Builder |
from(ViewInput instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.interaction.views.ViewInput instance. |
ViewDatePicker.Builder |
setSelectedDate(LocalDate selectedDate)
Initializes the optional value
selectedDate to selectedDate. |
ViewDatePicker.Builder |
setSelectedDate(Optional<LocalDate> selectedDate)
Initializes the optional value
selectedDate to selectedDate. |
ViewDatePicker.Builder |
setType(ViewInputType type)
Initializes the value for the
type attribute. |
public final ViewDatePicker.Builder from(ViewDatePickerIF instance)
com.hubspot.slack.client.models.interaction.views.ViewDatePickerIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ViewDatePicker.Builder from(ViewInput instance)
com.hubspot.slack.client.models.interaction.views.ViewInput instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ViewDatePicker.Builder setSelectedDate(@Nullable LocalDate selectedDate)
selectedDate to selectedDate.selectedDate - The value for selectedDate, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final ViewDatePicker.Builder setSelectedDate(Optional<LocalDate> selectedDate)
selectedDate to selectedDate.selectedDate - The value for selectedDatethis builder for use in a chained invocationpublic final ViewDatePicker.Builder setType(ViewInputType type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic ViewDatePicker build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ViewDatePicker.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2020. All rights reserved.