Class TaskUpdateChunk
java.lang.Object
com.hubspot.slack.client.methods.params.stream.chunks.TaskUpdateChunk
- All Implemented Interfaces:
StreamChunk,TaskUpdateChunkIF
@Generated(from="TaskUpdateChunkIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class TaskUpdateChunk
extends Object
implements TaskUpdateChunkIF
Immutable implementation of
TaskUpdateChunkIF.
Use the builder to create immutable instances:
TaskUpdateChunk.builder().
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.hubspot.slack.client.methods.params.stream.chunks.TaskUpdateChunkIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic TaskUpdateChunk.Builderbuilder()Creates a builder forTaskUpdateChunk.static TaskUpdateChunkcopyOf(TaskUpdateChunkIF instance) Creates an immutable copy of aTaskUpdateChunkIFvalue.booleanThis instance is equal to all instances ofTaskUpdateChunkthat have equal attribute values.getId()com.google.common.collect.ImmutableList<UrlSource> getTitle()getType()inthashCode()Computes a hash code from attributes:type,id,title,status,details,output,sources.toString()Prints the immutable valueTaskUpdateChunkwith attribute values.final TaskUpdateChunkwithDetails(String value) Copy the current immutable object by setting a present value for the optionaldetailsattribute.final TaskUpdateChunkwithDetails(Optional<String> optional) Copy the current immutable object by setting an optional value for thedetailsattribute.final TaskUpdateChunkCopy the current immutable object by setting a value for theidattribute.final TaskUpdateChunkwithOutput(String value) Copy the current immutable object by setting a present value for the optionaloutputattribute.final TaskUpdateChunkwithOutput(Optional<String> optional) Copy the current immutable object by setting an optional value for theoutputattribute.final TaskUpdateChunkwithSources(UrlSource... elements) Copy the current immutable object with elements that replace the content ofsources.final TaskUpdateChunkwithSources(Iterable<? extends UrlSource> elements) Copy the current immutable object with elements that replace the content ofsources.final TaskUpdateChunkwithStatus(TaskCardBlockStatus value) Copy the current immutable object by setting a present value for the optionalstatusattribute.final TaskUpdateChunkwithStatus(Optional<? extends TaskCardBlockStatus> optional) Copy the current immutable object by setting an optional value for thestatusattribute.final TaskUpdateChunkCopy the current immutable object by setting a value for thetitleattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfaceStreamChunk- Specified by:
getTypein interfaceTaskUpdateChunkIF- Returns:
- The computed-at-construction value of the
typeattribute
-
getId
- Specified by:
getIdin interfaceTaskUpdateChunkIF- Returns:
- The value of the
idattribute
-
getTitle
- Specified by:
getTitlein interfaceTaskUpdateChunkIF- Returns:
- The value of the
titleattribute
-
getStatus
- Specified by:
getStatusin interfaceTaskUpdateChunkIF- Returns:
- The value of the
statusattribute
-
getDetails
- Specified by:
getDetailsin interfaceTaskUpdateChunkIF- Returns:
- The value of the
detailsattribute
-
getOutput
- Specified by:
getOutputin interfaceTaskUpdateChunkIF- Returns:
- The value of the
outputattribute
-
getSources
- Specified by:
getSourcesin interfaceTaskUpdateChunkIF- Returns:
- The value of the
sourcesattribute
-
withId
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy or the
thisobject
-
withTitle
Copy the current immutable object by setting a value for thetitleattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for title- Returns:
- A modified copy or the
thisobject
-
withStatus
Copy the current immutable object by setting a present value for the optionalstatusattribute.- Parameters:
value- The value for status,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withStatus
Copy the current immutable object by setting an optional value for thestatusattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for status- Returns:
- A modified copy or
thisif not changed
-
withDetails
Copy the current immutable object by setting a present value for the optionaldetailsattribute.- Parameters:
value- The value for details,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withDetails
Copy the current immutable object by setting an optional value for thedetailsattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for details- Returns:
- A modified copy or
thisif not changed
-
withOutput
Copy the current immutable object by setting a present value for the optionaloutputattribute.- Parameters:
value- The value for output,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withOutput
Copy the current immutable object by setting an optional value for theoutputattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for output- Returns:
- A modified copy or
thisif not changed
-
withSources
Copy the current immutable object with elements that replace the content ofsources.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withSources
Copy the current immutable object with elements that replace the content ofsources. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of sources elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofTaskUpdateChunkthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,id,title,status,details,output,sources. -
toString
Prints the immutable valueTaskUpdateChunkwith attribute values. -
copyOf
Creates an immutable copy of aTaskUpdateChunkIFvalue. 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 TaskUpdateChunk instance
-
builder
Creates a builder forTaskUpdateChunk.TaskUpdateChunk.builder() .setId(String) // requiredid.setTitle(String) // requiredtitle.setStatus(Optional<com.hubspot.slack.client.models.blocks.TaskCardBlockStatus>) // optionalstatus.setDetails(Optional<String>) // optionaldetails.setOutput(Optional<String>) // optionaloutput.addSources|addAllSources(com.hubspot.slack.client.models.blocks.elements.UrlSource) //sourceselements .build();- Returns:
- A new TaskUpdateChunk builder
-