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

com.pulumi.azurenative.containerregistry.RegistryArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.enums.NetworkRuleBypassOptions;
import com.pulumi.azurenative.containerregistry.enums.PublicNetworkAccess;
import com.pulumi.azurenative.containerregistry.enums.ZoneRedundancy;
import com.pulumi.azurenative.containerregistry.inputs.EncryptionPropertyArgs;
import com.pulumi.azurenative.containerregistry.inputs.IdentityPropertiesArgs;
import com.pulumi.azurenative.containerregistry.inputs.NetworkRuleSetArgs;
import com.pulumi.azurenative.containerregistry.inputs.PoliciesArgs;
import com.pulumi.azurenative.containerregistry.inputs.SkuArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final RegistryArgs Empty = new RegistryArgs();

    /**
     * The value that indicates whether the admin user is enabled.
     * 
     */
    @Import(name="adminUserEnabled")
    private @Nullable Output adminUserEnabled;

    /**
     * @return The value that indicates whether the admin user is enabled.
     * 
     */
    public Optional> adminUserEnabled() {
        return Optional.ofNullable(this.adminUserEnabled);
    }

    /**
     * Enable a single data endpoint per region for serving data.
     * 
     */
    @Import(name="dataEndpointEnabled")
    private @Nullable Output dataEndpointEnabled;

    /**
     * @return Enable a single data endpoint per region for serving data.
     * 
     */
    public Optional> dataEndpointEnabled() {
        return Optional.ofNullable(this.dataEndpointEnabled);
    }

    /**
     * The encryption settings of container registry.
     * 
     */
    @Import(name="encryption")
    private @Nullable Output encryption;

    /**
     * @return The encryption settings of container registry.
     * 
     */
    public Optional> encryption() {
        return Optional.ofNullable(this.encryption);
    }

    /**
     * The identity of the container registry.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return The identity of the container registry.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * The location of the resource. This cannot be changed after the resource is created.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The location of the resource. This cannot be changed after the resource is created.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Whether to allow trusted Azure services to access a network restricted registry.
     * 
     */
    @Import(name="networkRuleBypassOptions")
    private @Nullable Output> networkRuleBypassOptions;

    /**
     * @return Whether to allow trusted Azure services to access a network restricted registry.
     * 
     */
    public Optional>> networkRuleBypassOptions() {
        return Optional.ofNullable(this.networkRuleBypassOptions);
    }

    /**
     * The network rule set for a container registry.
     * 
     */
    @Import(name="networkRuleSet")
    private @Nullable Output networkRuleSet;

    /**
     * @return The network rule set for a container registry.
     * 
     */
    public Optional> networkRuleSet() {
        return Optional.ofNullable(this.networkRuleSet);
    }

    /**
     * The policies for a container registry.
     * 
     */
    @Import(name="policies")
    private @Nullable Output policies;

    /**
     * @return The policies for a container registry.
     * 
     */
    public Optional> policies() {
        return Optional.ofNullable(this.policies);
    }

    /**
     * Whether or not public network access is allowed for the container registry.
     * 
     */
    @Import(name="publicNetworkAccess")
    private @Nullable Output> publicNetworkAccess;

    /**
     * @return Whether or not public network access is allowed for the container registry.
     * 
     */
    public Optional>> publicNetworkAccess() {
        return Optional.ofNullable(this.publicNetworkAccess);
    }

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

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

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

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

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

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

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

    /**
     * Whether or not zone redundancy is enabled for this container registry
     * 
     */
    @Import(name="zoneRedundancy")
    private @Nullable Output> zoneRedundancy;

    /**
     * @return Whether or not zone redundancy is enabled for this container registry
     * 
     */
    public Optional>> zoneRedundancy() {
        return Optional.ofNullable(this.zoneRedundancy);
    }

    private RegistryArgs() {}

    private RegistryArgs(RegistryArgs $) {
        this.adminUserEnabled = $.adminUserEnabled;
        this.dataEndpointEnabled = $.dataEndpointEnabled;
        this.encryption = $.encryption;
        this.identity = $.identity;
        this.location = $.location;
        this.networkRuleBypassOptions = $.networkRuleBypassOptions;
        this.networkRuleSet = $.networkRuleSet;
        this.policies = $.policies;
        this.publicNetworkAccess = $.publicNetworkAccess;
        this.registryName = $.registryName;
        this.resourceGroupName = $.resourceGroupName;
        this.sku = $.sku;
        this.tags = $.tags;
        this.zoneRedundancy = $.zoneRedundancy;
    }

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

    public static final class Builder {
        private RegistryArgs $;

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

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

        /**
         * @param adminUserEnabled The value that indicates whether the admin user is enabled.
         * 
         * @return builder
         * 
         */
        public Builder adminUserEnabled(@Nullable Output adminUserEnabled) {
            $.adminUserEnabled = adminUserEnabled;
            return this;
        }

        /**
         * @param adminUserEnabled The value that indicates whether the admin user is enabled.
         * 
         * @return builder
         * 
         */
        public Builder adminUserEnabled(Boolean adminUserEnabled) {
            return adminUserEnabled(Output.of(adminUserEnabled));
        }

        /**
         * @param dataEndpointEnabled Enable a single data endpoint per region for serving data.
         * 
         * @return builder
         * 
         */
        public Builder dataEndpointEnabled(@Nullable Output dataEndpointEnabled) {
            $.dataEndpointEnabled = dataEndpointEnabled;
            return this;
        }

        /**
         * @param dataEndpointEnabled Enable a single data endpoint per region for serving data.
         * 
         * @return builder
         * 
         */
        public Builder dataEndpointEnabled(Boolean dataEndpointEnabled) {
            return dataEndpointEnabled(Output.of(dataEndpointEnabled));
        }

        /**
         * @param encryption The encryption settings of container registry.
         * 
         * @return builder
         * 
         */
        public Builder encryption(@Nullable Output encryption) {
            $.encryption = encryption;
            return this;
        }

        /**
         * @param encryption The encryption settings of container registry.
         * 
         * @return builder
         * 
         */
        public Builder encryption(EncryptionPropertyArgs encryption) {
            return encryption(Output.of(encryption));
        }

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

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

        /**
         * @param location The location of the resource. This cannot be changed after the resource is created.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The location of the resource. This cannot be changed after the resource is created.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param networkRuleBypassOptions Whether to allow trusted Azure services to access a network restricted registry.
         * 
         * @return builder
         * 
         */
        public Builder networkRuleBypassOptions(@Nullable Output> networkRuleBypassOptions) {
            $.networkRuleBypassOptions = networkRuleBypassOptions;
            return this;
        }

        /**
         * @param networkRuleBypassOptions Whether to allow trusted Azure services to access a network restricted registry.
         * 
         * @return builder
         * 
         */
        public Builder networkRuleBypassOptions(Either networkRuleBypassOptions) {
            return networkRuleBypassOptions(Output.of(networkRuleBypassOptions));
        }

        /**
         * @param networkRuleBypassOptions Whether to allow trusted Azure services to access a network restricted registry.
         * 
         * @return builder
         * 
         */
        public Builder networkRuleBypassOptions(String networkRuleBypassOptions) {
            return networkRuleBypassOptions(Either.ofLeft(networkRuleBypassOptions));
        }

        /**
         * @param networkRuleBypassOptions Whether to allow trusted Azure services to access a network restricted registry.
         * 
         * @return builder
         * 
         */
        public Builder networkRuleBypassOptions(NetworkRuleBypassOptions networkRuleBypassOptions) {
            return networkRuleBypassOptions(Either.ofRight(networkRuleBypassOptions));
        }

        /**
         * @param networkRuleSet The network rule set for a container registry.
         * 
         * @return builder
         * 
         */
        public Builder networkRuleSet(@Nullable Output networkRuleSet) {
            $.networkRuleSet = networkRuleSet;
            return this;
        }

        /**
         * @param networkRuleSet The network rule set for a container registry.
         * 
         * @return builder
         * 
         */
        public Builder networkRuleSet(NetworkRuleSetArgs networkRuleSet) {
            return networkRuleSet(Output.of(networkRuleSet));
        }

        /**
         * @param policies The policies for a container registry.
         * 
         * @return builder
         * 
         */
        public Builder policies(@Nullable Output policies) {
            $.policies = policies;
            return this;
        }

        /**
         * @param policies The policies for a container registry.
         * 
         * @return builder
         * 
         */
        public Builder policies(PoliciesArgs policies) {
            return policies(Output.of(policies));
        }

        /**
         * @param publicNetworkAccess Whether or not public network access is allowed for the container registry.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(@Nullable Output> publicNetworkAccess) {
            $.publicNetworkAccess = publicNetworkAccess;
            return this;
        }

        /**
         * @param publicNetworkAccess Whether or not public network access is allowed for the container registry.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(Either publicNetworkAccess) {
            return publicNetworkAccess(Output.of(publicNetworkAccess));
        }

        /**
         * @param publicNetworkAccess Whether or not public network access is allowed for the container registry.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(String publicNetworkAccess) {
            return publicNetworkAccess(Either.ofLeft(publicNetworkAccess));
        }

        /**
         * @param publicNetworkAccess Whether or not public network access is allowed for the container registry.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
            return publicNetworkAccess(Either.ofRight(publicNetworkAccess));
        }

        /**
         * @param registryName The name of the container registry.
         * 
         * @return builder
         * 
         */
        public Builder registryName(@Nullable 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));
        }

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

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

        /**
         * @param sku The SKU of the container registry.
         * 
         * @return builder
         * 
         */
        public Builder sku(SkuArgs sku) {
            return sku(Output.of(sku));
        }

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

        /**
         * @param tags The tags of the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param zoneRedundancy Whether or not zone redundancy is enabled for this container registry
         * 
         * @return builder
         * 
         */
        public Builder zoneRedundancy(@Nullable Output> zoneRedundancy) {
            $.zoneRedundancy = zoneRedundancy;
            return this;
        }

        /**
         * @param zoneRedundancy Whether or not zone redundancy is enabled for this container registry
         * 
         * @return builder
         * 
         */
        public Builder zoneRedundancy(Either zoneRedundancy) {
            return zoneRedundancy(Output.of(zoneRedundancy));
        }

        /**
         * @param zoneRedundancy Whether or not zone redundancy is enabled for this container registry
         * 
         * @return builder
         * 
         */
        public Builder zoneRedundancy(String zoneRedundancy) {
            return zoneRedundancy(Either.ofLeft(zoneRedundancy));
        }

        /**
         * @param zoneRedundancy Whether or not zone redundancy is enabled for this container registry
         * 
         * @return builder
         * 
         */
        public Builder zoneRedundancy(ZoneRedundancy zoneRedundancy) {
            return zoneRedundancy(Either.ofRight(zoneRedundancy));
        }

        public RegistryArgs build() {
            $.adminUserEnabled = Codegen.booleanProp("adminUserEnabled").output().arg($.adminUserEnabled).def(false).getNullable();
            $.networkRuleBypassOptions = Codegen.stringProp("networkRuleBypassOptions").left(NetworkRuleBypassOptions.class).output().arg($.networkRuleBypassOptions).def("AzureServices").getNullable();
            $.publicNetworkAccess = Codegen.stringProp("publicNetworkAccess").left(PublicNetworkAccess.class).output().arg($.publicNetworkAccess).def("Enabled").getNullable();
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("RegistryArgs", "resourceGroupName");
            }
            if ($.sku == null) {
                throw new MissingRequiredPropertyException("RegistryArgs", "sku");
            }
            $.zoneRedundancy = Codegen.stringProp("zoneRedundancy").left(ZoneRedundancy.class).output().arg($.zoneRedundancy).def("Disabled").getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy