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().

  • Method Details

    • getUrl

      public String getUrl()
      Specified by:
      getUrl in interface IncomingWebhookIF
      Returns:
      The value of the url attribute
    • getChannel

      public String getChannel()
      Specified by:
      getChannel in interface IncomingWebhookIF
      Returns:
      The value of the channel attribute
    • getConfigurationUrl

      public String getConfigurationUrl()
      Specified by:
      getConfigurationUrl in interface IncomingWebhookIF
      Returns:
      The value of the configurationUrl attribute
    • withUrl

      public final IncomingWebhook withUrl(String value)
      Copy the current immutable object by setting a value for the url attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for url
      Returns:
      A modified copy or the this object
    • withChannel

      public final IncomingWebhook withChannel(String value)
      Copy the current immutable object by setting a value for the channel attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for channel
      Returns:
      A modified copy or the this object
    • withConfigurationUrl

      public final IncomingWebhook withConfigurationUrl(String value)
      Copy the current immutable object by setting a value for the configurationUrl attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for configurationUrl
      Returns:
      A modified copy or the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of IncomingWebhook that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: url, channel, configurationUrl.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value IncomingWebhook with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static IncomingWebhook copyOf(IncomingWebhookIF instance)
      Creates an immutable copy of a IncomingWebhookIF value. 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

      public static IncomingWebhook.Builder builder()
      Creates a builder for IncomingWebhook.
       IncomingWebhook.builder()
          .setUrl(String) // required url
          .setChannel(String) // required channel
          .setConfigurationUrl(String) // required configurationUrl
          .build();
       
      Returns:
      A new IncomingWebhook builder