Class ChannelsInfoResponse
java.lang.Object
com.hubspot.slack.client.models.response.channels.ChannelsInfoResponse
- All Implemented Interfaces:
ChannelsInfoResponseIF,SlackResponse
@Generated(from="ChannelsInfoResponseIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ChannelsInfoResponse
extends Object
implements ChannelsInfoResponseIF
Immutable implementation of
ChannelsInfoResponseIF.
Use the builder to create immutable instances:
ChannelsInfoResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeChannelsInfoResponse. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelsInfoResponse.Builderbuilder()Creates a builder forChannelsInfoResponse.static ChannelsInfoResponsecopyOf(ChannelsInfoResponseIF instance) Creates an immutable copy of aChannelsInfoResponseIFvalue.booleanThis instance is equal to all instances ofChannelsInfoResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:ok,responseMetadata,channel.booleanisOk()toString()Prints the immutable valueChannelsInfoResponsewith attribute values.final ChannelsInfoResponsewithChannel(SlackChannel value) Copy the current immutable object by setting a value for thechannelattribute.final ChannelsInfoResponsewithOk(boolean value) Copy the current immutable object by setting a value for theokattribute.final ChannelsInfoResponseCopy the current immutable object by setting a present value for the optionalresponseMetadataattribute.final ChannelsInfoResponsewithResponseMetadata(Optional<? extends ResponseMetadata> optional) Copy the current immutable object by setting an optional value for theresponseMetadataattribute.
-
Method Details
-
isOk
public boolean isOk()- Specified by:
isOkin interfaceSlackResponse- Returns:
- The value of the
okattribute
-
getResponseMetadata
- Specified by:
getResponseMetadatain interfaceSlackResponse- Returns:
- The value of the
responseMetadataattribute
-
getChannel
- Specified by:
getChannelin interfaceChannelsInfoResponseIF- Returns:
- The value of the
channelattribute
-
withOk
Copy the current immutable object by setting a value for theokattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ok- Returns:
- A modified copy or the
thisobject
-
withResponseMetadata
Copy the current immutable object by setting a present value for the optionalresponseMetadataattribute.- Parameters:
value- The value for responseMetadata,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withResponseMetadata
public final ChannelsInfoResponse withResponseMetadata(Optional<? extends ResponseMetadata> optional) Copy the current immutable object by setting an optional value for theresponseMetadataattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for responseMetadata- Returns:
- A modified copy or
thisif not changed
-
withChannel
Copy the current immutable object by setting a value for thechannelattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for channel- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofChannelsInfoResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ok,responseMetadata,channel. -
toString
Prints the immutable valueChannelsInfoResponsewith attribute values. -
copyOf
Creates an immutable copy of aChannelsInfoResponseIFvalue. 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 ChannelsInfoResponse instance
-
builder
Creates a builder forChannelsInfoResponse.ChannelsInfoResponse.builder() .setOk(boolean) // requiredok.setResponseMetadata(Optional<ResponseMetadata>) // optionalresponseMetadata.setChannel(com.hubspot.slack.client.models.SlackChannel) // requiredchannel.build();- Returns:
- A new ChannelsInfoResponse builder
-