Class ViewNumberInput
java.lang.Object
com.hubspot.slack.client.models.interaction.views.ViewNumberInput
- All Implemented Interfaces:
ViewInput,ViewNumberInputIF
@Generated(from="ViewNumberInputIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ViewNumberInput
extends Object
implements ViewNumberInputIF
Immutable implementation of
ViewNumberInputIF.
Use the builder to create immutable instances:
ViewNumberInput.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ViewNumberInput.Builderbuilder()Creates a builder forViewNumberInput.static ViewNumberInputcopyOf(ViewNumberInputIF instance) Creates an immutable copy of aViewNumberInputIFvalue.booleanThis instance is equal to all instances ofViewNumberInputthat have equal attribute values.getType()getValue()inthashCode()Computes a hash code from attributes:type,value.toString()Prints the immutable valueViewNumberInputwith attribute values.final ViewNumberInputwithType(ViewInputType value) Copy the current immutable object by setting a value for thetypeattribute.final ViewNumberInputCopy the current immutable object by setting a present value for the optionalvalueattribute.final ViewNumberInputCopy the current immutable object by setting an optional value for thevalueattribute.Methods inherited from interface com.hubspot.slack.client.models.interaction.views.ViewNumberInputIF
getStringValue
-
Method Details
-
getType
-
getValue
- Specified by:
getValuein interfaceViewNumberInputIF- Returns:
- The value of the
valueattribute
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy or the
thisobject
-
withValue
Copy the current immutable object by setting a present value for the optionalvalueattribute.- Parameters:
value- The value for value,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withValue
Copy the current immutable object by setting an optional value for thevalueattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for value- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofViewNumberInputthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,value. -
toString
Prints the immutable valueViewNumberInputwith attribute values. -
copyOf
Creates an immutable copy of aViewNumberInputIFvalue. 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 ViewNumberInput instance
-
builder
Creates a builder forViewNumberInput.ViewNumberInput.builder() .setType(com.hubspot.slack.client.models.interaction.views.ViewInputType) // requiredtype.setValue(Optional<String>) // optionalvalue.build();- Returns:
- A new ViewNumberInput builder
-