Class PlanUpdateChunk
java.lang.Object
com.hubspot.slack.client.methods.params.stream.chunks.PlanUpdateChunk
- All Implemented Interfaces:
PlanUpdateChunkIF,StreamChunk
@Generated(from="PlanUpdateChunkIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class PlanUpdateChunk
extends Object
implements PlanUpdateChunkIF
Immutable implementation of
PlanUpdateChunkIF.
Use the builder to create immutable instances:
PlanUpdateChunk.builder().
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.hubspot.slack.client.methods.params.stream.chunks.PlanUpdateChunkIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic PlanUpdateChunk.Builderbuilder()Creates a builder forPlanUpdateChunk.static PlanUpdateChunkcopyOf(PlanUpdateChunkIF instance) Creates an immutable copy of aPlanUpdateChunkIFvalue.booleanThis instance is equal to all instances ofPlanUpdateChunkthat have equal attribute values.getTitle()getType()inthashCode()Computes a hash code from attributes:type,title.toString()Prints the immutable valuePlanUpdateChunkwith attribute values.final PlanUpdateChunkCopy the current immutable object by setting a value for thetitleattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfacePlanUpdateChunkIF- Specified by:
getTypein interfaceStreamChunk- Returns:
- The computed-at-construction value of the
typeattribute
-
getTitle
- Specified by:
getTitlein interfacePlanUpdateChunkIF- Returns:
- The value of the
titleattribute
-
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
-
equals
This instance is equal to all instances ofPlanUpdateChunkthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,title. -
toString
Prints the immutable valuePlanUpdateChunkwith attribute values. -
copyOf
Creates an immutable copy of aPlanUpdateChunkIFvalue. 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 PlanUpdateChunk instance
-
builder
Creates a builder forPlanUpdateChunk.PlanUpdateChunk.builder() .setTitle(String) // requiredtitle.build();- Returns:
- A new PlanUpdateChunk builder
-