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

com.pulumi.gitlab.inputs.SystemHookState Maven / Gradle / Ivy

The 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.gitlab.inputs;

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


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

    public static final SystemHookState Empty = new SystemHookState();

    /**
     * The date and time the hook was created in ISO8601 format.
     * 
     */
    @Import(name="createdAt")
    private @Nullable Output createdAt;

    /**
     * @return The date and time the hook was created in ISO8601 format.
     * 
     */
    public Optional> createdAt() {
        return Optional.ofNullable(this.createdAt);
    }

    /**
     * Do SSL verification when triggering the hook.
     * 
     */
    @Import(name="enableSslVerification")
    private @Nullable Output enableSslVerification;

    /**
     * @return Do SSL verification when triggering the hook.
     * 
     */
    public Optional> enableSslVerification() {
        return Optional.ofNullable(this.enableSslVerification);
    }

    /**
     * Trigger hook on merge requests events.
     * 
     */
    @Import(name="mergeRequestsEvents")
    private @Nullable Output mergeRequestsEvents;

    /**
     * @return Trigger hook on merge requests events.
     * 
     */
    public Optional> mergeRequestsEvents() {
        return Optional.ofNullable(this.mergeRequestsEvents);
    }

    /**
     * When true, the hook fires on push events.
     * 
     */
    @Import(name="pushEvents")
    private @Nullable Output pushEvents;

    /**
     * @return When true, the hook fires on push events.
     * 
     */
    public Optional> pushEvents() {
        return Optional.ofNullable(this.pushEvents);
    }

    /**
     * Trigger hook on repository update events.
     * 
     */
    @Import(name="repositoryUpdateEvents")
    private @Nullable Output repositoryUpdateEvents;

    /**
     * @return Trigger hook on repository update events.
     * 
     */
    public Optional> repositoryUpdateEvents() {
        return Optional.ofNullable(this.repositoryUpdateEvents);
    }

    /**
     * When true, the hook fires on new tags being pushed.
     * 
     */
    @Import(name="tagPushEvents")
    private @Nullable Output tagPushEvents;

    /**
     * @return When true, the hook fires on new tags being pushed.
     * 
     */
    public Optional> tagPushEvents() {
        return Optional.ofNullable(this.tagPushEvents);
    }

    /**
     * Secret token to validate received payloads; this isn’t returned in the response. This attribute is not available for imported resources.
     * 
     */
    @Import(name="token")
    private @Nullable Output token;

    /**
     * @return Secret token to validate received payloads; this isn’t returned in the response. This attribute is not available for imported resources.
     * 
     */
    public Optional> token() {
        return Optional.ofNullable(this.token);
    }

    /**
     * The hook URL.
     * 
     */
    @Import(name="url")
    private @Nullable Output url;

    /**
     * @return The hook URL.
     * 
     */
    public Optional> url() {
        return Optional.ofNullable(this.url);
    }

    private SystemHookState() {}

    private SystemHookState(SystemHookState $) {
        this.createdAt = $.createdAt;
        this.enableSslVerification = $.enableSslVerification;
        this.mergeRequestsEvents = $.mergeRequestsEvents;
        this.pushEvents = $.pushEvents;
        this.repositoryUpdateEvents = $.repositoryUpdateEvents;
        this.tagPushEvents = $.tagPushEvents;
        this.token = $.token;
        this.url = $.url;
    }

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

    public static final class Builder {
        private SystemHookState $;

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

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

        /**
         * @param createdAt The date and time the hook was created in ISO8601 format.
         * 
         * @return builder
         * 
         */
        public Builder createdAt(@Nullable Output createdAt) {
            $.createdAt = createdAt;
            return this;
        }

        /**
         * @param createdAt The date and time the hook was created in ISO8601 format.
         * 
         * @return builder
         * 
         */
        public Builder createdAt(String createdAt) {
            return createdAt(Output.of(createdAt));
        }

        /**
         * @param enableSslVerification Do SSL verification when triggering the hook.
         * 
         * @return builder
         * 
         */
        public Builder enableSslVerification(@Nullable Output enableSslVerification) {
            $.enableSslVerification = enableSslVerification;
            return this;
        }

        /**
         * @param enableSslVerification Do SSL verification when triggering the hook.
         * 
         * @return builder
         * 
         */
        public Builder enableSslVerification(Boolean enableSslVerification) {
            return enableSslVerification(Output.of(enableSslVerification));
        }

        /**
         * @param mergeRequestsEvents Trigger hook on merge requests events.
         * 
         * @return builder
         * 
         */
        public Builder mergeRequestsEvents(@Nullable Output mergeRequestsEvents) {
            $.mergeRequestsEvents = mergeRequestsEvents;
            return this;
        }

        /**
         * @param mergeRequestsEvents Trigger hook on merge requests events.
         * 
         * @return builder
         * 
         */
        public Builder mergeRequestsEvents(Boolean mergeRequestsEvents) {
            return mergeRequestsEvents(Output.of(mergeRequestsEvents));
        }

        /**
         * @param pushEvents When true, the hook fires on push events.
         * 
         * @return builder
         * 
         */
        public Builder pushEvents(@Nullable Output pushEvents) {
            $.pushEvents = pushEvents;
            return this;
        }

        /**
         * @param pushEvents When true, the hook fires on push events.
         * 
         * @return builder
         * 
         */
        public Builder pushEvents(Boolean pushEvents) {
            return pushEvents(Output.of(pushEvents));
        }

        /**
         * @param repositoryUpdateEvents Trigger hook on repository update events.
         * 
         * @return builder
         * 
         */
        public Builder repositoryUpdateEvents(@Nullable Output repositoryUpdateEvents) {
            $.repositoryUpdateEvents = repositoryUpdateEvents;
            return this;
        }

        /**
         * @param repositoryUpdateEvents Trigger hook on repository update events.
         * 
         * @return builder
         * 
         */
        public Builder repositoryUpdateEvents(Boolean repositoryUpdateEvents) {
            return repositoryUpdateEvents(Output.of(repositoryUpdateEvents));
        }

        /**
         * @param tagPushEvents When true, the hook fires on new tags being pushed.
         * 
         * @return builder
         * 
         */
        public Builder tagPushEvents(@Nullable Output tagPushEvents) {
            $.tagPushEvents = tagPushEvents;
            return this;
        }

        /**
         * @param tagPushEvents When true, the hook fires on new tags being pushed.
         * 
         * @return builder
         * 
         */
        public Builder tagPushEvents(Boolean tagPushEvents) {
            return tagPushEvents(Output.of(tagPushEvents));
        }

        /**
         * @param token Secret token to validate received payloads; this isn’t returned in the response. This attribute is not available for imported resources.
         * 
         * @return builder
         * 
         */
        public Builder token(@Nullable Output token) {
            $.token = token;
            return this;
        }

        /**
         * @param token Secret token to validate received payloads; this isn’t returned in the response. This attribute is not available for imported resources.
         * 
         * @return builder
         * 
         */
        public Builder token(String token) {
            return token(Output.of(token));
        }

        /**
         * @param url The hook URL.
         * 
         * @return builder
         * 
         */
        public Builder url(@Nullable Output url) {
            $.url = url;
            return this;
        }

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

        public SystemHookState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy