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