Class ViewResponseAction
java.lang.Object
com.hubspot.slack.client.models.interaction.ViewResponseAction
- All Implemented Interfaces:
ViewResponseActionIF
@Generated(from="ViewResponseActionIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ViewResponseAction
extends Object
implements ViewResponseActionIF
Immutable implementation of
ViewResponseActionIF.
Use the builder to create immutable instances:
ViewResponseAction.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ViewResponseAction.Builderbuilder()Creates a builder forViewResponseAction.static ViewResponseActioncopyOf(ViewResponseActionIF instance) Creates an immutable copy of aViewResponseActionIFvalue.booleanThis instance is equal to all instances ofViewResponseActionthat have equal attribute values.getView()inthashCode()Computes a hash code from attributes:responseAction,view,errors.toString()Prints the immutable valueViewResponseActionwith attribute values.final ViewResponseActionwithErrors(Map<String, ? extends String> entries) Copy the current immutable object by replacing theerrorsmap with the specified map.final ViewResponseActionwithResponseAction(String value) Copy the current immutable object by setting a value for theresponseActionattribute.final ViewResponseActionwithView(ModalViewPayload value) Copy the current immutable object by setting a present value for the optionalviewattribute.final ViewResponseActionwithView(Optional<? extends ModalViewPayload> optional) Copy the current immutable object by setting an optional value for theviewattribute.
-
Method Details
-
getResponseAction
- Specified by:
getResponseActionin interfaceViewResponseActionIF- Returns:
- The value of the
responseActionattribute
-
getView
- Specified by:
getViewin interfaceViewResponseActionIF- Returns:
- The value of the
viewattribute
-
getErrors
- Specified by:
getErrorsin interfaceViewResponseActionIF- Returns:
- The value of the
errorsattribute
-
withResponseAction
Copy the current immutable object by setting a value for theresponseActionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for responseAction- Returns:
- A modified copy or the
thisobject
-
withView
Copy the current immutable object by setting a present value for the optionalviewattribute.- Parameters:
value- The value for view,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withView
Copy the current immutable object by setting an optional value for theviewattribute. 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 view- Returns:
- A modified copy or
thisif not changed
-
withErrors
Copy the current immutable object by replacing theerrorsmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to replace the errors map- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofViewResponseActionthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:responseAction,view,errors. -
toString
Prints the immutable valueViewResponseActionwith attribute values. -
copyOf
Creates an immutable copy of aViewResponseActionIFvalue. 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 ViewResponseAction instance
-
builder
Creates a builder forViewResponseAction.ViewResponseAction.builder() .setResponseAction(String) // requiredresponseAction.setView(Optional<com.hubspot.slack.client.models.views.ModalViewPayload>) // optionalview.putErrors|putAllErrors(String => String) //errorsmappings .build();- Returns:
- A new ViewResponseAction builder
-