Class ViewTimePicker.Builder
java.lang.Object
com.hubspot.slack.client.models.interaction.views.ViewTimePicker.Builder
- Enclosing class:
ViewTimePicker
@Generated(from="ViewTimePickerIF",
generator="Immutables")
@NotThreadSafe
public static final class ViewTimePicker.Builder
extends Object
Builds instances of type
ViewTimePicker.
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 newViewTimePicker.final ViewTimePicker.BuilderFill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.views.ViewInputinstance.final ViewTimePicker.Builderfrom(ViewTimePickerIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.views.ViewTimePickerIFinstance.final ViewTimePicker.BuildersetSelectedTime(LocalTime selectedTime) Initializes the optional valueselectedTimeto selectedTime.final ViewTimePicker.BuildersetSelectedTime(Optional<? extends LocalTime> selectedTime) Initializes the optional valueselectedTimeto selectedTime.final ViewTimePicker.BuildersetStringValue(String stringValue) Initializes the optional valuestringValueto stringValue.final ViewTimePicker.BuildersetStringValue(Optional<String> stringValue) Initializes the optional valuestringValueto stringValue.final ViewTimePicker.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.ViewTimePickerIFinstance.- 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.ViewInputinstance.- 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
-
setSelectedTime
Initializes the optional valueselectedTimeto selectedTime.- Parameters:
selectedTime- The value for selectedTime,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setSelectedTime
Initializes the optional valueselectedTimeto selectedTime.- Parameters:
selectedTime- The value for selectedTime- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newViewTimePicker.- Returns:
- An immutable instance of ViewTimePicker
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-