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

com.pulumi.azure.containerservice.inputs.RegistryState Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.containerservice.inputs;

import com.pulumi.azure.containerservice.inputs.RegistryEncryptionArgs;
import com.pulumi.azure.containerservice.inputs.RegistryGeoreplicationArgs;
import com.pulumi.azure.containerservice.inputs.RegistryIdentityArgs;
import com.pulumi.azure.containerservice.inputs.RegistryNetworkRuleSetArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final RegistryState Empty = new RegistryState();

    /**
     * Specifies whether the admin user is enabled. Defaults to `false`.
     * 
     */
    @Import(name="adminEnabled")
    private @Nullable Output adminEnabled;

    /**
     * @return Specifies whether the admin user is enabled. Defaults to `false`.
     * 
     */
    public Optional> adminEnabled() {
        return Optional.ofNullable(this.adminEnabled);
    }

    /**
     * The Password associated with the Container Registry Admin account - if the admin account is enabled.
     * 
     */
    @Import(name="adminPassword")
    private @Nullable Output adminPassword;

    /**
     * @return The Password associated with the Container Registry Admin account - if the admin account is enabled.
     * 
     */
    public Optional> adminPassword() {
        return Optional.ofNullable(this.adminPassword);
    }

    /**
     * The Username associated with the Container Registry Admin account - if the admin account is enabled.
     * 
     */
    @Import(name="adminUsername")
    private @Nullable Output adminUsername;

    /**
     * @return The Username associated with the Container Registry Admin account - if the admin account is enabled.
     * 
     */
    public Optional> adminUsername() {
        return Optional.ofNullable(this.adminUsername);
    }

    /**
     * Whether allows anonymous (unauthenticated) pull access to this Container Registry? This is only supported on resources with the `Standard` or `Premium` SKU.
     * 
     */
    @Import(name="anonymousPullEnabled")
    private @Nullable Output anonymousPullEnabled;

    /**
     * @return Whether allows anonymous (unauthenticated) pull access to this Container Registry? This is only supported on resources with the `Standard` or `Premium` SKU.
     * 
     */
    public Optional> anonymousPullEnabled() {
        return Optional.ofNullable(this.anonymousPullEnabled);
    }

    /**
     * Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the `Premium` SKU.
     * 
     */
    @Import(name="dataEndpointEnabled")
    private @Nullable Output dataEndpointEnabled;

    /**
     * @return Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the `Premium` SKU.
     * 
     */
    public Optional> dataEndpointEnabled() {
        return Optional.ofNullable(this.dataEndpointEnabled);
    }

    /**
     * An `encryption` block as documented below.
     * 
     */
    @Import(name="encryption")
    private @Nullable Output encryption;

    /**
     * @return An `encryption` block as documented below.
     * 
     */
    public Optional> encryption() {
        return Optional.ofNullable(this.encryption);
    }

    /**
     * Boolean value that indicates whether export policy is enabled. Defaults to `true`. In order to set it to `false`, make sure the `public_network_access_enabled` is also set to `false`.
     * 
     * > **NOTE:** `quarantine_policy_enabled`, `retention_policy_in_days`, `trust_policy_enabled`, `export_policy_enabled` and `zone_redundancy_enabled` are only supported on resources with the `Premium` SKU.
     * 
     */
    @Import(name="exportPolicyEnabled")
    private @Nullable Output exportPolicyEnabled;

    /**
     * @return Boolean value that indicates whether export policy is enabled. Defaults to `true`. In order to set it to `false`, make sure the `public_network_access_enabled` is also set to `false`.
     * 
     * > **NOTE:** `quarantine_policy_enabled`, `retention_policy_in_days`, `trust_policy_enabled`, `export_policy_enabled` and `zone_redundancy_enabled` are only supported on resources with the `Premium` SKU.
     * 
     */
    public Optional> exportPolicyEnabled() {
        return Optional.ofNullable(this.exportPolicyEnabled);
    }

    /**
     * One or more `georeplications` blocks as documented below.
     * 
     * > **NOTE:** The `georeplications` is only supported on new resources with the `Premium` SKU.
     * 
     * > **NOTE:** The `georeplications` list cannot contain the location where the Container Registry exists.
     * 
     * > **NOTE:** If more than one `georeplications` block is specified, they are expected to follow the alphabetic order on the `location` property.
     * 
     */
    @Import(name="georeplications")
    private @Nullable Output> georeplications;

    /**
     * @return One or more `georeplications` blocks as documented below.
     * 
     * > **NOTE:** The `georeplications` is only supported on new resources with the `Premium` SKU.
     * 
     * > **NOTE:** The `georeplications` list cannot contain the location where the Container Registry exists.
     * 
     * > **NOTE:** If more than one `georeplications` block is specified, they are expected to follow the alphabetic order on the `location` property.
     * 
     */
    public Optional>> georeplications() {
        return Optional.ofNullable(this.georeplications);
    }

    /**
     * An `identity` block as defined below.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return An `identity` block as defined below.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The URL that can be used to log into the container registry.
     * 
     */
    @Import(name="loginServer")
    private @Nullable Output loginServer;

    /**
     * @return The URL that can be used to log into the container registry.
     * 
     */
    public Optional> loginServer() {
        return Optional.ofNullable(this.loginServer);
    }

    /**
     * Specifies the name of the Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Specifies the name of the Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Whether to allow trusted Azure services to access a network restricted Container Registry? Possible values are `None` and `AzureServices`. Defaults to `AzureServices`.
     * 
     */
    @Import(name="networkRuleBypassOption")
    private @Nullable Output networkRuleBypassOption;

    /**
     * @return Whether to allow trusted Azure services to access a network restricted Container Registry? Possible values are `None` and `AzureServices`. Defaults to `AzureServices`.
     * 
     */
    public Optional> networkRuleBypassOption() {
        return Optional.ofNullable(this.networkRuleBypassOption);
    }

    /**
     * A `network_rule_set` block as documented below.
     * 
     */
    @Import(name="networkRuleSet")
    private @Nullable Output networkRuleSet;

    /**
     * @return A `network_rule_set` block as documented below.
     * 
     */
    public Optional> networkRuleSet() {
        return Optional.ofNullable(this.networkRuleSet);
    }

    /**
     * Whether public network access is allowed for the container registry. Defaults to `true`.
     * 
     */
    @Import(name="publicNetworkAccessEnabled")
    private @Nullable Output publicNetworkAccessEnabled;

    /**
     * @return Whether public network access is allowed for the container registry. Defaults to `true`.
     * 
     */
    public Optional> publicNetworkAccessEnabled() {
        return Optional.ofNullable(this.publicNetworkAccessEnabled);
    }

    /**
     * Boolean value that indicates whether quarantine policy is enabled.
     * 
     */
    @Import(name="quarantinePolicyEnabled")
    private @Nullable Output quarantinePolicyEnabled;

    /**
     * @return Boolean value that indicates whether quarantine policy is enabled.
     * 
     */
    public Optional> quarantinePolicyEnabled() {
        return Optional.ofNullable(this.quarantinePolicyEnabled);
    }

    /**
     * The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName")
    private @Nullable Output resourceGroupName;

    /**
     * @return The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
     * 
     */
    public Optional> resourceGroupName() {
        return Optional.ofNullable(this.resourceGroupName);
    }

    /**
     * The number of days to retain and untagged manifest after which it gets purged. Defaults to `7`.
     * 
     */
    @Import(name="retentionPolicyInDays")
    private @Nullable Output retentionPolicyInDays;

    /**
     * @return The number of days to retain and untagged manifest after which it gets purged. Defaults to `7`.
     * 
     */
    public Optional> retentionPolicyInDays() {
        return Optional.ofNullable(this.retentionPolicyInDays);
    }

    /**
     * The SKU name of the container registry. Possible values are `Basic`, `Standard` and `Premium`.
     * 
     */
    @Import(name="sku")
    private @Nullable Output sku;

    /**
     * @return The SKU name of the container registry. Possible values are `Basic`, `Standard` and `Premium`.
     * 
     */
    public Optional> sku() {
        return Optional.ofNullable(this.sku);
    }

    /**
     * A mapping of tags to assign to the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags to assign to the resource.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * Boolean value that indicated whether trust policy is enabled. Defaults to `false`.
     * 
     */
    @Import(name="trustPolicyEnabled")
    private @Nullable Output trustPolicyEnabled;

    /**
     * @return Boolean value that indicated whether trust policy is enabled. Defaults to `false`.
     * 
     */
    public Optional> trustPolicyEnabled() {
        return Optional.ofNullable(this.trustPolicyEnabled);
    }

    /**
     * Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to `false`.
     * 
     */
    @Import(name="zoneRedundancyEnabled")
    private @Nullable Output zoneRedundancyEnabled;

    /**
     * @return Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to `false`.
     * 
     */
    public Optional> zoneRedundancyEnabled() {
        return Optional.ofNullable(this.zoneRedundancyEnabled);
    }

    private RegistryState() {}

    private RegistryState(RegistryState $) {
        this.adminEnabled = $.adminEnabled;
        this.adminPassword = $.adminPassword;
        this.adminUsername = $.adminUsername;
        this.anonymousPullEnabled = $.anonymousPullEnabled;
        this.dataEndpointEnabled = $.dataEndpointEnabled;
        this.encryption = $.encryption;
        this.exportPolicyEnabled = $.exportPolicyEnabled;
        this.georeplications = $.georeplications;
        this.identity = $.identity;
        this.location = $.location;
        this.loginServer = $.loginServer;
        this.name = $.name;
        this.networkRuleBypassOption = $.networkRuleBypassOption;
        this.networkRuleSet = $.networkRuleSet;
        this.publicNetworkAccessEnabled = $.publicNetworkAccessEnabled;
        this.quarantinePolicyEnabled = $.quarantinePolicyEnabled;
        this.resourceGroupName = $.resourceGroupName;
        this.retentionPolicyInDays = $.retentionPolicyInDays;
        this.sku = $.sku;
        this.tags = $.tags;
        this.trustPolicyEnabled = $.trustPolicyEnabled;
        this.zoneRedundancyEnabled = $.zoneRedundancyEnabled;
    }

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

    public static final class Builder {
        private RegistryState $;

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

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

        /**
         * @param adminEnabled Specifies whether the admin user is enabled. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder adminEnabled(@Nullable Output adminEnabled) {
            $.adminEnabled = adminEnabled;
            return this;
        }

        /**
         * @param adminEnabled Specifies whether the admin user is enabled. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder adminEnabled(Boolean adminEnabled) {
            return adminEnabled(Output.of(adminEnabled));
        }

        /**
         * @param adminPassword The Password associated with the Container Registry Admin account - if the admin account is enabled.
         * 
         * @return builder
         * 
         */
        public Builder adminPassword(@Nullable Output adminPassword) {
            $.adminPassword = adminPassword;
            return this;
        }

        /**
         * @param adminPassword The Password associated with the Container Registry Admin account - if the admin account is enabled.
         * 
         * @return builder
         * 
         */
        public Builder adminPassword(String adminPassword) {
            return adminPassword(Output.of(adminPassword));
        }

        /**
         * @param adminUsername The Username associated with the Container Registry Admin account - if the admin account is enabled.
         * 
         * @return builder
         * 
         */
        public Builder adminUsername(@Nullable Output adminUsername) {
            $.adminUsername = adminUsername;
            return this;
        }

        /**
         * @param adminUsername The Username associated with the Container Registry Admin account - if the admin account is enabled.
         * 
         * @return builder
         * 
         */
        public Builder adminUsername(String adminUsername) {
            return adminUsername(Output.of(adminUsername));
        }

        /**
         * @param anonymousPullEnabled Whether allows anonymous (unauthenticated) pull access to this Container Registry? This is only supported on resources with the `Standard` or `Premium` SKU.
         * 
         * @return builder
         * 
         */
        public Builder anonymousPullEnabled(@Nullable Output anonymousPullEnabled) {
            $.anonymousPullEnabled = anonymousPullEnabled;
            return this;
        }

        /**
         * @param anonymousPullEnabled Whether allows anonymous (unauthenticated) pull access to this Container Registry? This is only supported on resources with the `Standard` or `Premium` SKU.
         * 
         * @return builder
         * 
         */
        public Builder anonymousPullEnabled(Boolean anonymousPullEnabled) {
            return anonymousPullEnabled(Output.of(anonymousPullEnabled));
        }

        /**
         * @param dataEndpointEnabled Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the `Premium` SKU.
         * 
         * @return builder
         * 
         */
        public Builder dataEndpointEnabled(@Nullable Output dataEndpointEnabled) {
            $.dataEndpointEnabled = dataEndpointEnabled;
            return this;
        }

        /**
         * @param dataEndpointEnabled Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the `Premium` SKU.
         * 
         * @return builder
         * 
         */
        public Builder dataEndpointEnabled(Boolean dataEndpointEnabled) {
            return dataEndpointEnabled(Output.of(dataEndpointEnabled));
        }

        /**
         * @param encryption An `encryption` block as documented below.
         * 
         * @return builder
         * 
         */
        public Builder encryption(@Nullable Output encryption) {
            $.encryption = encryption;
            return this;
        }

        /**
         * @param encryption An `encryption` block as documented below.
         * 
         * @return builder
         * 
         */
        public Builder encryption(RegistryEncryptionArgs encryption) {
            return encryption(Output.of(encryption));
        }

        /**
         * @param exportPolicyEnabled Boolean value that indicates whether export policy is enabled. Defaults to `true`. In order to set it to `false`, make sure the `public_network_access_enabled` is also set to `false`.
         * 
         * > **NOTE:** `quarantine_policy_enabled`, `retention_policy_in_days`, `trust_policy_enabled`, `export_policy_enabled` and `zone_redundancy_enabled` are only supported on resources with the `Premium` SKU.
         * 
         * @return builder
         * 
         */
        public Builder exportPolicyEnabled(@Nullable Output exportPolicyEnabled) {
            $.exportPolicyEnabled = exportPolicyEnabled;
            return this;
        }

        /**
         * @param exportPolicyEnabled Boolean value that indicates whether export policy is enabled. Defaults to `true`. In order to set it to `false`, make sure the `public_network_access_enabled` is also set to `false`.
         * 
         * > **NOTE:** `quarantine_policy_enabled`, `retention_policy_in_days`, `trust_policy_enabled`, `export_policy_enabled` and `zone_redundancy_enabled` are only supported on resources with the `Premium` SKU.
         * 
         * @return builder
         * 
         */
        public Builder exportPolicyEnabled(Boolean exportPolicyEnabled) {
            return exportPolicyEnabled(Output.of(exportPolicyEnabled));
        }

        /**
         * @param georeplications One or more `georeplications` blocks as documented below.
         * 
         * > **NOTE:** The `georeplications` is only supported on new resources with the `Premium` SKU.
         * 
         * > **NOTE:** The `georeplications` list cannot contain the location where the Container Registry exists.
         * 
         * > **NOTE:** If more than one `georeplications` block is specified, they are expected to follow the alphabetic order on the `location` property.
         * 
         * @return builder
         * 
         */
        public Builder georeplications(@Nullable Output> georeplications) {
            $.georeplications = georeplications;
            return this;
        }

        /**
         * @param georeplications One or more `georeplications` blocks as documented below.
         * 
         * > **NOTE:** The `georeplications` is only supported on new resources with the `Premium` SKU.
         * 
         * > **NOTE:** The `georeplications` list cannot contain the location where the Container Registry exists.
         * 
         * > **NOTE:** If more than one `georeplications` block is specified, they are expected to follow the alphabetic order on the `location` property.
         * 
         * @return builder
         * 
         */
        public Builder georeplications(List georeplications) {
            return georeplications(Output.of(georeplications));
        }

        /**
         * @param georeplications One or more `georeplications` blocks as documented below.
         * 
         * > **NOTE:** The `georeplications` is only supported on new resources with the `Premium` SKU.
         * 
         * > **NOTE:** The `georeplications` list cannot contain the location where the Container Registry exists.
         * 
         * > **NOTE:** If more than one `georeplications` block is specified, they are expected to follow the alphabetic order on the `location` property.
         * 
         * @return builder
         * 
         */
        public Builder georeplications(RegistryGeoreplicationArgs... georeplications) {
            return georeplications(List.of(georeplications));
        }

        /**
         * @param identity An `identity` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity An `identity` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder identity(RegistryIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param loginServer The URL that can be used to log into the container registry.
         * 
         * @return builder
         * 
         */
        public Builder loginServer(@Nullable Output loginServer) {
            $.loginServer = loginServer;
            return this;
        }

        /**
         * @param loginServer The URL that can be used to log into the container registry.
         * 
         * @return builder
         * 
         */
        public Builder loginServer(String loginServer) {
            return loginServer(Output.of(loginServer));
        }

        /**
         * @param name Specifies the name of the Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies the name of the Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param networkRuleBypassOption Whether to allow trusted Azure services to access a network restricted Container Registry? Possible values are `None` and `AzureServices`. Defaults to `AzureServices`.
         * 
         * @return builder
         * 
         */
        public Builder networkRuleBypassOption(@Nullable Output networkRuleBypassOption) {
            $.networkRuleBypassOption = networkRuleBypassOption;
            return this;
        }

        /**
         * @param networkRuleBypassOption Whether to allow trusted Azure services to access a network restricted Container Registry? Possible values are `None` and `AzureServices`. Defaults to `AzureServices`.
         * 
         * @return builder
         * 
         */
        public Builder networkRuleBypassOption(String networkRuleBypassOption) {
            return networkRuleBypassOption(Output.of(networkRuleBypassOption));
        }

        /**
         * @param networkRuleSet A `network_rule_set` block as documented below.
         * 
         * @return builder
         * 
         */
        public Builder networkRuleSet(@Nullable Output networkRuleSet) {
            $.networkRuleSet = networkRuleSet;
            return this;
        }

        /**
         * @param networkRuleSet A `network_rule_set` block as documented below.
         * 
         * @return builder
         * 
         */
        public Builder networkRuleSet(RegistryNetworkRuleSetArgs networkRuleSet) {
            return networkRuleSet(Output.of(networkRuleSet));
        }

        /**
         * @param publicNetworkAccessEnabled Whether public network access is allowed for the container registry. Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccessEnabled(@Nullable Output publicNetworkAccessEnabled) {
            $.publicNetworkAccessEnabled = publicNetworkAccessEnabled;
            return this;
        }

        /**
         * @param publicNetworkAccessEnabled Whether public network access is allowed for the container registry. Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccessEnabled(Boolean publicNetworkAccessEnabled) {
            return publicNetworkAccessEnabled(Output.of(publicNetworkAccessEnabled));
        }

        /**
         * @param quarantinePolicyEnabled Boolean value that indicates whether quarantine policy is enabled.
         * 
         * @return builder
         * 
         */
        public Builder quarantinePolicyEnabled(@Nullable Output quarantinePolicyEnabled) {
            $.quarantinePolicyEnabled = quarantinePolicyEnabled;
            return this;
        }

        /**
         * @param quarantinePolicyEnabled Boolean value that indicates whether quarantine policy is enabled.
         * 
         * @return builder
         * 
         */
        public Builder quarantinePolicyEnabled(Boolean quarantinePolicyEnabled) {
            return quarantinePolicyEnabled(Output.of(quarantinePolicyEnabled));
        }

        /**
         * @param resourceGroupName The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(@Nullable Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param retentionPolicyInDays The number of days to retain and untagged manifest after which it gets purged. Defaults to `7`.
         * 
         * @return builder
         * 
         */
        public Builder retentionPolicyInDays(@Nullable Output retentionPolicyInDays) {
            $.retentionPolicyInDays = retentionPolicyInDays;
            return this;
        }

        /**
         * @param retentionPolicyInDays The number of days to retain and untagged manifest after which it gets purged. Defaults to `7`.
         * 
         * @return builder
         * 
         */
        public Builder retentionPolicyInDays(Integer retentionPolicyInDays) {
            return retentionPolicyInDays(Output.of(retentionPolicyInDays));
        }

        /**
         * @param sku The SKU name of the container registry. Possible values are `Basic`, `Standard` and `Premium`.
         * 
         * @return builder
         * 
         */
        public Builder sku(@Nullable Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku The SKU name of the container registry. Possible values are `Basic`, `Standard` and `Premium`.
         * 
         * @return builder
         * 
         */
        public Builder sku(String sku) {
            return sku(Output.of(sku));
        }

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

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

        /**
         * @param trustPolicyEnabled Boolean value that indicated whether trust policy is enabled. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder trustPolicyEnabled(@Nullable Output trustPolicyEnabled) {
            $.trustPolicyEnabled = trustPolicyEnabled;
            return this;
        }

        /**
         * @param trustPolicyEnabled Boolean value that indicated whether trust policy is enabled. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder trustPolicyEnabled(Boolean trustPolicyEnabled) {
            return trustPolicyEnabled(Output.of(trustPolicyEnabled));
        }

        /**
         * @param zoneRedundancyEnabled Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder zoneRedundancyEnabled(@Nullable Output zoneRedundancyEnabled) {
            $.zoneRedundancyEnabled = zoneRedundancyEnabled;
            return this;
        }

        /**
         * @param zoneRedundancyEnabled Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder zoneRedundancyEnabled(Boolean zoneRedundancyEnabled) {
            return zoneRedundancyEnabled(Output.of(zoneRedundancyEnabled));
        }

        public RegistryState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy