Package com.hubspot.slack.client.models
Class ScheduledMessage.Builder
java.lang.Object
com.hubspot.slack.client.models.ScheduledMessage.Builder
- Enclosing class:
ScheduledMessage
@Generated(from="ScheduledMessageIF",
generator="Immutables")
@NotThreadSafe
public static final class ScheduledMessage.Builder
extends Object
Builds instances of type
ScheduledMessage.
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 newScheduledMessage.final ScheduledMessage.Builderfrom(ScheduledMessageIF instance) Fill a builder with attribute values from the providedScheduledMessageIFinstance.final ScheduledMessage.BuildersetChannelId(String channelId) Initializes the value for thechannelIdattribute.final ScheduledMessage.BuildersetDateCreated(long dateCreated) Initializes the value for thedateCreatedattribute.final ScheduledMessage.BuilderInitializes the value for theidattribute.final ScheduledMessage.BuildersetPostAt(long postAt) Initializes the value for thepostAtattribute.final ScheduledMessage.BuilderInitializes the value for thetextattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedScheduledMessageIFinstance. 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
-
setChannelId
Initializes the value for thechannelIdattribute.- Parameters:
channelId- The value for channelId- Returns:
thisbuilder for use in a chained invocation
-
setPostAt
Initializes the value for thepostAtattribute.- Parameters:
postAt- The value for postAt- Returns:
thisbuilder for use in a chained invocation
-
setDateCreated
Initializes the value for thedateCreatedattribute.- Parameters:
dateCreated- The value for dateCreated- Returns:
thisbuilder for use in a chained invocation
-
setText
Initializes the value for thetextattribute.- Parameters:
text- The value for text- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newScheduledMessage.- Returns:
- An immutable instance of ScheduledMessage
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-