Class EmailInput
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.EmailInput
- All Implemented Interfaces:
BlockElement,EmailInputIF,HasActionId
@Generated(from="EmailInputIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class EmailInput
extends Object
implements EmailInputIF
Immutable implementation of
EmailInputIF.
Use the builder to create immutable instances:
EmailInput.builder().
Use the static factory method to create immutable instances:
EmailInput.of().
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.blocks.elements.EmailInputIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic EmailInput.Builderbuilder()Creates a builder forEmailInput.static EmailInputcopyOf(EmailInputIF instance) Creates an immutable copy of aEmailInputIFvalue.booleanThis instance is equal to all instances ofEmailInputthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,actionId,placeholder,initialValue,focusOnLoad.static EmailInputConstruct a new immutableEmailInputinstance.toString()Prints the immutable valueEmailInputwith attribute values.final EmailInputwithActionId(String value) Copy the current immutable object by setting a value for theactionIdattribute.final EmailInputwithFocusOnLoad(Boolean value) Copy the current immutable object by setting a present value for the optionalfocusOnLoadattribute.final EmailInputwithFocusOnLoad(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for thefocusOnLoadattribute.final EmailInputwithInitialValue(String value) Copy the current immutable object by setting a present value for the optionalinitialValueattribute.final EmailInputwithInitialValue(Optional<String> optional) Copy the current immutable object by setting an optional value for theinitialValueattribute.final EmailInputwithPlaceholder(Text value) Copy the current immutable object by setting a present value for the optionalplaceholderattribute.final EmailInputwithPlaceholder(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.EmailInputIF
validate
-
Method Details
-
getType
- Specified by:
getTypein interfaceBlockElement- Specified by:
getTypein interfaceEmailInputIF- Returns:
- The computed-at-construction value of the
typeattribute
-
getActionId
- Specified by:
getActionIdin interfaceEmailInputIF- Specified by:
getActionIdin interfaceHasActionId- Returns:
- The value of the
actionIdattribute
-
getPlaceholder
- Specified by:
getPlaceholderin interfaceEmailInputIF- Returns:
- The value of the
placeholderattribute
-
getInitialValue
- Specified by:
getInitialValuein interfaceEmailInputIF- Returns:
- The value of the
initialValueattribute
-
isFocusOnLoad
- Specified by:
isFocusOnLoadin interfaceEmailInputIF- 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
-
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
-
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 ofEmailInputthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,actionId,placeholder,initialValue,focusOnLoad. -
toString
Prints the immutable valueEmailInputwith attribute values. -
of
Construct a new immutableEmailInputinstance.- Parameters:
actionId- The value for theactionIdattribute- Returns:
- An immutable EmailInput instance
-
copyOf
Creates an immutable copy of aEmailInputIFvalue. 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 EmailInput instance
-
builder
Creates a builder forEmailInput.EmailInput.builder() .setActionId(String) // requiredactionId.setPlaceholder(Optional<com.hubspot.slack.client.models.blocks.objects.Text>) // optionalplaceholder.setInitialValue(Optional<String>) // optionalinitialValue.setFocusOnLoad(Optional<Boolean>) // optionalfocusOnLoad.build();- Returns:
- A new EmailInput builder
-