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

com.pulumi.azurenative.containerregistry.ArchifeArgs 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.containerregistry;

import com.pulumi.azurenative.containerregistry.inputs.ArchivePackageSourcePropertiesArgs;
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 ArchifeArgs extends com.pulumi.resources.ResourceArgs {

    public static final ArchifeArgs Empty = new ArchifeArgs();

    /**
     * The name of the archive resource.
     * 
     */
    @Import(name="archiveName")
    private @Nullable Output archiveName;

    /**
     * @return The name of the archive resource.
     * 
     */
    public Optional> archiveName() {
        return Optional.ofNullable(this.archiveName);
    }

    /**
     * The package source of the archive.
     * 
     */
    @Import(name="packageSource")
    private @Nullable Output packageSource;

    /**
     * @return The package source of the archive.
     * 
     */
    public Optional> packageSource() {
        return Optional.ofNullable(this.packageSource);
    }

    /**
     * The type of the package resource.
     * 
     */
    @Import(name="packageType", required=true)
    private Output packageType;

    /**
     * @return The type of the package resource.
     * 
     */
    public Output packageType() {
        return this.packageType;
    }

    /**
     * The published version of the archive.
     * 
     */
    @Import(name="publishedVersion")
    private @Nullable Output publishedVersion;

    /**
     * @return The published version of the archive.
     * 
     */
    public Optional> publishedVersion() {
        return Optional.ofNullable(this.publishedVersion);
    }

    /**
     * The name of the container registry.
     * 
     */
    @Import(name="registryName", required=true)
    private Output registryName;

    /**
     * @return The name of the container registry.
     * 
     */
    public Output registryName() {
        return this.registryName;
    }

    @Import(name="repositoryEndpointPrefix")
    private @Nullable Output repositoryEndpointPrefix;

    public Optional> repositoryEndpointPrefix() {
        return Optional.ofNullable(this.repositoryEndpointPrefix);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    private ArchifeArgs() {}

    private ArchifeArgs(ArchifeArgs $) {
        this.archiveName = $.archiveName;
        this.packageSource = $.packageSource;
        this.packageType = $.packageType;
        this.publishedVersion = $.publishedVersion;
        this.registryName = $.registryName;
        this.repositoryEndpointPrefix = $.repositoryEndpointPrefix;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private ArchifeArgs $;

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

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

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

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

        /**
         * @param packageSource The package source of the archive.
         * 
         * @return builder
         * 
         */
        public Builder packageSource(@Nullable Output packageSource) {
            $.packageSource = packageSource;
            return this;
        }

        /**
         * @param packageSource The package source of the archive.
         * 
         * @return builder
         * 
         */
        public Builder packageSource(ArchivePackageSourcePropertiesArgs packageSource) {
            return packageSource(Output.of(packageSource));
        }

        /**
         * @param packageType The type of the package resource.
         * 
         * @return builder
         * 
         */
        public Builder packageType(Output packageType) {
            $.packageType = packageType;
            return this;
        }

        /**
         * @param packageType The type of the package resource.
         * 
         * @return builder
         * 
         */
        public Builder packageType(String packageType) {
            return packageType(Output.of(packageType));
        }

        /**
         * @param publishedVersion The published version of the archive.
         * 
         * @return builder
         * 
         */
        public Builder publishedVersion(@Nullable Output publishedVersion) {
            $.publishedVersion = publishedVersion;
            return this;
        }

        /**
         * @param publishedVersion The published version of the archive.
         * 
         * @return builder
         * 
         */
        public Builder publishedVersion(String publishedVersion) {
            return publishedVersion(Output.of(publishedVersion));
        }

        /**
         * @param registryName The name of the container registry.
         * 
         * @return builder
         * 
         */
        public Builder registryName(Output registryName) {
            $.registryName = registryName;
            return this;
        }

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

        public Builder repositoryEndpointPrefix(@Nullable Output repositoryEndpointPrefix) {
            $.repositoryEndpointPrefix = repositoryEndpointPrefix;
            return this;
        }

        public Builder repositoryEndpointPrefix(String repositoryEndpointPrefix) {
            return repositoryEndpointPrefix(Output.of(repositoryEndpointPrefix));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        public ArchifeArgs build() {
            if ($.packageType == null) {
                throw new MissingRequiredPropertyException("ArchifeArgs", "packageType");
            }
            if ($.registryName == null) {
                throw new MissingRequiredPropertyException("ArchifeArgs", "registryName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ArchifeArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy