Class ResponseMetadata
java.lang.Object
com.hubspot.slack.client.models.response.ResponseMetadata
- All Implemented Interfaces:
ResponseMetadataIF
@Generated(from="ResponseMetadataIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ResponseMetadata
extends Object
implements ResponseMetadataIF
Immutable implementation of
ResponseMetadataIF.
Use the builder to create immutable instances:
ResponseMetadata.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ResponseMetadata.Builderbuilder()Creates a builder forResponseMetadata.static ResponseMetadatacopyOf(ResponseMetadataIF instance) Creates an immutable copy of aResponseMetadataIFvalue.booleanThis instance is equal to all instances ofResponseMetadatathat have equal attribute values.inthashCode()Computes a hash code from attributes:nextCursor.toString()Prints the immutable valueResponseMetadatawith attribute values.final ResponseMetadatawithNextCursor(String value) Copy the current immutable object by setting a present value for the optionalnextCursorattribute.final ResponseMetadatawithNextCursor(Optional<String> optional) Copy the current immutable object by setting an optional value for thenextCursorattribute.
-
Method Details
-
getNextCursor
- Specified by:
getNextCursorin interfaceResponseMetadataIF- Returns:
- The value of the
nextCursorattribute
-
withNextCursor
Copy the current immutable object by setting a present value for the optionalnextCursorattribute.- Parameters:
value- The value for nextCursor,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withNextCursor
Copy the current immutable object by setting an optional value for thenextCursorattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for nextCursor- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofResponseMetadatathat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:nextCursor. -
toString
Prints the immutable valueResponseMetadatawith attribute values. -
copyOf
Creates an immutable copy of aResponseMetadataIFvalue. 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 ResponseMetadata instance
-
builder
Creates a builder forResponseMetadata.ResponseMetadata.builder() .setNextCursor(Optional<String>) // optionalnextCursor.build();- Returns:
- A new ResponseMetadata builder
-