Class SlackMemberJoinedChannelEvent.Builder
java.lang.Object
com.hubspot.slack.client.models.events.user.SlackMemberJoinedChannelEvent.Builder
- Enclosing class:
SlackMemberJoinedChannelEvent
@Generated(from="SlackMemberJoinedChannelEventIF",
generator="Immutables")
@NotThreadSafe
public static final class SlackMemberJoinedChannelEvent.Builder
extends Object
Builds instances of type
SlackMemberJoinedChannelEvent.
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 newSlackMemberJoinedChannelEvent.from(HasChannel instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasChannelinstance.from(SlackEvent instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.events.SlackEventinstance.from(SlackMemberJoinedChannelEventIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.events.user.SlackMemberJoinedChannelEventIFinstance.setChannelId(String channelId) Initializes the value for thechannelIdattribute.setChannelType(ChannelType channelType) Initializes the value for thechannelTypeattribute.setInviterId(String inviterId) Initializes the optional valueinviterIdto inviterId.setInviterId(Optional<String> inviterId) Initializes the optional valueinviterIdto inviterId.Initializes the value for theteamattribute.setType(SlackEventType type) Initializes the value for thetypeattribute.Initializes the value for theuserIdattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.events.user.SlackMemberJoinedChannelEventIFinstance.- 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
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.events.SlackEventinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setType
Initializes the value for thetypeattribute.- Parameters:
type- The value for type- Returns:
thisbuilder for use in a chained invocation
-
setUserId
Initializes the value for theuserIdattribute.- Parameters:
userId- The value for userId- 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
-
setChannelType
Initializes the value for thechannelTypeattribute.- Parameters:
channelType- The value for channelType- Returns:
thisbuilder for use in a chained invocation
-
setTeam
Initializes the value for theteamattribute.- Parameters:
team- The value for team- Returns:
thisbuilder for use in a chained invocation
-
setInviterId
Initializes the optional valueinviterIdto inviterId.- Parameters:
inviterId- The value for inviterId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setInviterId
Initializes the optional valueinviterIdto inviterId.- Parameters:
inviterId- The value for inviterId- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newSlackMemberJoinedChannelEvent.- Returns:
- An immutable instance of SlackMemberJoinedChannelEvent
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-