Class ViewPlainTextInput
java.lang.Object
com.hubspot.slack.client.models.interaction.views.ViewPlainTextInput
- All Implemented Interfaces:
ViewInput,ViewPlainTextInputIF
@Generated(from="ViewPlainTextInputIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ViewPlainTextInput
extends Object
implements ViewPlainTextInputIF
Immutable implementation of
ViewPlainTextInputIF.
Use the builder to create immutable instances:
ViewPlainTextInput.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ViewPlainTextInput.Builderbuilder()Creates a builder forViewPlainTextInput.static ViewPlainTextInputcopyOf(ViewPlainTextInputIF instance) Creates an immutable copy of aViewPlainTextInputIFvalue.booleanThis instance is equal to all instances ofViewPlainTextInputthat have equal attribute values.getType()getValue()inthashCode()Computes a hash code from attributes:type,value.toString()Prints the immutable valueViewPlainTextInputwith attribute values.final ViewPlainTextInputwithType(ViewInputType value) Copy the current immutable object by setting a value for thetypeattribute.final ViewPlainTextInputCopy the current immutable object by setting a present value for the optionalvalueattribute.final ViewPlainTextInputCopy the current immutable object by setting an optional value for thevalueattribute.Methods inherited from interface com.hubspot.slack.client.models.interaction.views.ViewPlainTextInputIF
getStringValue
-
Method Details
-
getType
-
getValue
- Specified by:
getValuein interfaceViewPlainTextInputIF- 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 ofViewPlainTextInputthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,value. -
toString
Prints the immutable valueViewPlainTextInputwith attribute values. -
copyOf
Creates an immutable copy of aViewPlainTextInputIFvalue. 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 ViewPlainTextInput instance
-
builder
Creates a builder forViewPlainTextInput.ViewPlainTextInput.builder() .setType(com.hubspot.slack.client.models.interaction.views.ViewInputType) // requiredtype.setValue(Optional<String>) // optionalvalue.build();- Returns:
- A new ViewPlainTextInput builder
-