Class ChatStopStreamResponse.Builder
java.lang.Object
com.hubspot.slack.client.models.response.chat.ChatStopStreamResponse.Builder
- Enclosing class:
ChatStopStreamResponse
@Generated(from="ChatStopStreamResponseIF",
generator="Immutables")
@NotThreadSafe
public static final class ChatStopStreamResponse.Builder
extends Object
Builds instances of type
ChatStopStreamResponse.
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 newChatStopStreamResponse.from(ChatStopStreamResponseIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.chat.ChatStopStreamResponseIFinstance.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.setResponseMetadata(ResponseMetadata responseMetadata) Initializes the optional valueresponseMetadatato responseMetadata.setResponseMetadata(Optional<? extends ResponseMetadata> responseMetadata) Initializes the optional valueresponseMetadatato responseMetadata.Initializes the value for thetsattribute.
-
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.ChatStopStreamResponseIFinstance.- 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 ChatStopStreamResponse.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 ChatStopStreamResponse.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
-
setTs
Initializes the value for thetsattribute.- Parameters:
ts- The value for ts- 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
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
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 newChatStopStreamResponse.- Returns:
- An immutable instance of ChatStopStreamResponse
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-