@NotThreadSafe public static final class IncomingWebhook.Builder extends Object
IncomingWebhook.
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 |
|---|---|
IncomingWebhook |
build()
Builds a new
IncomingWebhook. |
IncomingWebhook.Builder |
from(IncomingWebhookIF instance)
Fill a builder with attribute values from the provided
IncomingWebhookIF instance. |
IncomingWebhook.Builder |
setChannel(String channel)
Initializes the value for the
channel attribute. |
IncomingWebhook.Builder |
setConfigurationUrl(String configurationUrl)
Initializes the value for the
configurationUrl attribute. |
IncomingWebhook.Builder |
setUrl(String url)
Initializes the value for the
url attribute. |
public final IncomingWebhook.Builder from(IncomingWebhookIF instance)
IncomingWebhookIF 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 IncomingWebhook.Builder setUrl(String url)
url attribute.url - The value for urlthis builder for use in a chained invocationpublic final IncomingWebhook.Builder setChannel(String channel)
channel attribute.channel - The value for channelthis builder for use in a chained invocationpublic final IncomingWebhook.Builder setConfigurationUrl(String configurationUrl)
configurationUrl attribute.configurationUrl - The value for configurationUrlthis builder for use in a chained invocationpublic IncomingWebhook build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
IncomingWebhook.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.