@NotThreadSafe public static final class ConversationSetPurposeParams.Builder extends Object
ConversationSetPurposeParams.
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.
| Modifier and Type | Method and Description |
|---|---|
ConversationSetPurposeParams |
build()
Builds a new
ConversationSetPurposeParams. |
ConversationSetPurposeParams.Builder |
from(ConversationSetPurposeParamsIF instance)
Fill a builder with attribute values from the provided
ConversationSetPurposeParamsIF instance. |
ConversationSetPurposeParams.Builder |
setChannelId(String channelId)
Initializes the value for the
channelId attribute. |
ConversationSetPurposeParams.Builder |
setPurpose(String purpose)
Initializes the value for the
purpose attribute. |
public final ConversationSetPurposeParams.Builder from(ConversationSetPurposeParamsIF instance)
ConversationSetPurposeParamsIF instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ConversationSetPurposeParams.Builder setPurpose(String purpose)
purpose attribute.purpose - The value for purposethis builder for use in a chained invocationpublic final ConversationSetPurposeParams.Builder setChannelId(String channelId)
channelId attribute.channelId - The value for channelIdthis builder for use in a chained invocationpublic ConversationSetPurposeParams build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ConversationSetPurposeParams.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2020. All rights reserved.