Class ViewDateTimePicker.Builder
java.lang.Object
com.hubspot.slack.client.models.interaction.views.ViewDateTimePicker.Builder
- Enclosing class:
ViewDateTimePicker
@Generated(from="ViewDateTimePickerIF",
generator="Immutables")
@NotThreadSafe
public static final class ViewDateTimePicker.Builder
extends Object
Builds instances of type
ViewDateTimePicker.
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 newViewDateTimePicker.from(ViewDateTimePickerIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.views.ViewDateTimePickerIFinstance.Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.views.ViewInputinstance.setSelectedDateTime(Integer selectedDateTime) Initializes the optional valueselectedDateTimeto selectedDateTime.setSelectedDateTime(Optional<Integer> selectedDateTime) Initializes the optional valueselectedDateTimeto selectedDateTime.setStringValue(String stringValue) Initializes the optional valuestringValueto stringValue.setStringValue(Optional<String> stringValue) Initializes the optional valuestringValueto stringValue.setType(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.ViewDateTimePickerIFinstance.- 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
-
setSelectedDateTime
Initializes the optional valueselectedDateTimeto selectedDateTime.- Parameters:
selectedDateTime- The value for selectedDateTime,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setSelectedDateTime
Initializes the optional valueselectedDateTimeto selectedDateTime.- Parameters:
selectedDateTime- The value for selectedDateTime- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newViewDateTimePicker.- Returns:
- An immutable instance of ViewDateTimePicker
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-