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

com.pulumi.azurenative.appplatform.inputs.ConfigServerGitPropertyArgs 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.inputs.GitPatternRepositoryArgs;
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;


/**
 * Property of git.
 * 
 */
public final class ConfigServerGitPropertyArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConfigServerGitPropertyArgs Empty = new ConfigServerGitPropertyArgs();

    /**
     * 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")
    private @Nullable Output label;

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

    /**
     * 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);
    }

    /**
     * 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);
    }

    /**
     * Repositories of git.
     * 
     */
    @Import(name="repositories")
    private @Nullable Output> repositories;

    /**
     * @return Repositories of git.
     * 
     */
    public Optional>> repositories() {
        return Optional.ofNullable(this.repositories);
    }

    /**
     * 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 ConfigServerGitPropertyArgs() {}

    private ConfigServerGitPropertyArgs(ConfigServerGitPropertyArgs $) {
        this.hostKey = $.hostKey;
        this.hostKeyAlgorithm = $.hostKeyAlgorithm;
        this.label = $.label;
        this.password = $.password;
        this.privateKey = $.privateKey;
        this.repositories = $.repositories;
        this.searchPaths = $.searchPaths;
        this.strictHostKeyChecking = $.strictHostKeyChecking;
        this.uri = $.uri;
        this.username = $.username;
    }

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

    public static final class Builder {
        private ConfigServerGitPropertyArgs $;

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

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

        /**
         * @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(@Nullable 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 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 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 repositories Repositories of git.
         * 
         * @return builder
         * 
         */
        public Builder repositories(@Nullable Output> repositories) {
            $.repositories = repositories;
            return this;
        }

        /**
         * @param repositories Repositories of git.
         * 
         * @return builder
         * 
         */
        public Builder repositories(List repositories) {
            return repositories(Output.of(repositories));
        }

        /**
         * @param repositories Repositories of git.
         * 
         * @return builder
         * 
         */
        public Builder repositories(GitPatternRepositoryArgs... repositories) {
            return repositories(List.of(repositories));
        }

        /**
         * @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 ConfigServerGitPropertyArgs build() {
            if ($.uri == null) {
                throw new MissingRequiredPropertyException("ConfigServerGitPropertyArgs", "uri");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy