Class IncomingWebhook
java.lang.Object
com.hubspot.slack.client.models.auth.IncomingWebhook
- All Implemented Interfaces:
IncomingWebhookIF
@Generated(from="IncomingWebhookIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class IncomingWebhook
extends Object
implements IncomingWebhookIF
Immutable implementation of
IncomingWebhookIF.
Use the builder to create immutable instances:
IncomingWebhook.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic IncomingWebhook.Builderbuilder()Creates a builder forIncomingWebhook.static IncomingWebhookcopyOf(IncomingWebhookIF instance) Creates an immutable copy of aIncomingWebhookIFvalue.booleanThis instance is equal to all instances ofIncomingWebhookthat have equal attribute values.getUrl()inthashCode()Computes a hash code from attributes:url,channel,configurationUrl.toString()Prints the immutable valueIncomingWebhookwith attribute values.final IncomingWebhookwithChannel(String value) Copy the current immutable object by setting a value for thechannelattribute.final IncomingWebhookwithConfigurationUrl(String value) Copy the current immutable object by setting a value for theconfigurationUrlattribute.final IncomingWebhookCopy the current immutable object by setting a value for theurlattribute.
-
Method Details
-
getUrl
- Specified by:
getUrlin interfaceIncomingWebhookIF- Returns:
- The value of the
urlattribute
-
getChannel
- Specified by:
getChannelin interfaceIncomingWebhookIF- Returns:
- The value of the
channelattribute
-
getConfigurationUrl
- Specified by:
getConfigurationUrlin interfaceIncomingWebhookIF- Returns:
- The value of the
configurationUrlattribute
-
withUrl
Copy the current immutable object by setting a value for theurlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for url- Returns:
- A modified copy or the
thisobject
-
withChannel
Copy the current immutable object by setting a value for thechannelattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for channel- Returns:
- A modified copy or the
thisobject
-
withConfigurationUrl
Copy the current immutable object by setting a value for theconfigurationUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for configurationUrl- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofIncomingWebhookthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:url,channel,configurationUrl. -
toString
Prints the immutable valueIncomingWebhookwith attribute values. -
copyOf
Creates an immutable copy of aIncomingWebhookIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable IncomingWebhook instance
-
builder
Creates a builder forIncomingWebhook.IncomingWebhook.builder() .setUrl(String) // requiredurl.setChannel(String) // requiredchannel.setConfigurationUrl(String) // requiredconfigurationUrl.build();- Returns:
- A new IncomingWebhook builder
-