Class ChatScheduledMessagesListParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.chat.ChatScheduledMessagesListParams.Builder
- Enclosing class:
ChatScheduledMessagesListParams
@Generated(from="ChatScheduledMessagesListParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class ChatScheduledMessagesListParams.Builder
extends Object
Builds instances of type
ChatScheduledMessagesListParams.
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 newChatScheduledMessagesListParams.from(ChatScheduledMessagesListParamsIF instance) Fill a builder with attribute values from the providedChatScheduledMessagesListParamsIFinstance.setChannelId(String channelId) Initializes the value for thechannelIdattribute.Initializes the value for thecursorattribute.Initializes the value for thelimitattribute.setNewestTimestamp(String newestTimestamp) Initializes the value for thenewestTimestampattribute.setOldestTimestamp(String oldestTimestamp) Initializes the value for theoldestTimestampattribute.Initializes the value for theteamIdattribute.
-
Method Details
-
from
public final ChatScheduledMessagesListParams.Builder from(ChatScheduledMessagesListParamsIF instance) Fill a builder with attribute values from the providedChatScheduledMessagesListParamsIFinstance. 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
-
setChannelId
Initializes the value for thechannelIdattribute.If not set, this attribute will have a default value as returned by the initializer of
channelId.- Parameters:
channelId- The value for channelId- Returns:
thisbuilder for use in a chained invocation
-
setCursor
Initializes the value for thecursorattribute.If not set, this attribute will have a default value as returned by the initializer of
cursor.- Parameters:
cursor- The value for cursor- Returns:
thisbuilder for use in a chained invocation
-
setNewestTimestamp
Initializes the value for thenewestTimestampattribute.If not set, this attribute will have a default value as returned by the initializer of
newestTimestamp.- Parameters:
newestTimestamp- The value for newestTimestamp- Returns:
thisbuilder for use in a chained invocation
-
setOldestTimestamp
Initializes the value for theoldestTimestampattribute.If not set, this attribute will have a default value as returned by the initializer of
oldestTimestamp.- Parameters:
oldestTimestamp- The value for oldestTimestamp- Returns:
thisbuilder for use in a chained invocation
-
setTeamId
Initializes the value for theteamIdattribute.If not set, this attribute will have a default value as returned by the initializer of
teamId.- Parameters:
teamId- The value for teamId- Returns:
thisbuilder for use in a chained invocation
-
setLimit
Initializes the value for thelimitattribute.If not set, this attribute will have a default value as returned by the initializer of
limit.- Parameters:
limit- The value for limit- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newChatScheduledMessagesListParams.- Returns:
- An immutable instance of ChatScheduledMessagesListParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-