Class WebhookPost


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2021-12-03T20:58:35.619656Z[Etc/UTC]")
    public class WebhookPost
    extends java.lang.Object
    WebhookPost
    • Field Detail

      • SERIALIZED_NAME_NAME

        public static final java.lang.String SERIALIZED_NAME_NAME
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_URL

        public static final java.lang.String SERIALIZED_NAME_URL
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_SECRET

        public static final java.lang.String SERIALIZED_NAME_SECRET
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_STATEMENTS

        public static final java.lang.String SERIALIZED_NAME_STATEMENTS
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_SIGN

        public static final java.lang.String SERIALIZED_NAME_SIGN
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_ON

        public static final java.lang.String SERIALIZED_NAME_ON
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_TAGS

        public static final java.lang.String SERIALIZED_NAME_TAGS
        See Also:
        Constant Field Values
    • Constructor Detail

      • WebhookPost

        public WebhookPost()
    • Method Detail

      • name

        public WebhookPost name​(java.lang.String name)
      • getName

        @Nullable
        public java.lang.String getName()
        A human-readable name for your webhook
        Returns:
        name
      • setName

        public void setName​(java.lang.String name)
      • url

        public WebhookPost url​(java.lang.String url)
      • getUrl

        @Nonnull
        public java.lang.String getUrl()
        The URL of the remote webhook
        Returns:
        url
      • setUrl

        public void setUrl​(java.lang.String url)
      • secret

        public WebhookPost secret​(java.lang.String secret)
      • getSecret

        @Nullable
        public java.lang.String getSecret()
        If sign is true, and the secret attribute is omitted, LaunchDarkly automatically generates a secret for you.
        Returns:
        secret
      • setSecret

        public void setSecret​(java.lang.String secret)
      • getStatements

        @Nullable
        public java.util.List<StatementPost> getStatements()
        Get statements
        Returns:
        statements
      • setStatements

        public void setStatements​(java.util.List<StatementPost> statements)
      • sign

        public WebhookPost sign​(java.lang.Boolean sign)
      • getSign

        @Nonnull
        public java.lang.Boolean getSign()
        If sign is false, the webhook does not include a signature header, and the secret can be omitted.
        Returns:
        sign
      • setSign

        public void setSign​(java.lang.Boolean sign)
      • getOn

        @Nonnull
        public java.lang.Boolean getOn()
        Whether or not this webhook is enabled.
        Returns:
        on
      • setOn

        public void setOn​(java.lang.Boolean on)
      • tags

        public WebhookPost tags​(java.util.List<java.lang.String> tags)
      • addTagsItem

        public WebhookPost addTagsItem​(java.lang.String tagsItem)
      • getTags

        @Nullable
        public java.util.List<java.lang.String> getTags()
        List of tags for this webhook
        Returns:
        tags
      • setTags

        public void setTags​(java.util.List<java.lang.String> tags)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object