Class NumberInput
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.NumberInput
- All Implemented Interfaces:
BlockElement,HasActionId,NumberInputIF
@Generated(from="NumberInputIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class NumberInput
extends Object
implements NumberInputIF
Immutable implementation of
NumberInputIF.
Use the builder to create immutable instances:
NumberInput.builder().
Use the static factory method to create immutable instances:
NumberInput.of().
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.blocks.elements.NumberInputIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic NumberInput.Builderbuilder()Creates a builder forNumberInput.static NumberInputcopyOf(NumberInputIF instance) Creates an immutable copy of aNumberInputIFvalue.booleanThis instance is equal to all instances ofNumberInputthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,actionId,decimalAllowed,placeholder,initialValue,minValue,maxValue,focusOnLoad.booleanstatic NumberInputConstruct a new immutableNumberInputinstance.toString()Prints the immutable valueNumberInputwith attribute values.final NumberInputwithActionId(String value) Copy the current immutable object by setting a value for theactionIdattribute.final NumberInputwithDecimalAllowed(boolean value) Copy the current immutable object by setting a value for thedecimalAllowedattribute.final NumberInputwithFocusOnLoad(Boolean value) Copy the current immutable object by setting a present value for the optionalfocusOnLoadattribute.final NumberInputwithFocusOnLoad(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for thefocusOnLoadattribute.final NumberInputwithInitialValue(String value) Copy the current immutable object by setting a present value for the optionalinitialValueattribute.final NumberInputwithInitialValue(Optional<String> optional) Copy the current immutable object by setting an optional value for theinitialValueattribute.final NumberInputwithMaxValue(String value) Copy the current immutable object by setting a present value for the optionalmaxValueattribute.final NumberInputwithMaxValue(Optional<String> optional) Copy the current immutable object by setting an optional value for themaxValueattribute.final NumberInputwithMinValue(String value) Copy the current immutable object by setting a present value for the optionalminValueattribute.final NumberInputwithMinValue(Optional<String> optional) Copy the current immutable object by setting an optional value for theminValueattribute.final NumberInputwithPlaceholder(Text value) Copy the current immutable object by setting a present value for the optionalplaceholderattribute.final NumberInputwithPlaceholder(Optional<? extends Text> optional) Copy the current immutable object by setting an optional value for theplaceholderattribute.Methods inherited from interface com.hubspot.slack.client.models.blocks.elements.NumberInputIF
validate
-
Method Details
-
getType
- Specified by:
getTypein interfaceBlockElement- Specified by:
getTypein interfaceNumberInputIF- Returns:
- The computed-at-construction value of the
typeattribute
-
getActionId
- Specified by:
getActionIdin interfaceHasActionId- Specified by:
getActionIdin interfaceNumberInputIF- Returns:
- The value of the
actionIdattribute
-
isDecimalAllowed
public boolean isDecimalAllowed()- Specified by:
isDecimalAllowedin interfaceNumberInputIF- Returns:
- The value of the
decimalAllowedattribute
-
getPlaceholder
- Specified by:
getPlaceholderin interfaceNumberInputIF- Returns:
- The value of the
placeholderattribute
-
getInitialValue
- Specified by:
getInitialValuein interfaceNumberInputIF- Returns:
- The value of the
initialValueattribute
-
getMinValue
- Specified by:
getMinValuein interfaceNumberInputIF- Returns:
- The value of the
minValueattribute
-
getMaxValue
- Specified by:
getMaxValuein interfaceNumberInputIF- Returns:
- The value of the
maxValueattribute
-
isFocusOnLoad
- Specified by:
isFocusOnLoadin interfaceNumberInputIF- Returns:
- The value of the
focusOnLoadattribute
-
withActionId
Copy the current immutable object by setting a value for theactionIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for actionId- Returns:
- A modified copy or the
thisobject
-
withDecimalAllowed
Copy the current immutable object by setting a value for thedecimalAllowedattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for decimalAllowed- Returns:
- A modified copy or the
thisobject
-
withPlaceholder
Copy the current immutable object by setting a present value for the optionalplaceholderattribute.- Parameters:
value- The value for placeholder,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withPlaceholder
Copy the current immutable object by setting an optional value for theplaceholderattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for placeholder- Returns:
- A modified copy or
thisif not changed
-
withInitialValue
Copy the current immutable object by setting a present value for the optionalinitialValueattribute.- Parameters:
value- The value for initialValue,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withInitialValue
Copy the current immutable object by setting an optional value for theinitialValueattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for initialValue- Returns:
- A modified copy or
thisif not changed
-
withMinValue
Copy the current immutable object by setting a present value for the optionalminValueattribute.- Parameters:
value- The value for minValue,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withMinValue
Copy the current immutable object by setting an optional value for theminValueattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for minValue- Returns:
- A modified copy or
thisif not changed
-
withMaxValue
Copy the current immutable object by setting a present value for the optionalmaxValueattribute.- Parameters:
value- The value for maxValue,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withMaxValue
Copy the current immutable object by setting an optional value for themaxValueattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for maxValue- Returns:
- A modified copy or
thisif not changed
-
withFocusOnLoad
Copy the current immutable object by setting a present value for the optionalfocusOnLoadattribute.- Parameters:
value- The value for focusOnLoad,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withFocusOnLoad
Copy the current immutable object by setting an optional value for thefocusOnLoadattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for focusOnLoad- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofNumberInputthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,actionId,decimalAllowed,placeholder,initialValue,minValue,maxValue,focusOnLoad. -
toString
Prints the immutable valueNumberInputwith attribute values. -
of
Construct a new immutableNumberInputinstance.- Parameters:
actionId- The value for theactionIdattributedecimalAllowed- The value for thedecimalAllowedattribute- Returns:
- An immutable NumberInput instance
-
copyOf
Creates an immutable copy of aNumberInputIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable NumberInput instance
-
builder
Creates a builder forNumberInput.NumberInput.builder() .setActionId(String) // requiredactionId.setDecimalAllowed(boolean) // requireddecimalAllowed.setPlaceholder(Optional<com.hubspot.slack.client.models.blocks.objects.Text>) // optionalplaceholder.setInitialValue(Optional<String>) // optionalinitialValue.setMinValue(Optional<String>) // optionalminValue.setMaxValue(Optional<String>) // optionalmaxValue.setFocusOnLoad(Optional<Boolean>) // optionalfocusOnLoad.build();- Returns:
- A new NumberInput builder
-