@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ViewInteractionPayloadIF"}) @Immutable public final class ViewInteractionPayload extends Object implements ViewInteractionPayloadIF
ViewInteractionPayloadIF.
Use the builder to create immutable instances:
ViewInteractionPayload.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ViewInteractionPayload.Builder
Builds instances of type
ViewInteractionPayload. |
| Modifier and Type | Method and Description |
|---|---|
static ViewInteractionPayload.Builder |
builder()
Creates a builder for
ViewInteractionPayload. |
static ViewInteractionPayload |
copyOf(ViewInteractionPayloadIF instance)
Creates an immutable copy of a
ViewInteractionPayloadIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ViewInteractionPayload that have equal attribute values. |
List<Block> |
getBlocks() |
Optional<String> |
getCallbackId() |
Optional<String> |
getExternalId() |
String |
getHash() |
Optional<String> |
getPrivateMetadata() |
ViewStateValuesPayload |
getState() |
String |
getType() |
int |
hashCode()
Computes a hash code from attributes:
state, hash, type, blocks, privateMetadata, callbackId, externalId. |
String |
toString()
Prints the immutable value
ViewInteractionPayload with attribute values. |
ViewInteractionPayload |
withBlocks(Block... elements)
Copy the current immutable object with elements that replace the content of
blocks. |
ViewInteractionPayload |
withBlocks(Iterable<? extends Block> elements)
Copy the current immutable object with elements that replace the content of
blocks. |
ViewInteractionPayload |
withCallbackId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
callbackId attribute. |
ViewInteractionPayload |
withCallbackId(String value)
Copy the current immutable object by setting a present value for the optional
callbackId attribute. |
ViewInteractionPayload |
withExternalId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
externalId attribute. |
ViewInteractionPayload |
withExternalId(String value)
Copy the current immutable object by setting a present value for the optional
externalId attribute. |
ViewInteractionPayload |
withHash(String hash)
Copy the current immutable object by setting a value for the
hash attribute. |
ViewInteractionPayload |
withPrivateMetadata(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
privateMetadata attribute. |
ViewInteractionPayload |
withPrivateMetadata(String value)
Copy the current immutable object by setting a present value for the optional
privateMetadata attribute. |
ViewInteractionPayload |
withState(ViewStateValuesPayload state)
Copy the current immutable object by setting a value for the
state attribute. |
ViewInteractionPayload |
withType(String type)
Copy the current immutable object by setting a value for the
type attribute. |
public ViewStateValuesPayload getState()
getState in interface ViewInteractionPayloadIFstate attributepublic String getHash()
getHash in interface ViewInteractionPayloadIFhash attributepublic String getType()
getType in interface ViewPayloadBasetype attributepublic List<Block> getBlocks()
getBlocks in interface ViewPayloadBaseblocks attributepublic Optional<String> getPrivateMetadata()
getPrivateMetadata in interface ViewPayloadBaseprivateMetadata attributepublic Optional<String> getCallbackId()
getCallbackId in interface ViewPayloadBasecallbackId attributepublic Optional<String> getExternalId()
getExternalId in interface ViewPayloadBaseexternalId attributepublic final ViewInteractionPayload withState(ViewStateValuesPayload state)
state attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.state - A new value for statethis objectpublic final ViewInteractionPayload withHash(String hash)
hash attribute.
An equals check used to prevent copying of the same value by returning this.hash - A new value for hashthis objectpublic final ViewInteractionPayload withType(String type)
type attribute.
An equals check used to prevent copying of the same value by returning this.type - A new value for typethis objectpublic final ViewInteractionPayload withBlocks(Block... elements)
blocks.elements - The elements to setthis objectpublic final ViewInteractionPayload withBlocks(Iterable<? extends Block> elements)
blocks.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of blocks elements to setthis objectpublic final ViewInteractionPayload withPrivateMetadata(@Nullable String value)
privateMetadata attribute.value - The value for privateMetadata, null is accepted as java.util.Optional.empty()this objectpublic final ViewInteractionPayload withPrivateMetadata(Optional<String> optional)
privateMetadata attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for privateMetadatathis objectpublic final ViewInteractionPayload withCallbackId(@Nullable String value)
callbackId attribute.value - The value for callbackId, null is accepted as java.util.Optional.empty()this objectpublic final ViewInteractionPayload withCallbackId(Optional<String> optional)
callbackId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for callbackIdthis objectpublic final ViewInteractionPayload withExternalId(@Nullable String value)
externalId attribute.value - The value for externalId, null is accepted as java.util.Optional.empty()this objectpublic final ViewInteractionPayload withExternalId(Optional<String> optional)
externalId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for externalIdthis objectpublic boolean equals(@Nullable Object another)
ViewInteractionPayload that have equal attribute values.public int hashCode()
state, hash, type, blocks, privateMetadata, callbackId, externalId.public String toString()
ViewInteractionPayload with attribute values.public static ViewInteractionPayload copyOf(ViewInteractionPayloadIF instance)
ViewInteractionPayloadIF 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 ViewInteractionPayload.Builder builder()
ViewInteractionPayload.Copyright © 2020. All rights reserved.