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

com.pulumi.azurenative.kubernetesconfiguration.ExtensionArgs 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.kubernetesconfiguration;

import com.pulumi.azurenative.kubernetesconfiguration.inputs.ExtensionAksAssignedIdentityArgs;
import com.pulumi.azurenative.kubernetesconfiguration.inputs.ExtensionStatusArgs;
import com.pulumi.azurenative.kubernetesconfiguration.inputs.IdentityArgs;
import com.pulumi.azurenative.kubernetesconfiguration.inputs.PlanArgs;
import com.pulumi.azurenative.kubernetesconfiguration.inputs.ScopeArgs;
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.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ExtensionArgs Empty = new ExtensionArgs();

    /**
     * Identity of the Extension resource in an AKS cluster
     * 
     */
    @Import(name="aksAssignedIdentity")
    private @Nullable Output aksAssignedIdentity;

    /**
     * @return Identity of the Extension resource in an AKS cluster
     * 
     */
    public Optional> aksAssignedIdentity() {
        return Optional.ofNullable(this.aksAssignedIdentity);
    }

    /**
     * Flag to note if this extension participates in auto upgrade of minor version, or not.
     * 
     */
    @Import(name="autoUpgradeMinorVersion")
    private @Nullable Output autoUpgradeMinorVersion;

    /**
     * @return Flag to note if this extension participates in auto upgrade of minor version, or not.
     * 
     */
    public Optional> autoUpgradeMinorVersion() {
        return Optional.ofNullable(this.autoUpgradeMinorVersion);
    }

    /**
     * The name of the kubernetes cluster.
     * 
     */
    @Import(name="clusterName", required=true)
    private Output clusterName;

    /**
     * @return The name of the kubernetes cluster.
     * 
     */
    public Output clusterName() {
        return this.clusterName;
    }

    /**
     * The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
     * 
     */
    @Import(name="clusterResourceName", required=true)
    private Output clusterResourceName;

    /**
     * @return The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
     * 
     */
    public Output clusterResourceName() {
        return this.clusterResourceName;
    }

    /**
     * The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
     * 
     */
    @Import(name="clusterRp", required=true)
    private Output clusterRp;

    /**
     * @return The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
     * 
     */
    public Output clusterRp() {
        return this.clusterRp;
    }

    /**
     * Configuration settings that are sensitive, as name-value pairs for configuring this extension.
     * 
     */
    @Import(name="configurationProtectedSettings")
    private @Nullable Output> configurationProtectedSettings;

    /**
     * @return Configuration settings that are sensitive, as name-value pairs for configuring this extension.
     * 
     */
    public Optional>> configurationProtectedSettings() {
        return Optional.ofNullable(this.configurationProtectedSettings);
    }

    /**
     * Configuration settings, as name-value pairs for configuring this extension.
     * 
     */
    @Import(name="configurationSettings")
    private @Nullable Output> configurationSettings;

    /**
     * @return Configuration settings, as name-value pairs for configuring this extension.
     * 
     */
    public Optional>> configurationSettings() {
        return Optional.ofNullable(this.configurationSettings);
    }

    /**
     * Name of the Extension.
     * 
     */
    @Import(name="extensionName")
    private @Nullable Output extensionName;

    /**
     * @return Name of the Extension.
     * 
     */
    public Optional> extensionName() {
        return Optional.ofNullable(this.extensionName);
    }

    /**
     * Type of the Extension, of which this resource is an instance of.  It must be one of the Extension Types registered with Microsoft.KubernetesConfiguration by the Extension publisher.
     * 
     */
    @Import(name="extensionType")
    private @Nullable Output extensionType;

    /**
     * @return Type of the Extension, of which this resource is an instance of.  It must be one of the Extension Types registered with Microsoft.KubernetesConfiguration by the Extension publisher.
     * 
     */
    public Optional> extensionType() {
        return Optional.ofNullable(this.extensionType);
    }

    /**
     * Identity of the Extension resource
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return Identity of the Extension resource
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * The plan information.
     * 
     */
    @Import(name="plan")
    private @Nullable Output plan;

    /**
     * @return The plan information.
     * 
     */
    public Optional> plan() {
        return Optional.ofNullable(this.plan);
    }

    /**
     * ReleaseTrain this extension participates in for auto-upgrade (e.g. Stable, Preview, etc.) - only if autoUpgradeMinorVersion is 'true'.
     * 
     */
    @Import(name="releaseTrain")
    private @Nullable Output releaseTrain;

    /**
     * @return ReleaseTrain this extension participates in for auto-upgrade (e.g. Stable, Preview, etc.) - only if autoUpgradeMinorVersion is 'true'.
     * 
     */
    public Optional> releaseTrain() {
        return Optional.ofNullable(this.releaseTrain);
    }

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

    /**
     * Scope at which the extension is installed.
     * 
     */
    @Import(name="scope")
    private @Nullable Output scope;

    /**
     * @return Scope at which the extension is installed.
     * 
     */
    public Optional> scope() {
        return Optional.ofNullable(this.scope);
    }

    /**
     * Status from this extension.
     * 
     */
    @Import(name="statuses")
    private @Nullable Output> statuses;

    /**
     * @return Status from this extension.
     * 
     */
    public Optional>> statuses() {
        return Optional.ofNullable(this.statuses);
    }

    /**
     * User-specified version of the extension for this extension to 'pin'. To use 'version', autoUpgradeMinorVersion must be 'false'.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return User-specified version of the extension for this extension to 'pin'. To use 'version', autoUpgradeMinorVersion must be 'false'.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private ExtensionArgs() {}

    private ExtensionArgs(ExtensionArgs $) {
        this.aksAssignedIdentity = $.aksAssignedIdentity;
        this.autoUpgradeMinorVersion = $.autoUpgradeMinorVersion;
        this.clusterName = $.clusterName;
        this.clusterResourceName = $.clusterResourceName;
        this.clusterRp = $.clusterRp;
        this.configurationProtectedSettings = $.configurationProtectedSettings;
        this.configurationSettings = $.configurationSettings;
        this.extensionName = $.extensionName;
        this.extensionType = $.extensionType;
        this.identity = $.identity;
        this.plan = $.plan;
        this.releaseTrain = $.releaseTrain;
        this.resourceGroupName = $.resourceGroupName;
        this.scope = $.scope;
        this.statuses = $.statuses;
        this.version = $.version;
    }

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

    public static final class Builder {
        private ExtensionArgs $;

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

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

        /**
         * @param aksAssignedIdentity Identity of the Extension resource in an AKS cluster
         * 
         * @return builder
         * 
         */
        public Builder aksAssignedIdentity(@Nullable Output aksAssignedIdentity) {
            $.aksAssignedIdentity = aksAssignedIdentity;
            return this;
        }

        /**
         * @param aksAssignedIdentity Identity of the Extension resource in an AKS cluster
         * 
         * @return builder
         * 
         */
        public Builder aksAssignedIdentity(ExtensionAksAssignedIdentityArgs aksAssignedIdentity) {
            return aksAssignedIdentity(Output.of(aksAssignedIdentity));
        }

        /**
         * @param autoUpgradeMinorVersion Flag to note if this extension participates in auto upgrade of minor version, or not.
         * 
         * @return builder
         * 
         */
        public Builder autoUpgradeMinorVersion(@Nullable Output autoUpgradeMinorVersion) {
            $.autoUpgradeMinorVersion = autoUpgradeMinorVersion;
            return this;
        }

        /**
         * @param autoUpgradeMinorVersion Flag to note if this extension participates in auto upgrade of minor version, or not.
         * 
         * @return builder
         * 
         */
        public Builder autoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion) {
            return autoUpgradeMinorVersion(Output.of(autoUpgradeMinorVersion));
        }

        /**
         * @param clusterName The name of the kubernetes cluster.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(Output clusterName) {
            $.clusterName = clusterName;
            return this;
        }

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

        /**
         * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
         * 
         * @return builder
         * 
         */
        public Builder clusterResourceName(Output clusterResourceName) {
            $.clusterResourceName = clusterResourceName;
            return this;
        }

        /**
         * @param clusterResourceName The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
         * 
         * @return builder
         * 
         */
        public Builder clusterResourceName(String clusterResourceName) {
            return clusterResourceName(Output.of(clusterResourceName));
        }

        /**
         * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
         * 
         * @return builder
         * 
         */
        public Builder clusterRp(Output clusterRp) {
            $.clusterRp = clusterRp;
            return this;
        }

        /**
         * @param clusterRp The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
         * 
         * @return builder
         * 
         */
        public Builder clusterRp(String clusterRp) {
            return clusterRp(Output.of(clusterRp));
        }

        /**
         * @param configurationProtectedSettings Configuration settings that are sensitive, as name-value pairs for configuring this extension.
         * 
         * @return builder
         * 
         */
        public Builder configurationProtectedSettings(@Nullable Output> configurationProtectedSettings) {
            $.configurationProtectedSettings = configurationProtectedSettings;
            return this;
        }

        /**
         * @param configurationProtectedSettings Configuration settings that are sensitive, as name-value pairs for configuring this extension.
         * 
         * @return builder
         * 
         */
        public Builder configurationProtectedSettings(Map configurationProtectedSettings) {
            return configurationProtectedSettings(Output.of(configurationProtectedSettings));
        }

        /**
         * @param configurationSettings Configuration settings, as name-value pairs for configuring this extension.
         * 
         * @return builder
         * 
         */
        public Builder configurationSettings(@Nullable Output> configurationSettings) {
            $.configurationSettings = configurationSettings;
            return this;
        }

        /**
         * @param configurationSettings Configuration settings, as name-value pairs for configuring this extension.
         * 
         * @return builder
         * 
         */
        public Builder configurationSettings(Map configurationSettings) {
            return configurationSettings(Output.of(configurationSettings));
        }

        /**
         * @param extensionName Name of the Extension.
         * 
         * @return builder
         * 
         */
        public Builder extensionName(@Nullable Output extensionName) {
            $.extensionName = extensionName;
            return this;
        }

        /**
         * @param extensionName Name of the Extension.
         * 
         * @return builder
         * 
         */
        public Builder extensionName(String extensionName) {
            return extensionName(Output.of(extensionName));
        }

        /**
         * @param extensionType Type of the Extension, of which this resource is an instance of.  It must be one of the Extension Types registered with Microsoft.KubernetesConfiguration by the Extension publisher.
         * 
         * @return builder
         * 
         */
        public Builder extensionType(@Nullable Output extensionType) {
            $.extensionType = extensionType;
            return this;
        }

        /**
         * @param extensionType Type of the Extension, of which this resource is an instance of.  It must be one of the Extension Types registered with Microsoft.KubernetesConfiguration by the Extension publisher.
         * 
         * @return builder
         * 
         */
        public Builder extensionType(String extensionType) {
            return extensionType(Output.of(extensionType));
        }

        /**
         * @param identity Identity of the Extension resource
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity Identity of the Extension resource
         * 
         * @return builder
         * 
         */
        public Builder identity(IdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param plan The plan information.
         * 
         * @return builder
         * 
         */
        public Builder plan(@Nullable Output plan) {
            $.plan = plan;
            return this;
        }

        /**
         * @param plan The plan information.
         * 
         * @return builder
         * 
         */
        public Builder plan(PlanArgs plan) {
            return plan(Output.of(plan));
        }

        /**
         * @param releaseTrain ReleaseTrain this extension participates in for auto-upgrade (e.g. Stable, Preview, etc.) - only if autoUpgradeMinorVersion is 'true'.
         * 
         * @return builder
         * 
         */
        public Builder releaseTrain(@Nullable Output releaseTrain) {
            $.releaseTrain = releaseTrain;
            return this;
        }

        /**
         * @param releaseTrain ReleaseTrain this extension participates in for auto-upgrade (e.g. Stable, Preview, etc.) - only if autoUpgradeMinorVersion is 'true'.
         * 
         * @return builder
         * 
         */
        public Builder releaseTrain(String releaseTrain) {
            return releaseTrain(Output.of(releaseTrain));
        }

        /**
         * @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 scope Scope at which the extension is installed.
         * 
         * @return builder
         * 
         */
        public Builder scope(@Nullable Output scope) {
            $.scope = scope;
            return this;
        }

        /**
         * @param scope Scope at which the extension is installed.
         * 
         * @return builder
         * 
         */
        public Builder scope(ScopeArgs scope) {
            return scope(Output.of(scope));
        }

        /**
         * @param statuses Status from this extension.
         * 
         * @return builder
         * 
         */
        public Builder statuses(@Nullable Output> statuses) {
            $.statuses = statuses;
            return this;
        }

        /**
         * @param statuses Status from this extension.
         * 
         * @return builder
         * 
         */
        public Builder statuses(List statuses) {
            return statuses(Output.of(statuses));
        }

        /**
         * @param statuses Status from this extension.
         * 
         * @return builder
         * 
         */
        public Builder statuses(ExtensionStatusArgs... statuses) {
            return statuses(List.of(statuses));
        }

        /**
         * @param version User-specified version of the extension for this extension to 'pin'. To use 'version', autoUpgradeMinorVersion must be 'false'.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version User-specified version of the extension for this extension to 'pin'. To use 'version', autoUpgradeMinorVersion must be 'false'.
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        public ExtensionArgs build() {
            $.autoUpgradeMinorVersion = Codegen.booleanProp("autoUpgradeMinorVersion").output().arg($.autoUpgradeMinorVersion).def(true).getNullable();
            if ($.clusterName == null) {
                throw new MissingRequiredPropertyException("ExtensionArgs", "clusterName");
            }
            if ($.clusterResourceName == null) {
                throw new MissingRequiredPropertyException("ExtensionArgs", "clusterResourceName");
            }
            if ($.clusterRp == null) {
                throw new MissingRequiredPropertyException("ExtensionArgs", "clusterRp");
            }
            $.releaseTrain = Codegen.stringProp("releaseTrain").output().arg($.releaseTrain).def("Stable").getNullable();
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ExtensionArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy