@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","IncomingWebhookIF"}) @Immutable public final class IncomingWebhook extends Object implements IncomingWebhookIF
IncomingWebhookIF.
Use the builder to create immutable instances:
IncomingWebhook.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
IncomingWebhook.Builder
Builds instances of type
IncomingWebhook. |
| Modifier and Type | Method and Description |
|---|---|
static IncomingWebhook.Builder |
builder()
Creates a builder for
IncomingWebhook. |
static IncomingWebhook |
copyOf(IncomingWebhookIF instance)
Creates an immutable copy of a
IncomingWebhookIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
IncomingWebhook that have equal attribute values. |
String |
getChannel() |
String |
getConfigurationUrl() |
String |
getUrl() |
int |
hashCode()
Computes a hash code from attributes:
url, channel, configurationUrl. |
String |
toString()
Prints the immutable value
IncomingWebhook with attribute values. |
IncomingWebhook |
withChannel(String channel)
Copy the current immutable object by setting a value for the
channel attribute. |
IncomingWebhook |
withConfigurationUrl(String configurationUrl)
Copy the current immutable object by setting a value for the
configurationUrl attribute. |
IncomingWebhook |
withUrl(String url)
Copy the current immutable object by setting a value for the
url attribute. |
public String getUrl()
getUrl in interface IncomingWebhookIFurl attributepublic String getChannel()
getChannel in interface IncomingWebhookIFchannel attributepublic String getConfigurationUrl()
getConfigurationUrl in interface IncomingWebhookIFconfigurationUrl attributepublic final IncomingWebhook withUrl(String url)
url attribute.
An equals check used to prevent copying of the same value by returning this.url - A new value for urlthis objectpublic final IncomingWebhook withChannel(String channel)
channel attribute.
An equals check used to prevent copying of the same value by returning this.channel - A new value for channelthis objectpublic final IncomingWebhook withConfigurationUrl(String configurationUrl)
configurationUrl attribute.
An equals check used to prevent copying of the same value by returning this.configurationUrl - A new value for configurationUrlthis objectpublic boolean equals(@Nullable Object another)
IncomingWebhook that have equal attribute values.public int hashCode()
url, channel, configurationUrl.public String toString()
IncomingWebhook with attribute values.public static IncomingWebhook copyOf(IncomingWebhookIF instance)
IncomingWebhookIF value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static IncomingWebhook.Builder builder()
IncomingWebhook.Copyright © 2019. All rights reserved.