Class ChatScheduleMessageResponse.Builder
java.lang.Object
com.hubspot.slack.client.models.response.chat.ChatScheduleMessageResponse.Builder
- Enclosing class:
ChatScheduleMessageResponse
@Generated(from="ChatScheduleMessageResponseIF",
generator="Immutables")
@NotThreadSafe
public static final class ChatScheduleMessageResponse.Builder
extends Object
Builds instances of type
ChatScheduleMessageResponse.
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 newChatScheduleMessageResponse.from(ChatScheduleMessageResponseIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.chat.ChatScheduleMessageResponseIFinstance.from(SlackResponse instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.SlackResponseinstance.putAllMessage(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries tomessagemap.putMessage(String key, Object value) Put one entry to themessagemap.putMessage(Map.Entry<String, ? extends Object> entry) Put one entry to themessagemap.setChannel(String channel) Initializes the value for thechannelattribute.setMessage(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for themessagemap.setOk(boolean ok) Initializes the value for theokattribute.Initializes the value for thepostAtattribute.setResponseMetadata(ResponseMetadata responseMetadata) Initializes the optional valueresponseMetadatato responseMetadata.setResponseMetadata(Optional<? extends ResponseMetadata> responseMetadata) Initializes the optional valueresponseMetadatato responseMetadata.setScheduledMessageId(String scheduledMessageId) Initializes the value for thescheduledMessageIdattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.SlackResponseinstance.- 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.response.chat.ChatScheduleMessageResponseIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setOk
Initializes the value for theokattribute.- Parameters:
ok- The value for ok- Returns:
thisbuilder for use in a chained invocation
-
setResponseMetadata
public final ChatScheduleMessageResponse.Builder setResponseMetadata(@Nullable ResponseMetadata responseMetadata) Initializes the optional valueresponseMetadatato responseMetadata.- Parameters:
responseMetadata- The value for responseMetadata,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setResponseMetadata
public final ChatScheduleMessageResponse.Builder setResponseMetadata(Optional<? extends ResponseMetadata> responseMetadata) Initializes the optional valueresponseMetadatato responseMetadata.- Parameters:
responseMetadata- The value for responseMetadata- Returns:
thisbuilder for use in a chained invocation
-
setChannel
Initializes the value for thechannelattribute.- Parameters:
channel- The value for channel- Returns:
thisbuilder for use in a chained invocation
-
setScheduledMessageId
Initializes the value for thescheduledMessageIdattribute.- Parameters:
scheduledMessageId- The value for scheduledMessageId- 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
-
putMessage
Put one entry to themessagemap.- Parameters:
key- The key in the message mapvalue- The associated value in the message map- Returns:
thisbuilder for use in a chained invocation
-
putMessage
public final ChatScheduleMessageResponse.Builder putMessage(Map.Entry<String, ? extends Object> entry) Put one entry to themessagemap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
setMessage
Sets or replaces all mappings from the specified map as entries for themessagemap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the message map- Returns:
thisbuilder for use in a chained invocation
-
putAllMessage
public final ChatScheduleMessageResponse.Builder putAllMessage(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries tomessagemap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the message map- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newChatScheduleMessageResponse.- Returns:
- An immutable instance of ChatScheduleMessageResponse
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-