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

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

// *** 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.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 config server
 * 
 */
public final class GitPatternRepositoryArgs extends com.pulumi.resources.ResourceArgs {

    public static final GitPatternRepositoryArgs Empty = new GitPatternRepositoryArgs();

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

    /**
     * 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 pattern of the repository
     * 
     */
    @Import(name="pattern")
    private @Nullable Output> pattern;

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

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

    private GitPatternRepositoryArgs(GitPatternRepositoryArgs $) {
        this.hostKey = $.hostKey;
        this.hostKeyAlgorithm = $.hostKeyAlgorithm;
        this.label = $.label;
        this.name = $.name;
        this.password = $.password;
        this.pattern = $.pattern;
        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(GitPatternRepositoryArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private GitPatternRepositoryArgs $;

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

        public Builder(GitPatternRepositoryArgs defaults) {
            $ = new GitPatternRepositoryArgs(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 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 pattern Collection of pattern of the repository
         * 
         * @return builder
         * 
         */
        public Builder pattern(@Nullable Output> pattern) {
            $.pattern = pattern;
            return this;
        }

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy