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

com.ovhcloud.pulumi.ovh.CloudProject.inputs.GetContainerRegistryPlainArgs Maven / Gradle / Ivy

There is a newer version: 1.1.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.ovhcloud.pulumi.ovh.CloudProject.inputs;

import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


public final class GetContainerRegistryPlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetContainerRegistryPlainArgs Empty = new GetContainerRegistryPlainArgs();

    /**
     * Registry ID
     * 
     */
    @Import(name="registryId", required=true)
    private String registryId;

    /**
     * @return Registry ID
     * 
     */
    public String registryId() {
        return this.registryId;
    }

    /**
     * The id of the public cloud project. If omitted,
     * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
     * 
     */
    @Import(name="serviceName", required=true)
    private String serviceName;

    /**
     * @return The id of the public cloud project. If omitted,
     * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
     * 
     */
    public String serviceName() {
        return this.serviceName;
    }

    private GetContainerRegistryPlainArgs() {}

    private GetContainerRegistryPlainArgs(GetContainerRegistryPlainArgs $) {
        this.registryId = $.registryId;
        this.serviceName = $.serviceName;
    }

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

    public static final class Builder {
        private GetContainerRegistryPlainArgs $;

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

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

        /**
         * @param registryId Registry ID
         * 
         * @return builder
         * 
         */
        public Builder registryId(String registryId) {
            $.registryId = registryId;
            return this;
        }

        /**
         * @param serviceName The id of the public cloud project. If omitted,
         * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        public GetContainerRegistryPlainArgs build() {
            if ($.registryId == null) {
                throw new MissingRequiredPropertyException("GetContainerRegistryPlainArgs", "registryId");
            }
            if ($.serviceName == null) {
                throw new MissingRequiredPropertyException("GetContainerRegistryPlainArgs", "serviceName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy