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

com.pulumi.github.RepositoryAutolinkReferenceArgs 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;

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 RepositoryAutolinkReferenceArgs extends com.pulumi.resources.ResourceArgs {

    public static final RepositoryAutolinkReferenceArgs Empty = new RepositoryAutolinkReferenceArgs();

    /**
     * Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters. Default is true.
     * 
     */
    @Import(name="isAlphanumeric")
    private @Nullable Output isAlphanumeric;

    /**
     * @return Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters. Default is true.
     * 
     */
    public Optional> isAlphanumeric() {
        return Optional.ofNullable(this.isAlphanumeric);
    }

    /**
     * This prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit.
     * 
     */
    @Import(name="keyPrefix", required=true)
    private Output keyPrefix;

    /**
     * @return This prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit.
     * 
     */
    public Output keyPrefix() {
        return this.keyPrefix;
    }

    /**
     * The repository of the autolink reference.
     * 
     */
    @Import(name="repository", required=true)
    private Output repository;

    /**
     * @return The repository of the autolink reference.
     * 
     */
    public Output repository() {
        return this.repository;
    }

    /**
     * The template of the target URL used for the links; must be a valid URL and contain `<num>` for the reference number
     * 
     */
    @Import(name="targetUrlTemplate", required=true)
    private Output targetUrlTemplate;

    /**
     * @return The template of the target URL used for the links; must be a valid URL and contain `<num>` for the reference number
     * 
     */
    public Output targetUrlTemplate() {
        return this.targetUrlTemplate;
    }

    private RepositoryAutolinkReferenceArgs() {}

    private RepositoryAutolinkReferenceArgs(RepositoryAutolinkReferenceArgs $) {
        this.isAlphanumeric = $.isAlphanumeric;
        this.keyPrefix = $.keyPrefix;
        this.repository = $.repository;
        this.targetUrlTemplate = $.targetUrlTemplate;
    }

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

    public static final class Builder {
        private RepositoryAutolinkReferenceArgs $;

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

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

        /**
         * @param isAlphanumeric Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters. Default is true.
         * 
         * @return builder
         * 
         */
        public Builder isAlphanumeric(@Nullable Output isAlphanumeric) {
            $.isAlphanumeric = isAlphanumeric;
            return this;
        }

        /**
         * @param isAlphanumeric Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters. Default is true.
         * 
         * @return builder
         * 
         */
        public Builder isAlphanumeric(Boolean isAlphanumeric) {
            return isAlphanumeric(Output.of(isAlphanumeric));
        }

        /**
         * @param keyPrefix This prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit.
         * 
         * @return builder
         * 
         */
        public Builder keyPrefix(Output keyPrefix) {
            $.keyPrefix = keyPrefix;
            return this;
        }

        /**
         * @param keyPrefix This prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit.
         * 
         * @return builder
         * 
         */
        public Builder keyPrefix(String keyPrefix) {
            return keyPrefix(Output.of(keyPrefix));
        }

        /**
         * @param repository The repository of the autolink reference.
         * 
         * @return builder
         * 
         */
        public Builder repository(Output repository) {
            $.repository = repository;
            return this;
        }

        /**
         * @param repository The repository of the autolink reference.
         * 
         * @return builder
         * 
         */
        public Builder repository(String repository) {
            return repository(Output.of(repository));
        }

        /**
         * @param targetUrlTemplate The template of the target URL used for the links; must be a valid URL and contain `<num>` for the reference number
         * 
         * @return builder
         * 
         */
        public Builder targetUrlTemplate(Output targetUrlTemplate) {
            $.targetUrlTemplate = targetUrlTemplate;
            return this;
        }

        /**
         * @param targetUrlTemplate The template of the target URL used for the links; must be a valid URL and contain `<num>` for the reference number
         * 
         * @return builder
         * 
         */
        public Builder targetUrlTemplate(String targetUrlTemplate) {
            return targetUrlTemplate(Output.of(targetUrlTemplate));
        }

        public RepositoryAutolinkReferenceArgs build() {
            if ($.keyPrefix == null) {
                throw new MissingRequiredPropertyException("RepositoryAutolinkReferenceArgs", "keyPrefix");
            }
            if ($.repository == null) {
                throw new MissingRequiredPropertyException("RepositoryAutolinkReferenceArgs", "repository");
            }
            if ($.targetUrlTemplate == null) {
                throw new MissingRequiredPropertyException("RepositoryAutolinkReferenceArgs", "targetUrlTemplate");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy