Class UrlInput
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.UrlInput
- All Implemented Interfaces:
BlockElement,HasActionId,UrlInputIF
@Generated(from="UrlInputIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class UrlInput
extends Object
implements UrlInputIF
Immutable implementation of
UrlInputIF.
Use the builder to create immutable instances:
UrlInput.builder().
Use the static factory method to create immutable instances:
UrlInput.of().
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.blocks.elements.UrlInputIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic UrlInput.Builderbuilder()Creates a builder forUrlInput.static UrlInputcopyOf(UrlInputIF instance) Creates an immutable copy of aUrlInputIFvalue.booleanThis instance is equal to all instances ofUrlInputthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,actionId,placeholder,initialValue,focusOnLoad.static UrlInputConstruct a new immutableUrlInputinstance.toString()Prints the immutable valueUrlInputwith attribute values.final UrlInputwithActionId(String value) Copy the current immutable object by setting a value for theactionIdattribute.final UrlInputwithFocusOnLoad(Boolean value) Copy the current immutable object by setting a present value for the optionalfocusOnLoadattribute.final UrlInputwithFocusOnLoad(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for thefocusOnLoadattribute.final UrlInputwithInitialValue(String value) Copy the current immutable object by setting a present value for the optionalinitialValueattribute.final UrlInputwithInitialValue(Optional<String> optional) Copy the current immutable object by setting an optional value for theinitialValueattribute.final UrlInputwithPlaceholder(Text value) Copy the current immutable object by setting a present value for the optionalplaceholderattribute.final UrlInputwithPlaceholder(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.UrlInputIF
validate
-
Method Details
-
getType
- Specified by:
getTypein interfaceBlockElement- Specified by:
getTypein interfaceUrlInputIF- Returns:
- The computed-at-construction value of the
typeattribute
-
getActionId
- Specified by:
getActionIdin interfaceHasActionId- Specified by:
getActionIdin interfaceUrlInputIF- Returns:
- The value of the
actionIdattribute
-
getPlaceholder
- Specified by:
getPlaceholderin interfaceUrlInputIF- Returns:
- The value of the
placeholderattribute
-
getInitialValue
- Specified by:
getInitialValuein interfaceUrlInputIF- Returns:
- The value of the
initialValueattribute
-
isFocusOnLoad
- Specified by:
isFocusOnLoadin interfaceUrlInputIF- 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 ofUrlInputthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,actionId,placeholder,initialValue,focusOnLoad. -
toString
Prints the immutable valueUrlInputwith attribute values. -
of
Construct a new immutableUrlInputinstance.- Parameters:
actionId- The value for theactionIdattribute- Returns:
- An immutable UrlInput instance
-
copyOf
Creates an immutable copy of aUrlInputIFvalue. 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 UrlInput instance
-
builder
Creates a builder forUrlInput.UrlInput.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 UrlInput builder
-