Class HomeTabViewPayload
java.lang.Object
com.hubspot.slack.client.models.views.HomeTabViewPayload
- All Implemented Interfaces:
HomeTabViewPayloadBase,HomeTabViewPayloadIF,ViewPayloadBase,ViewPayloadJsonBase
@Generated(from="HomeTabViewPayloadIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class HomeTabViewPayload
extends Object
implements HomeTabViewPayloadIF
Immutable implementation of
HomeTabViewPayloadIF.
Use the builder to create immutable instances:
HomeTabViewPayload.builder().
Use the static factory method to create immutable instances:
HomeTabViewPayload.of().
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.views.HomeTabViewPayloadBase
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic HomeTabViewPayload.Builderbuilder()Creates a builder forHomeTabViewPayload.static HomeTabViewPayloadcopyOf(HomeTabViewPayloadIF instance) Creates an immutable copy of aHomeTabViewPayloadIFvalue.booleanThis instance is equal to all instances ofHomeTabViewPayloadthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:privateMetadata,callbackId,externalId,type,blocks.static HomeTabViewPayloadConstruct a new immutableHomeTabViewPayloadinstance.static HomeTabViewPayloadConstruct a new immutableHomeTabViewPayloadinstance.toString()Prints the immutable valueHomeTabViewPayloadwith attribute values.final HomeTabViewPayloadwithBlocks(Block... elements) Copy the current immutable object with elements that replace the content ofblocks.final HomeTabViewPayloadwithBlocks(Iterable<? extends Block> elements) Copy the current immutable object with elements that replace the content ofblocks.final HomeTabViewPayloadwithCallbackId(String value) Copy the current immutable object by setting a present value for the optionalcallbackIdattribute.final HomeTabViewPayloadwithCallbackId(Optional<String> optional) Copy the current immutable object by setting an optional value for thecallbackIdattribute.final HomeTabViewPayloadwithExternalId(String value) Copy the current immutable object by setting a present value for the optionalexternalIdattribute.final HomeTabViewPayloadwithExternalId(Optional<String> optional) Copy the current immutable object by setting an optional value for theexternalIdattribute.final HomeTabViewPayloadwithPrivateMetadata(String value) Copy the current immutable object by setting a present value for the optionalprivateMetadataattribute.final HomeTabViewPayloadwithPrivateMetadata(Optional<String> optional) Copy the current immutable object by setting an optional value for theprivateMetadataattribute.
-
Method Details
-
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
-
getBlocks
- Specified by:
getBlocksin interfaceHomeTabViewPayloadIF- Specified by:
getBlocksin interfaceViewPayloadBase- Returns:
- The value of the
blocksattribute
-
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
-
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
-
equals
This instance is equal to all instances ofHomeTabViewPayloadthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:privateMetadata,callbackId,externalId,type,blocks. -
toString
Prints the immutable valueHomeTabViewPayloadwith attribute values. -
of
Construct a new immutableHomeTabViewPayloadinstance.- Parameters:
blocks- The value for theblocksattribute- Returns:
- An immutable HomeTabViewPayload instance
-
of
Construct a new immutableHomeTabViewPayloadinstance.- Parameters:
blocks- The value for theblocksattribute- Returns:
- An immutable HomeTabViewPayload instance
-
copyOf
Creates an immutable copy of aHomeTabViewPayloadIFvalue. 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 HomeTabViewPayload instance
-
builder
Creates a builder forHomeTabViewPayload.HomeTabViewPayload.builder() .setPrivateMetadata(Optional<String>) // optionalprivateMetadata.setCallbackId(Optional<String>) // optionalcallbackId.setExternalId(Optional<String>) // optionalexternalId.addBlocks|addAllBlocks(com.hubspot.slack.client.models.blocks.Block) //blockselements .build();- Returns:
- A new HomeTabViewPayload builder
-