All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.github.inputs.OrganizationWebhookConfigurationArgs Maven / Gradle / Ivy

There is a newer version: 6.4.0-alpha.1731735876
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.github.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class OrganizationWebhookConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final OrganizationWebhookConfigurationArgs Empty = new OrganizationWebhookConfigurationArgs();

    /**
     * The content type for the payload. Valid values are either 'form' or 'json'.
     * 
     */
    @Import(name="contentType")
    private @Nullable Output contentType;

    /**
     * @return The content type for the payload. Valid values are either 'form' or 'json'.
     * 
     */
    public Optional> contentType() {
        return Optional.ofNullable(this.contentType);
    }

    /**
     * Insecure SSL boolean toggle. Defaults to 'false'.
     * 
     */
    @Import(name="insecureSsl")
    private @Nullable Output insecureSsl;

    /**
     * @return Insecure SSL boolean toggle. Defaults to 'false'.
     * 
     */
    public Optional> insecureSsl() {
        return Optional.ofNullable(this.insecureSsl);
    }

    /**
     * The shared secret for the webhook
     * 
     */
    @Import(name="secret")
    private @Nullable Output secret;

    /**
     * @return The shared secret for the webhook
     * 
     */
    public Optional> secret() {
        return Optional.ofNullable(this.secret);
    }

    /**
     * URL of the webhook
     * 
     */
    @Import(name="url", required=true)
    private Output url;

    /**
     * @return URL of the webhook
     * 
     */
    public Output url() {
        return this.url;
    }

    private OrganizationWebhookConfigurationArgs() {}

    private OrganizationWebhookConfigurationArgs(OrganizationWebhookConfigurationArgs $) {
        this.contentType = $.contentType;
        this.insecureSsl = $.insecureSsl;
        this.secret = $.secret;
        this.url = $.url;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(OrganizationWebhookConfigurationArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private OrganizationWebhookConfigurationArgs $;

        public Builder() {
            $ = new OrganizationWebhookConfigurationArgs();
        }

        public Builder(OrganizationWebhookConfigurationArgs defaults) {
            $ = new OrganizationWebhookConfigurationArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param contentType The content type for the payload. Valid values are either 'form' or 'json'.
         * 
         * @return builder
         * 
         */
        public Builder contentType(@Nullable Output contentType) {
            $.contentType = contentType;
            return this;
        }

        /**
         * @param contentType The content type for the payload. Valid values are either 'form' or 'json'.
         * 
         * @return builder
         * 
         */
        public Builder contentType(String contentType) {
            return contentType(Output.of(contentType));
        }

        /**
         * @param insecureSsl Insecure SSL boolean toggle. Defaults to 'false'.
         * 
         * @return builder
         * 
         */
        public Builder insecureSsl(@Nullable Output insecureSsl) {
            $.insecureSsl = insecureSsl;
            return this;
        }

        /**
         * @param insecureSsl Insecure SSL boolean toggle. Defaults to 'false'.
         * 
         * @return builder
         * 
         */
        public Builder insecureSsl(Boolean insecureSsl) {
            return insecureSsl(Output.of(insecureSsl));
        }

        /**
         * @param secret The shared secret for the webhook
         * 
         * @return builder
         * 
         */
        public Builder secret(@Nullable Output secret) {
            $.secret = secret;
            return this;
        }

        /**
         * @param secret The shared secret for the webhook
         * 
         * @return builder
         * 
         */
        public Builder secret(String secret) {
            return secret(Output.of(secret));
        }

        /**
         * @param url URL of the webhook
         * 
         * @return builder
         * 
         */
        public Builder url(Output url) {
            $.url = url;
            return this;
        }

        /**
         * @param url URL of the webhook
         * 
         * @return builder
         * 
         */
        public Builder url(String url) {
            return url(Output.of(url));
        }

        public OrganizationWebhookConfigurationArgs build() {
            if ($.url == null) {
                throw new MissingRequiredPropertyException("OrganizationWebhookConfigurationArgs", "url");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy