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

com.pulumi.azurenative.appplatform.inputs.ConfigurationServiceGitRepositoryArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
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.azurenative.appplatform.inputs;

import com.pulumi.azurenative.appplatform.enums.GitImplementation;
import com.pulumi.core.Either;
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.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Git repository property payload for Application Configuration Service
 * 
 */
public final class ConfigurationServiceGitRepositoryArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConfigurationServiceGitRepositoryArgs Empty = new ConfigurationServiceGitRepositoryArgs();

    /**
     * Resource Id of CA certificate for https URL of Git repository.
     * 
     */
    @Import(name="caCertResourceId")
    private @Nullable Output caCertResourceId;

    /**
     * @return Resource Id of CA certificate for https URL of Git repository.
     * 
     */
    public Optional> caCertResourceId() {
        return Optional.ofNullable(this.caCertResourceId);
    }

    /**
     * Git libraries used to support various repository providers
     * 
     */
    @Import(name="gitImplementation")
    private @Nullable Output> gitImplementation;

    /**
     * @return Git libraries used to support various repository providers
     * 
     */
    public Optional>> gitImplementation() {
        return Optional.ofNullable(this.gitImplementation);
    }

    /**
     * Public sshKey of git repository.
     * 
     */
    @Import(name="hostKey")
    private @Nullable Output hostKey;

    /**
     * @return Public sshKey of git repository.
     * 
     */
    public Optional> hostKey() {
        return Optional.ofNullable(this.hostKey);
    }

    /**
     * SshKey algorithm of git repository.
     * 
     */
    @Import(name="hostKeyAlgorithm")
    private @Nullable Output hostKeyAlgorithm;

    /**
     * @return SshKey algorithm of git repository.
     * 
     */
    public Optional> hostKeyAlgorithm() {
        return Optional.ofNullable(this.hostKeyAlgorithm);
    }

    /**
     * Label of the repository
     * 
     */
    @Import(name="label", required=true)
    private Output label;

    /**
     * @return Label of the repository
     * 
     */
    public Output label() {
        return this.label;
    }

    /**
     * Name of the repository
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Name of the repository
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * Password of git repository basic auth.
     * 
     */
    @Import(name="password")
    private @Nullable Output password;

    /**
     * @return Password of git repository basic auth.
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }

    /**
     * Collection of patterns of the repository
     * 
     */
    @Import(name="patterns", required=true)
    private Output> patterns;

    /**
     * @return Collection of patterns of the repository
     * 
     */
    public Output> patterns() {
        return this.patterns;
    }

    /**
     * Private sshKey algorithm of git repository.
     * 
     */
    @Import(name="privateKey")
    private @Nullable Output privateKey;

    /**
     * @return Private sshKey algorithm of git repository.
     * 
     */
    public Optional> privateKey() {
        return Optional.ofNullable(this.privateKey);
    }

    /**
     * Searching path of the repository
     * 
     */
    @Import(name="searchPaths")
    private @Nullable Output> searchPaths;

    /**
     * @return Searching path of the repository
     * 
     */
    public Optional>> searchPaths() {
        return Optional.ofNullable(this.searchPaths);
    }

    /**
     * Strict host key checking or not.
     * 
     */
    @Import(name="strictHostKeyChecking")
    private @Nullable Output strictHostKeyChecking;

    /**
     * @return Strict host key checking or not.
     * 
     */
    public Optional> strictHostKeyChecking() {
        return Optional.ofNullable(this.strictHostKeyChecking);
    }

    /**
     * URI of the repository
     * 
     */
    @Import(name="uri", required=true)
    private Output uri;

    /**
     * @return URI of the repository
     * 
     */
    public Output uri() {
        return this.uri;
    }

    /**
     * Username of git repository basic auth.
     * 
     */
    @Import(name="username")
    private @Nullable Output username;

    /**
     * @return Username of git repository basic auth.
     * 
     */
    public Optional> username() {
        return Optional.ofNullable(this.username);
    }

    private ConfigurationServiceGitRepositoryArgs() {}

    private ConfigurationServiceGitRepositoryArgs(ConfigurationServiceGitRepositoryArgs $) {
        this.caCertResourceId = $.caCertResourceId;
        this.gitImplementation = $.gitImplementation;
        this.hostKey = $.hostKey;
        this.hostKeyAlgorithm = $.hostKeyAlgorithm;
        this.label = $.label;
        this.name = $.name;
        this.password = $.password;
        this.patterns = $.patterns;
        this.privateKey = $.privateKey;
        this.searchPaths = $.searchPaths;
        this.strictHostKeyChecking = $.strictHostKeyChecking;
        this.uri = $.uri;
        this.username = $.username;
    }

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

    public static final class Builder {
        private ConfigurationServiceGitRepositoryArgs $;

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

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

        /**
         * @param caCertResourceId Resource Id of CA certificate for https URL of Git repository.
         * 
         * @return builder
         * 
         */
        public Builder caCertResourceId(@Nullable Output caCertResourceId) {
            $.caCertResourceId = caCertResourceId;
            return this;
        }

        /**
         * @param caCertResourceId Resource Id of CA certificate for https URL of Git repository.
         * 
         * @return builder
         * 
         */
        public Builder caCertResourceId(String caCertResourceId) {
            return caCertResourceId(Output.of(caCertResourceId));
        }

        /**
         * @param gitImplementation Git libraries used to support various repository providers
         * 
         * @return builder
         * 
         */
        public Builder gitImplementation(@Nullable Output> gitImplementation) {
            $.gitImplementation = gitImplementation;
            return this;
        }

        /**
         * @param gitImplementation Git libraries used to support various repository providers
         * 
         * @return builder
         * 
         */
        public Builder gitImplementation(Either gitImplementation) {
            return gitImplementation(Output.of(gitImplementation));
        }

        /**
         * @param gitImplementation Git libraries used to support various repository providers
         * 
         * @return builder
         * 
         */
        public Builder gitImplementation(String gitImplementation) {
            return gitImplementation(Either.ofLeft(gitImplementation));
        }

        /**
         * @param gitImplementation Git libraries used to support various repository providers
         * 
         * @return builder
         * 
         */
        public Builder gitImplementation(GitImplementation gitImplementation) {
            return gitImplementation(Either.ofRight(gitImplementation));
        }

        /**
         * @param hostKey Public sshKey of git repository.
         * 
         * @return builder
         * 
         */
        public Builder hostKey(@Nullable Output hostKey) {
            $.hostKey = hostKey;
            return this;
        }

        /**
         * @param hostKey Public sshKey of git repository.
         * 
         * @return builder
         * 
         */
        public Builder hostKey(String hostKey) {
            return hostKey(Output.of(hostKey));
        }

        /**
         * @param hostKeyAlgorithm SshKey algorithm of git repository.
         * 
         * @return builder
         * 
         */
        public Builder hostKeyAlgorithm(@Nullable Output hostKeyAlgorithm) {
            $.hostKeyAlgorithm = hostKeyAlgorithm;
            return this;
        }

        /**
         * @param hostKeyAlgorithm SshKey algorithm of git repository.
         * 
         * @return builder
         * 
         */
        public Builder hostKeyAlgorithm(String hostKeyAlgorithm) {
            return hostKeyAlgorithm(Output.of(hostKeyAlgorithm));
        }

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

        /**
         * @param label Label of the repository
         * 
         * @return builder
         * 
         */
        public Builder label(String label) {
            return label(Output.of(label));
        }

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

        /**
         * @param name Name of the repository
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param password Password of git repository basic auth.
         * 
         * @return builder
         * 
         */
        public Builder password(@Nullable Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password Password of git repository basic auth.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param patterns Collection of patterns of the repository
         * 
         * @return builder
         * 
         */
        public Builder patterns(Output> patterns) {
            $.patterns = patterns;
            return this;
        }

        /**
         * @param patterns Collection of patterns of the repository
         * 
         * @return builder
         * 
         */
        public Builder patterns(List patterns) {
            return patterns(Output.of(patterns));
        }

        /**
         * @param patterns Collection of patterns of the repository
         * 
         * @return builder
         * 
         */
        public Builder patterns(String... patterns) {
            return patterns(List.of(patterns));
        }

        /**
         * @param privateKey Private sshKey algorithm of git repository.
         * 
         * @return builder
         * 
         */
        public Builder privateKey(@Nullable Output privateKey) {
            $.privateKey = privateKey;
            return this;
        }

        /**
         * @param privateKey Private sshKey algorithm of git repository.
         * 
         * @return builder
         * 
         */
        public Builder privateKey(String privateKey) {
            return privateKey(Output.of(privateKey));
        }

        /**
         * @param searchPaths Searching path of the repository
         * 
         * @return builder
         * 
         */
        public Builder searchPaths(@Nullable Output> searchPaths) {
            $.searchPaths = searchPaths;
            return this;
        }

        /**
         * @param searchPaths Searching path of the repository
         * 
         * @return builder
         * 
         */
        public Builder searchPaths(List searchPaths) {
            return searchPaths(Output.of(searchPaths));
        }

        /**
         * @param searchPaths Searching path of the repository
         * 
         * @return builder
         * 
         */
        public Builder searchPaths(String... searchPaths) {
            return searchPaths(List.of(searchPaths));
        }

        /**
         * @param strictHostKeyChecking Strict host key checking or not.
         * 
         * @return builder
         * 
         */
        public Builder strictHostKeyChecking(@Nullable Output strictHostKeyChecking) {
            $.strictHostKeyChecking = strictHostKeyChecking;
            return this;
        }

        /**
         * @param strictHostKeyChecking Strict host key checking or not.
         * 
         * @return builder
         * 
         */
        public Builder strictHostKeyChecking(Boolean strictHostKeyChecking) {
            return strictHostKeyChecking(Output.of(strictHostKeyChecking));
        }

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

        /**
         * @param uri URI of the repository
         * 
         * @return builder
         * 
         */
        public Builder uri(String uri) {
            return uri(Output.of(uri));
        }

        /**
         * @param username Username of git repository basic auth.
         * 
         * @return builder
         * 
         */
        public Builder username(@Nullable Output username) {
            $.username = username;
            return this;
        }

        /**
         * @param username Username of git repository basic auth.
         * 
         * @return builder
         * 
         */
        public Builder username(String username) {
            return username(Output.of(username));
        }

        public ConfigurationServiceGitRepositoryArgs build() {
            if ($.label == null) {
                throw new MissingRequiredPropertyException("ConfigurationServiceGitRepositoryArgs", "label");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("ConfigurationServiceGitRepositoryArgs", "name");
            }
            if ($.patterns == null) {
                throw new MissingRequiredPropertyException("ConfigurationServiceGitRepositoryArgs", "patterns");
            }
            if ($.uri == null) {
                throw new MissingRequiredPropertyException("ConfigurationServiceGitRepositoryArgs", "uri");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy