Class ImChannel.Builder
java.lang.Object
com.hubspot.slack.client.models.channel.ImChannel.Builder
- Enclosing class:
ImChannel
@Generated(from="ImChannelIF",
generator="Immutables")
@NotThreadSafe
public static final class ImChannel.Builder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImChannel.final ImChannel.Builderfrom(ImChannelIF instance) Fill a builder with attribute values from the providedImChannelIFinstance.final ImChannel.BuildersetCreated(int created) Initializes the value for thecreatedattribute.final ImChannel.BuilderInitializes the value for theidattribute.final ImChannel.BuildersetIsIm(boolean isIm) Initializes the value for theisImattribute.final ImChannel.BuildersetIsOpen(boolean isOpen) Initializes the value for theisOpenattribute.final ImChannel.BuildersetIsOrgShared(boolean isOrgShared) Initializes the value for theisOrgSharedattribute.final ImChannel.BuilderInitializes the value for theuserattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedImChannelIFinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setId
Initializes the value for theidattribute.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
setCreated
Initializes the value for thecreatedattribute.- Parameters:
created- The value for created- Returns:
thisbuilder for use in a chained invocation
-
setIsIm
Initializes the value for theisImattribute.- Parameters:
isIm- The value for isIm- Returns:
thisbuilder for use in a chained invocation
-
setUser
Initializes the value for theuserattribute.- Parameters:
user- The value for user- Returns:
thisbuilder for use in a chained invocation
-
setIsOpen
Initializes the value for theisOpenattribute.- Parameters:
isOpen- The value for isOpen- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImChannel.- Returns:
- An immutable instance of ImChannel
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-