@NotThreadSafe public static final class ImOpenResponse.Builder extends Object
ImOpenResponse.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImOpenResponse |
build()
Builds a new
ImOpenResponse. |
ImOpenResponse.Builder |
from(ImOpenResponseIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.response.im.ImOpenResponseIF instance. |
ImOpenResponse.Builder |
from(SlackResponse instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.response.SlackResponse instance. |
ImOpenResponse.Builder |
setAlreadyOpen(boolean alreadyOpen)
Initializes the value for the
alreadyOpen attribute. |
ImOpenResponse.Builder |
setChannel(ImChannel channel)
Initializes the optional value
channel to channel. |
ImOpenResponse.Builder |
setChannel(Optional<ImChannel> channel)
Initializes the optional value
channel to channel. |
ImOpenResponse.Builder |
setNoOp(boolean noOp)
Initializes the value for the
noOp attribute. |
ImOpenResponse.Builder |
setOk(boolean ok)
Initializes the value for the
ok attribute. |
ImOpenResponse.Builder |
setResponseMetadata(Optional<ResponseMetadata> responseMetadata)
Initializes the optional value
responseMetadata to responseMetadata. |
ImOpenResponse.Builder |
setResponseMetadata(ResponseMetadata responseMetadata)
Initializes the optional value
responseMetadata to responseMetadata. |
public final ImOpenResponse.Builder from(SlackResponse instance)
com.hubspot.slack.client.models.response.SlackResponse instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImOpenResponse.Builder from(ImOpenResponseIF instance)
com.hubspot.slack.client.models.response.im.ImOpenResponseIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImOpenResponse.Builder setNoOp(boolean noOp)
noOp attribute.
If not set, this attribute will have a default value as returned by the initializer of noOp.
noOp - The value for noOpthis builder for use in a chained invocationpublic final ImOpenResponse.Builder setAlreadyOpen(boolean alreadyOpen)
alreadyOpen attribute.
If not set, this attribute will have a default value as returned by the initializer of alreadyOpen.
alreadyOpen - The value for alreadyOpenthis builder for use in a chained invocationpublic final ImOpenResponse.Builder setChannel(@Nullable ImChannel channel)
channel to channel.channel - The value for channel, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final ImOpenResponse.Builder setChannel(Optional<ImChannel> channel)
channel to channel.channel - The value for channelthis builder for use in a chained invocationpublic final ImOpenResponse.Builder setOk(boolean ok)
ok attribute.ok - The value for okthis builder for use in a chained invocationpublic final ImOpenResponse.Builder setResponseMetadata(@Nullable ResponseMetadata responseMetadata)
responseMetadata to responseMetadata.responseMetadata - The value for responseMetadata, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final ImOpenResponse.Builder setResponseMetadata(Optional<ResponseMetadata> responseMetadata)
responseMetadata to responseMetadata.responseMetadata - The value for responseMetadatathis builder for use in a chained invocationpublic ImOpenResponse build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ImOpenResponse.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.