@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ViewResponseActionIF"}) @Immutable public final class ViewResponseAction extends Object implements ViewResponseActionIF
ViewResponseActionIF.
Use the builder to create immutable instances:
ViewResponseAction.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ViewResponseAction.Builder
Builds instances of type
ViewResponseAction. |
| Modifier and Type | Method and Description |
|---|---|
static ViewResponseAction.Builder |
builder()
Creates a builder for
ViewResponseAction. |
static ViewResponseAction |
copyOf(ViewResponseActionIF instance)
Creates an immutable copy of a
ViewResponseActionIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ViewResponseAction that have equal attribute values. |
Map<String,String> |
getErrors() |
String |
getResponseAction() |
Optional<ModalViewPayload> |
getView() |
int |
hashCode()
Computes a hash code from attributes:
responseAction, view, errors. |
String |
toString()
Prints the immutable value
ViewResponseAction with attribute values. |
ViewResponseAction |
withErrors(Map<String,? extends String> errors)
Copy the current immutable object by replacing the
errors map with the specified map. |
ViewResponseAction |
withResponseAction(String responseAction)
Copy the current immutable object by setting a value for the
responseAction attribute. |
ViewResponseAction |
withView(ModalViewPayload value)
Copy the current immutable object by setting a present value for the optional
view attribute. |
ViewResponseAction |
withView(Optional<ModalViewPayload> optional)
Copy the current immutable object by setting an optional value for the
view attribute. |
public String getResponseAction()
getResponseAction in interface ViewResponseActionIFresponseAction attributepublic Optional<ModalViewPayload> getView()
getView in interface ViewResponseActionIFview attributepublic Map<String,String> getErrors()
getErrors in interface ViewResponseActionIFerrors attributepublic final ViewResponseAction withResponseAction(String responseAction)
responseAction attribute.
An equals check used to prevent copying of the same value by returning this.responseAction - A new value for responseActionthis objectpublic final ViewResponseAction withView(@Nullable ModalViewPayload value)
view attribute.value - The value for view, null is accepted as java.util.Optional.empty()this objectpublic final ViewResponseAction withView(Optional<ModalViewPayload> optional)
view attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for viewthis objectpublic final ViewResponseAction withErrors(Map<String,? extends String> errors)
errors map 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 returning this.errors - The entries to be added to the errors mapthis objectpublic boolean equals(@Nullable Object another)
ViewResponseAction that have equal attribute values.public int hashCode()
responseAction, view, errors.public String toString()
ViewResponseAction with attribute values.public static ViewResponseAction copyOf(ViewResponseActionIF instance)
ViewResponseActionIF value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ViewResponseAction.Builder builder()
ViewResponseAction.Copyright © 2020. All rights reserved.