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

com.pulumi.alicloud.cs.RegistryEnterpriseRepoArgs Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.cs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class RegistryEnterpriseRepoArgs extends com.pulumi.resources.ResourceArgs {

    public static final RegistryEnterpriseRepoArgs Empty = new RegistryEnterpriseRepoArgs();

    /**
     * The description of the repository.
     * 
     */
    @Import(name="detail")
    private @Nullable Output detail;

    /**
     * @return The description of the repository.
     * 
     */
    public Optional> detail() {
        return Optional.ofNullable(this.detail);
    }

    /**
     * The ID of the Container Registry Enterprise Edition instance.
     * 
     */
    @Import(name="instanceId", required=true)
    private Output instanceId;

    /**
     * @return The ID of the Container Registry Enterprise Edition instance.
     * 
     */
    public Output instanceId() {
        return this.instanceId;
    }

    /**
     * The name of the image repository.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the image repository.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The name of the namespace to which the image repository belongs.
     * 
     */
    @Import(name="namespace", required=true)
    private Output namespace;

    /**
     * @return The name of the namespace to which the image repository belongs.
     * 
     */
    public Output namespace() {
        return this.namespace;
    }

    /**
     * The type of the repository. Valid values:
     * - `PUBLIC`: The repository is a public repository.
     * - `PRIVATE`: The repository is a private repository.
     * 
     */
    @Import(name="repoType", required=true)
    private Output repoType;

    /**
     * @return The type of the repository. Valid values:
     * - `PUBLIC`: The repository is a public repository.
     * - `PRIVATE`: The repository is a private repository.
     * 
     */
    public Output repoType() {
        return this.repoType;
    }

    /**
     * The summary about the repository.
     * 
     */
    @Import(name="summary", required=true)
    private Output summary;

    /**
     * @return The summary about the repository.
     * 
     */
    public Output summary() {
        return this.summary;
    }

    private RegistryEnterpriseRepoArgs() {}

    private RegistryEnterpriseRepoArgs(RegistryEnterpriseRepoArgs $) {
        this.detail = $.detail;
        this.instanceId = $.instanceId;
        this.name = $.name;
        this.namespace = $.namespace;
        this.repoType = $.repoType;
        this.summary = $.summary;
    }

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

    public static final class Builder {
        private RegistryEnterpriseRepoArgs $;

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

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

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

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

        /**
         * @param instanceId The ID of the Container Registry Enterprise Edition instance.
         * 
         * @return builder
         * 
         */
        public Builder instanceId(Output instanceId) {
            $.instanceId = instanceId;
            return this;
        }

        /**
         * @param instanceId The ID of the Container Registry Enterprise Edition instance.
         * 
         * @return builder
         * 
         */
        public Builder instanceId(String instanceId) {
            return instanceId(Output.of(instanceId));
        }

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

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

        /**
         * @param namespace The name of the namespace to which the image repository belongs.
         * 
         * @return builder
         * 
         */
        public Builder namespace(Output namespace) {
            $.namespace = namespace;
            return this;
        }

        /**
         * @param namespace The name of the namespace to which the image repository belongs.
         * 
         * @return builder
         * 
         */
        public Builder namespace(String namespace) {
            return namespace(Output.of(namespace));
        }

        /**
         * @param repoType The type of the repository. Valid values:
         * - `PUBLIC`: The repository is a public repository.
         * - `PRIVATE`: The repository is a private repository.
         * 
         * @return builder
         * 
         */
        public Builder repoType(Output repoType) {
            $.repoType = repoType;
            return this;
        }

        /**
         * @param repoType The type of the repository. Valid values:
         * - `PUBLIC`: The repository is a public repository.
         * - `PRIVATE`: The repository is a private repository.
         * 
         * @return builder
         * 
         */
        public Builder repoType(String repoType) {
            return repoType(Output.of(repoType));
        }

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

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

        public RegistryEnterpriseRepoArgs build() {
            if ($.instanceId == null) {
                throw new MissingRequiredPropertyException("RegistryEnterpriseRepoArgs", "instanceId");
            }
            if ($.namespace == null) {
                throw new MissingRequiredPropertyException("RegistryEnterpriseRepoArgs", "namespace");
            }
            if ($.repoType == null) {
                throw new MissingRequiredPropertyException("RegistryEnterpriseRepoArgs", "repoType");
            }
            if ($.summary == null) {
                throw new MissingRequiredPropertyException("RegistryEnterpriseRepoArgs", "summary");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy