@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","HomeTabViewResponseIF"}) @Immutable public final class HomeTabViewResponse extends Object implements HomeTabViewResponseIF
HomeTabViewResponseIF.
Use the builder to create immutable instances:
HomeTabViewResponse.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
HomeTabViewResponse.Builder
Builds instances of type
HomeTabViewResponse. |
TYPE| Modifier and Type | Method and Description |
|---|---|
static HomeTabViewResponse.Builder |
builder()
Creates a builder for
HomeTabViewResponse. |
static HomeTabViewResponse |
copyOf(HomeTabViewResponseIF instance)
Creates an immutable copy of a
HomeTabViewResponseIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
HomeTabViewResponse that have equal attribute values. |
String |
getAppId() |
List<Block> |
getBlocks() |
String |
getBotId() |
Optional<String> |
getCallbackId() |
String |
getCurrentViewId() |
Optional<String> |
getExternalId() |
String |
getHash() |
Optional<String> |
getPreviousViewId() |
Optional<String> |
getPrivateMetadata() |
String |
getRootViewId() |
StateBlock |
getStateValues() |
String |
getTeamId() |
String |
getType() |
int |
hashCode()
Computes a hash code from attributes:
type, blocks, privateMetadata, callbackId, externalId, appId, botId, currentViewId, rootViewId, teamId, stateValues, hash, previousViewId. |
String |
toString()
Prints the immutable value
HomeTabViewResponse with attribute values. |
HomeTabViewResponse |
withAppId(String appId)
Copy the current immutable object by setting a value for the
appId attribute. |
HomeTabViewResponse |
withBlocks(Block... elements)
Copy the current immutable object with elements that replace the content of
blocks. |
HomeTabViewResponse |
withBlocks(Iterable<? extends Block> elements)
Copy the current immutable object with elements that replace the content of
blocks. |
HomeTabViewResponse |
withBotId(String botId)
Copy the current immutable object by setting a value for the
botId attribute. |
HomeTabViewResponse |
withCallbackId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
callbackId attribute. |
HomeTabViewResponse |
withCallbackId(String value)
Copy the current immutable object by setting a present value for the optional
callbackId attribute. |
HomeTabViewResponse |
withCurrentViewId(String currentViewId)
Copy the current immutable object by setting a value for the
currentViewId attribute. |
HomeTabViewResponse |
withExternalId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
externalId attribute. |
HomeTabViewResponse |
withExternalId(String value)
Copy the current immutable object by setting a present value for the optional
externalId attribute. |
HomeTabViewResponse |
withHash(String hash)
Copy the current immutable object by setting a value for the
hash attribute. |
HomeTabViewResponse |
withPreviousViewId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
previousViewId attribute. |
HomeTabViewResponse |
withPreviousViewId(String value)
Copy the current immutable object by setting a present value for the optional
previousViewId attribute. |
HomeTabViewResponse |
withPrivateMetadata(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
privateMetadata attribute. |
HomeTabViewResponse |
withPrivateMetadata(String value)
Copy the current immutable object by setting a present value for the optional
privateMetadata attribute. |
HomeTabViewResponse |
withRootViewId(String rootViewId)
Copy the current immutable object by setting a value for the
rootViewId attribute. |
HomeTabViewResponse |
withStateValues(StateBlock stateValues)
Copy the current immutable object by setting a value for the
stateValues attribute. |
HomeTabViewResponse |
withTeamId(String teamId)
Copy the current immutable object by setting a value for the
teamId attribute. |
public String getType()
getType in interface HomeTabViewPayloadBasegetType 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 String getAppId()
getAppId in interface ViewResponseBaseappId attributepublic String getBotId()
getBotId in interface ViewResponseBasebotId attributepublic String getCurrentViewId()
getCurrentViewId in interface ViewResponseBasecurrentViewId attributepublic String getRootViewId()
getRootViewId in interface ViewResponseBaserootViewId attributepublic String getTeamId()
getTeamId in interface ViewResponseBaseteamId attributepublic StateBlock getStateValues()
getStateValues in interface ViewResponseBasestateValues attributepublic String getHash()
getHash in interface ViewResponseBasehash attributepublic Optional<String> getPreviousViewId()
getPreviousViewId in interface ViewResponseBasepreviousViewId attributepublic final HomeTabViewResponse withBlocks(Block... elements)
blocks.elements - The elements to setthis objectpublic final HomeTabViewResponse 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 HomeTabViewResponse withPrivateMetadata(@Nullable String value)
privateMetadata attribute.value - The value for privateMetadata, null is accepted as java.util.Optional.empty()this objectpublic final HomeTabViewResponse 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 HomeTabViewResponse withCallbackId(@Nullable String value)
callbackId attribute.value - The value for callbackId, null is accepted as java.util.Optional.empty()this objectpublic final HomeTabViewResponse 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 HomeTabViewResponse withExternalId(@Nullable String value)
externalId attribute.value - The value for externalId, null is accepted as java.util.Optional.empty()this objectpublic final HomeTabViewResponse 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 final HomeTabViewResponse withAppId(String appId)
appId attribute.
An equals check used to prevent copying of the same value by returning this.appId - A new value for appIdthis objectpublic final HomeTabViewResponse withBotId(String botId)
botId attribute.
An equals check used to prevent copying of the same value by returning this.botId - A new value for botIdthis objectpublic final HomeTabViewResponse withCurrentViewId(String currentViewId)
currentViewId attribute.
An equals check used to prevent copying of the same value by returning this.currentViewId - A new value for currentViewIdthis objectpublic final HomeTabViewResponse withRootViewId(String rootViewId)
rootViewId attribute.
An equals check used to prevent copying of the same value by returning this.rootViewId - A new value for rootViewIdthis objectpublic final HomeTabViewResponse withTeamId(String teamId)
teamId attribute.
An equals check used to prevent copying of the same value by returning this.teamId - A new value for teamIdthis objectpublic final HomeTabViewResponse withStateValues(StateBlock stateValues)
stateValues attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.stateValues - A new value for stateValuesthis objectpublic final HomeTabViewResponse 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 HomeTabViewResponse withPreviousViewId(@Nullable String value)
previousViewId attribute.value - The value for previousViewId, null is accepted as java.util.Optional.empty()this objectpublic final HomeTabViewResponse withPreviousViewId(Optional<String> optional)
previousViewId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for previousViewIdthis objectpublic boolean equals(@Nullable Object another)
HomeTabViewResponse that have equal attribute values.public int hashCode()
type, blocks, privateMetadata, callbackId, externalId, appId, botId, currentViewId, rootViewId, teamId, stateValues, hash, previousViewId.public String toString()
HomeTabViewResponse with attribute values.public static HomeTabViewResponse copyOf(HomeTabViewResponseIF instance)
HomeTabViewResponseIF 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 HomeTabViewResponse.Builder builder()
HomeTabViewResponse.Copyright © 2020. All rights reserved.