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

com.pulumi.gitlab.ServiceExternalWikiArgs 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;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


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

    public static final ServiceExternalWikiArgs Empty = new ServiceExternalWikiArgs();

    /**
     * The URL of the external wiki.
     * 
     */
    @Import(name="externalWikiUrl", required=true)
    private Output externalWikiUrl;

    /**
     * @return The URL of the external wiki.
     * 
     */
    public Output externalWikiUrl() {
        return this.externalWikiUrl;
    }

    /**
     * ID of the project you want to activate integration on.
     * 
     */
    @Import(name="project", required=true)
    private Output project;

    /**
     * @return ID of the project you want to activate integration on.
     * 
     */
    public Output project() {
        return this.project;
    }

    private ServiceExternalWikiArgs() {}

    private ServiceExternalWikiArgs(ServiceExternalWikiArgs $) {
        this.externalWikiUrl = $.externalWikiUrl;
        this.project = $.project;
    }

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

    public static final class Builder {
        private ServiceExternalWikiArgs $;

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

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

        /**
         * @param externalWikiUrl The URL of the external wiki.
         * 
         * @return builder
         * 
         */
        public Builder externalWikiUrl(Output externalWikiUrl) {
            $.externalWikiUrl = externalWikiUrl;
            return this;
        }

        /**
         * @param externalWikiUrl The URL of the external wiki.
         * 
         * @return builder
         * 
         */
        public Builder externalWikiUrl(String externalWikiUrl) {
            return externalWikiUrl(Output.of(externalWikiUrl));
        }

        /**
         * @param project ID of the project you want to activate integration on.
         * 
         * @return builder
         * 
         */
        public Builder project(Output project) {
            $.project = project;
            return this;
        }

        /**
         * @param project ID of the project you want to activate integration on.
         * 
         * @return builder
         * 
         */
        public Builder project(String project) {
            return project(Output.of(project));
        }

        public ServiceExternalWikiArgs build() {
            if ($.externalWikiUrl == null) {
                throw new MissingRequiredPropertyException("ServiceExternalWikiArgs", "externalWikiUrl");
            }
            if ($.project == null) {
                throw new MissingRequiredPropertyException("ServiceExternalWikiArgs", "project");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy