// *** 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.gcp.artifactregistry.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.gcp.artifactregistry.outputs.RepositoryRemoteRepositoryConfigDockerRepository;
import com.pulumi.gcp.artifactregistry.outputs.RepositoryRemoteRepositoryConfigMavenRepository;
import com.pulumi.gcp.artifactregistry.outputs.RepositoryRemoteRepositoryConfigNpmRepository;
import com.pulumi.gcp.artifactregistry.outputs.RepositoryRemoteRepositoryConfigPythonRepository;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class RepositoryRemoteRepositoryConfig {
    /**
     * @return The description of the remote source.
     * 
     */
    private @Nullable String description;
    /**
     * @return Specific settings for a Docker remote repository.
     * Structure is documented below.
     * 
     */
    private @Nullable RepositoryRemoteRepositoryConfigDockerRepository dockerRepository;
    /**
     * @return Specific settings for a Maven remote repository.
     * Structure is documented below.
     * 
     */
    private @Nullable RepositoryRemoteRepositoryConfigMavenRepository mavenRepository;
    /**
     * @return Specific settings for an Npm remote repository.
     * Structure is documented below.
     * 
     */
    private @Nullable RepositoryRemoteRepositoryConfigNpmRepository npmRepository;
    /**
     * @return Specific settings for a Python remote repository.
     * Structure is documented below.
     * 
     */
    private @Nullable RepositoryRemoteRepositoryConfigPythonRepository pythonRepository;

    private RepositoryRemoteRepositoryConfig() {}
    /**
     * @return The description of the remote source.
     * 
     */
    public Optional<String> description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return Specific settings for a Docker remote repository.
     * Structure is documented below.
     * 
     */
    public Optional<RepositoryRemoteRepositoryConfigDockerRepository> dockerRepository() {
        return Optional.ofNullable(this.dockerRepository);
    }
    /**
     * @return Specific settings for a Maven remote repository.
     * Structure is documented below.
     * 
     */
    public Optional<RepositoryRemoteRepositoryConfigMavenRepository> mavenRepository() {
        return Optional.ofNullable(this.mavenRepository);
    }
    /**
     * @return Specific settings for an Npm remote repository.
     * Structure is documented below.
     * 
     */
    public Optional<RepositoryRemoteRepositoryConfigNpmRepository> npmRepository() {
        return Optional.ofNullable(this.npmRepository);
    }
    /**
     * @return Specific settings for a Python remote repository.
     * Structure is documented below.
     * 
     */
    public Optional<RepositoryRemoteRepositoryConfigPythonRepository> pythonRepository() {
        return Optional.ofNullable(this.pythonRepository);
    }

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

    public static Builder builder(RepositoryRemoteRepositoryConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String description;
        private @Nullable RepositoryRemoteRepositoryConfigDockerRepository dockerRepository;
        private @Nullable RepositoryRemoteRepositoryConfigMavenRepository mavenRepository;
        private @Nullable RepositoryRemoteRepositoryConfigNpmRepository npmRepository;
        private @Nullable RepositoryRemoteRepositoryConfigPythonRepository pythonRepository;
        public Builder() {}
        public Builder(RepositoryRemoteRepositoryConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.description = defaults.description;
    	      this.dockerRepository = defaults.dockerRepository;
    	      this.mavenRepository = defaults.mavenRepository;
    	      this.npmRepository = defaults.npmRepository;
    	      this.pythonRepository = defaults.pythonRepository;
        }

        @CustomType.Setter
        public Builder description(@Nullable String description) {
            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder dockerRepository(@Nullable RepositoryRemoteRepositoryConfigDockerRepository dockerRepository) {
            this.dockerRepository = dockerRepository;
            return this;
        }
        @CustomType.Setter
        public Builder mavenRepository(@Nullable RepositoryRemoteRepositoryConfigMavenRepository mavenRepository) {
            this.mavenRepository = mavenRepository;
            return this;
        }
        @CustomType.Setter
        public Builder npmRepository(@Nullable RepositoryRemoteRepositoryConfigNpmRepository npmRepository) {
            this.npmRepository = npmRepository;
            return this;
        }
        @CustomType.Setter
        public Builder pythonRepository(@Nullable RepositoryRemoteRepositoryConfigPythonRepository pythonRepository) {
            this.pythonRepository = pythonRepository;
            return this;
        }
        public RepositoryRemoteRepositoryConfig build() {
            final var o = new RepositoryRemoteRepositoryConfig();
            o.description = description;
            o.dockerRepository = dockerRepository;
            o.mavenRepository = mavenRepository;
            o.npmRepository = npmRepository;
            o.pythonRepository = pythonRepository;
            return o;
        }
    }
}
