Class ImOpenResponse
java.lang.Object
com.hubspot.slack.client.models.response.im.ImOpenResponse
- All Implemented Interfaces:
ImOpenResponseIF,SlackResponse
@Generated(from="ImOpenResponseIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImOpenResponse
extends Object
implements ImOpenResponseIF
Immutable implementation of
ImOpenResponseIF.
Use the builder to create immutable instances:
ImOpenResponse.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImOpenResponse.Builderbuilder()Creates a builder forImOpenResponse.static ImOpenResponsecopyOf(ImOpenResponseIF instance) Creates an immutable copy of aImOpenResponseIFvalue.booleanThis instance is equal to all instances ofImOpenResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:ok,responseMetadata,noOp,alreadyOpen,channel.booleanbooleanisNoOp()booleanisOk()toString()Prints the immutable valueImOpenResponsewith attribute values.final ImOpenResponsewithAlreadyOpen(boolean value) Copy the current immutable object by setting a value for thealreadyOpenattribute.final ImOpenResponsewithChannel(ImChannel value) Copy the current immutable object by setting a present value for the optionalchannelattribute.final ImOpenResponsewithChannel(Optional<? extends ImChannel> optional) Copy the current immutable object by setting an optional value for thechannelattribute.final ImOpenResponsewithNoOp(boolean value) Copy the current immutable object by setting a value for thenoOpattribute.final ImOpenResponsewithOk(boolean value) Copy the current immutable object by setting a value for theokattribute.final ImOpenResponseCopy the current immutable object by setting a present value for the optionalresponseMetadataattribute.final ImOpenResponsewithResponseMetadata(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
-
isNoOp
public boolean isNoOp()- Specified by:
isNoOpin interfaceImOpenResponseIF- Returns:
- The value of the
noOpattribute
-
isAlreadyOpen
public boolean isAlreadyOpen()- Specified by:
isAlreadyOpenin interfaceImOpenResponseIF- Returns:
- The value of the
alreadyOpenattribute
-
getChannel
- Specified by:
getChannelin interfaceImOpenResponseIF- 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
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
-
withNoOp
Copy the current immutable object by setting a value for thenoOpattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for noOp- Returns:
- A modified copy or the
thisobject
-
withAlreadyOpen
Copy the current immutable object by setting a value for thealreadyOpenattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for alreadyOpen- Returns:
- A modified copy or the
thisobject
-
withChannel
Copy the current immutable object by setting a present value for the optionalchannelattribute.- Parameters:
value- The value for channel,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withChannel
Copy the current immutable object by setting an optional value for thechannelattribute. 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 channel- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofImOpenResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ok,responseMetadata,noOp,alreadyOpen,channel. -
toString
Prints the immutable valueImOpenResponsewith attribute values. -
copyOf
Creates an immutable copy of aImOpenResponseIFvalue. 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 ImOpenResponse instance
-
builder
Creates a builder forImOpenResponse.ImOpenResponse.builder() .setOk(boolean) // requiredok.setResponseMetadata(Optional<ResponseMetadata>) // optionalresponseMetadata.setNoOp(boolean) // optionalnoOp.setAlreadyOpen(boolean) // optionalalreadyOpen.setChannel(Optional<com.hubspot.slack.client.models.channel.ImChannel>) // optionalchannel.build();- Returns:
- A new ImOpenResponse builder
-