Class ViewDatePicker.Builder
java.lang.Object
com.hubspot.slack.client.models.interaction.views.ViewDatePicker.Builder
- Enclosing class:
ViewDatePicker
@Generated(from="ViewDatePickerIF",
generator="Immutables")
@NotThreadSafe
public static final class ViewDatePicker.Builder
extends Object
Builds instances of type
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.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newViewDatePicker.final ViewDatePicker.Builderfrom(ViewDatePickerIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.views.ViewDatePickerIFinstance.final ViewDatePicker.BuilderFill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.views.ViewInputinstance.final ViewDatePicker.BuildersetSelectedDate(LocalDate selectedDate) Initializes the optional valueselectedDateto selectedDate.final ViewDatePicker.BuildersetSelectedDate(Optional<? extends LocalDate> selectedDate) Initializes the optional valueselectedDateto selectedDate.final ViewDatePicker.BuildersetStringValue(String stringValue) Initializes the optional valuestringValueto stringValue.final ViewDatePicker.BuildersetStringValue(Optional<String> stringValue) Initializes the optional valuestringValueto stringValue.final ViewDatePicker.BuildersetType(ViewInputType type) Initializes the value for thetypeattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.views.ViewInputinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.views.ViewDatePickerIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setType
Initializes the value for thetypeattribute.- Parameters:
type- The value for type- Returns:
thisbuilder for use in a chained invocation
-
setStringValue
Initializes the optional valuestringValueto stringValue.- Parameters:
stringValue- The value for stringValue,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setStringValue
Initializes the optional valuestringValueto stringValue.- Parameters:
stringValue- The value for stringValue- Returns:
thisbuilder for use in a chained invocation
-
setSelectedDate
Initializes the optional valueselectedDateto selectedDate.- Parameters:
selectedDate- The value for selectedDate,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setSelectedDate
Initializes the optional valueselectedDateto selectedDate.- Parameters:
selectedDate- The value for selectedDate- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newViewDatePicker.- Returns:
- An immutable instance of ViewDatePicker
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-