Class ChatDeleteParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.chat.ChatDeleteParams.Builder
- Enclosing class:
ChatDeleteParams
@Generated(from="AbstractChatDeleteParams",
generator="Immutables")
@NotThreadSafe
public static final class ChatDeleteParams.Builder
extends Object
Builds instances of type
ChatDeleteParams.
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.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newChatDeleteParams.final ChatDeleteParams.Builderfrom(HasChannel instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasChannelinstance.final ChatDeleteParams.Builderfrom(AbstractChatDeleteParams instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.chat.AbstractChatDeleteParamsinstance.final ChatDeleteParams.BuildersetAsUser(boolean asUser) Initializes the value for theasUserattribute.final ChatDeleteParams.BuildersetChannelId(String channelId) Initializes the value for thechannelIdattribute.final ChatDeleteParams.BuildersetMessageToDeleteTs(String messageToDeleteTs) Initializes the value for themessageToDeleteTsattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.chat.AbstractChatDeleteParamsinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasChannelinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setChannelId
Initializes the value for thechannelIdattribute.- Parameters:
channelId- The value for channelId- Returns:
thisbuilder for use in a chained invocation
-
setMessageToDeleteTs
Initializes the value for themessageToDeleteTsattribute.- Parameters:
messageToDeleteTs- The value for messageToDeleteTs- Returns:
thisbuilder for use in a chained invocation
-
setAsUser
Initializes the value for theasUserattribute.If not set, this attribute will have a default value as returned by the initializer of
asUser.- Parameters:
asUser- The value for asUser- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newChatDeleteParams.- Returns:
- An immutable instance of ChatDeleteParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-