Class HomeTabViewResponse
java.lang.Object
com.hubspot.slack.client.models.response.views.HomeTabViewResponse
- All Implemented Interfaces:
HomeTabViewResponseIF,ViewResponseBase,HomeTabViewPayloadBase,ViewPayloadBase
@Generated(from="HomeTabViewResponseIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class HomeTabViewResponse
extends Object
implements HomeTabViewResponseIF
Immutable implementation of
HomeTabViewResponseIF.
Use the builder to create immutable instances:
HomeTabViewResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeHomeTabViewResponse. -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.views.HomeTabViewPayloadBase
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic HomeTabViewResponse.Builderbuilder()Creates a builder forHomeTabViewResponse.static HomeTabViewResponsecopyOf(HomeTabViewResponseIF instance) Creates an immutable copy of aHomeTabViewResponseIFvalue.booleanThis instance is equal to all instances ofHomeTabViewResponsethat have equal attribute values.getAppId()getBotId()getHash()getType()inthashCode()Computes a hash code from attributes:blocks,privateMetadata,callbackId,externalId,type,appId,botId,currentViewId,rootViewId,teamId,stateValues,hash,previousViewId.toString()Prints the immutable valueHomeTabViewResponsewith attribute values.final HomeTabViewResponseCopy the current immutable object by setting a value for theappIdattribute.final HomeTabViewResponsewithBlocks(Block... elements) Copy the current immutable object with elements that replace the content ofblocks.final HomeTabViewResponsewithBlocks(Iterable<? extends Block> elements) Copy the current immutable object with elements that replace the content ofblocks.final HomeTabViewResponseCopy the current immutable object by setting a value for thebotIdattribute.final HomeTabViewResponsewithCallbackId(String value) Copy the current immutable object by setting a present value for the optionalcallbackIdattribute.final HomeTabViewResponsewithCallbackId(Optional<String> optional) Copy the current immutable object by setting an optional value for thecallbackIdattribute.final HomeTabViewResponsewithCurrentViewId(String value) Copy the current immutable object by setting a value for thecurrentViewIdattribute.final HomeTabViewResponsewithExternalId(String value) Copy the current immutable object by setting a present value for the optionalexternalIdattribute.final HomeTabViewResponsewithExternalId(Optional<String> optional) Copy the current immutable object by setting an optional value for theexternalIdattribute.final HomeTabViewResponseCopy the current immutable object by setting a value for thehashattribute.final HomeTabViewResponsewithPreviousViewId(String value) Copy the current immutable object by setting a present value for the optionalpreviousViewIdattribute.final HomeTabViewResponsewithPreviousViewId(Optional<String> optional) Copy the current immutable object by setting an optional value for thepreviousViewIdattribute.final HomeTabViewResponsewithPrivateMetadata(String value) Copy the current immutable object by setting a present value for the optionalprivateMetadataattribute.final HomeTabViewResponsewithPrivateMetadata(Optional<String> optional) Copy the current immutable object by setting an optional value for theprivateMetadataattribute.final HomeTabViewResponsewithRootViewId(String value) Copy the current immutable object by setting a value for therootViewIdattribute.final HomeTabViewResponsewithStateValues(StateBlock value) Copy the current immutable object by setting a value for thestateValuesattribute.final HomeTabViewResponsewithTeamId(String value) Copy the current immutable object by setting a value for theteamIdattribute.
-
Method Details
-
getBlocks
- Specified by:
getBlocksin interfaceViewPayloadBase- Returns:
- The value of the
blocksattribute
-
getPrivateMetadata
- Specified by:
getPrivateMetadatain interfaceViewPayloadBase- Returns:
- The value of the
privateMetadataattribute
-
getCallbackId
- Specified by:
getCallbackIdin interfaceViewPayloadBase- Returns:
- The value of the
callbackIdattribute
-
getExternalId
- Specified by:
getExternalIdin interfaceViewPayloadBase- Returns:
- The value of the
externalIdattribute
-
getType
- Specified by:
getTypein interfaceHomeTabViewPayloadBase- Specified by:
getTypein interfaceViewPayloadBase- Returns:
- The computed-at-construction value of the
typeattribute
-
getAppId
- Specified by:
getAppIdin interfaceViewResponseBase- Returns:
- The value of the
appIdattribute
-
getBotId
- Specified by:
getBotIdin interfaceViewResponseBase- Returns:
- The value of the
botIdattribute
-
getCurrentViewId
- Specified by:
getCurrentViewIdin interfaceViewResponseBase- Returns:
- The value of the
currentViewIdattribute
-
getRootViewId
- Specified by:
getRootViewIdin interfaceViewResponseBase- Returns:
- The value of the
rootViewIdattribute
-
getTeamId
- Specified by:
getTeamIdin interfaceViewResponseBase- Returns:
- The value of the
teamIdattribute
-
getStateValues
- Specified by:
getStateValuesin interfaceViewResponseBase- Returns:
- The value of the
stateValuesattribute
-
getHash
- Specified by:
getHashin interfaceViewResponseBase- Returns:
- The value of the
hashattribute
-
getPreviousViewId
- Specified by:
getPreviousViewIdin interfaceViewResponseBase- Returns:
- The value of the
previousViewIdattribute
-
withBlocks
Copy the current immutable object with elements that replace the content ofblocks.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withBlocks
Copy the current immutable object with elements that replace the content ofblocks. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of blocks elements to set- Returns:
- A modified copy or
thisif not changed
-
withPrivateMetadata
Copy the current immutable object by setting a present value for the optionalprivateMetadataattribute.- Parameters:
value- The value for privateMetadata,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withPrivateMetadata
Copy the current immutable object by setting an optional value for theprivateMetadataattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for privateMetadata- Returns:
- A modified copy or
thisif not changed
-
withCallbackId
Copy the current immutable object by setting a present value for the optionalcallbackIdattribute.- Parameters:
value- The value for callbackId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withCallbackId
Copy the current immutable object by setting an optional value for thecallbackIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for callbackId- Returns:
- A modified copy or
thisif not changed
-
withExternalId
Copy the current immutable object by setting a present value for the optionalexternalIdattribute.- Parameters:
value- The value for externalId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withExternalId
Copy the current immutable object by setting an optional value for theexternalIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for externalId- Returns:
- A modified copy or
thisif not changed
-
withAppId
Copy the current immutable object by setting a value for theappIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for appId- Returns:
- A modified copy or the
thisobject
-
withBotId
Copy the current immutable object by setting a value for thebotIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for botId- Returns:
- A modified copy or the
thisobject
-
withCurrentViewId
Copy the current immutable object by setting a value for thecurrentViewIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for currentViewId- Returns:
- A modified copy or the
thisobject
-
withRootViewId
Copy the current immutable object by setting a value for therootViewIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for rootViewId- Returns:
- A modified copy or the
thisobject
-
withTeamId
Copy the current immutable object by setting a value for theteamIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for teamId- Returns:
- A modified copy or the
thisobject
-
withStateValues
Copy the current immutable object by setting a value for thestateValuesattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for stateValues- Returns:
- A modified copy or the
thisobject
-
withHash
Copy the current immutable object by setting a value for thehashattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for hash- Returns:
- A modified copy or the
thisobject
-
withPreviousViewId
Copy the current immutable object by setting a present value for the optionalpreviousViewIdattribute.- Parameters:
value- The value for previousViewId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withPreviousViewId
Copy the current immutable object by setting an optional value for thepreviousViewIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for previousViewId- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofHomeTabViewResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:blocks,privateMetadata,callbackId,externalId,type,appId,botId,currentViewId,rootViewId,teamId,stateValues,hash,previousViewId. -
toString
Prints the immutable valueHomeTabViewResponsewith attribute values. -
copyOf
Creates an immutable copy of aHomeTabViewResponseIFvalue. 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 HomeTabViewResponse instance
-
builder
Creates a builder forHomeTabViewResponse.HomeTabViewResponse.builder() .addBlocks|addAllBlocks(com.hubspot.slack.client.models.blocks.Block) //blockselements .setPrivateMetadata(Optional<String>) // optionalprivateMetadata.setCallbackId(Optional<String>) // optionalcallbackId.setExternalId(Optional<String>) // optionalexternalId.setAppId(String) // requiredappId.setBotId(String) // requiredbotId.setCurrentViewId(String) // requiredcurrentViewId.setRootViewId(String) // requiredrootViewId.setTeamId(String) // requiredteamId.setStateValues(com.hubspot.slack.client.models.response.views.StateBlock) // requiredstateValues.setHash(String) // requiredhash.setPreviousViewId(Optional<String>) // optionalpreviousViewId.build();- Returns:
- A new HomeTabViewResponse builder
-