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

com.pulumi.azurenative.azurestackhci.ClusterArgs 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.azurestackhci;

import com.pulumi.azurenative.azurestackhci.enums.ManagedServiceIdentityType;
import com.pulumi.azurenative.azurestackhci.inputs.ClusterDesiredPropertiesArgs;
import com.pulumi.azurenative.azurestackhci.inputs.SoftwareAssurancePropertiesArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
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 ClusterArgs extends com.pulumi.resources.ResourceArgs {

    public static final ClusterArgs Empty = new ClusterArgs();

    /**
     * Object id of cluster AAD identity.
     * 
     */
    @Import(name="aadApplicationObjectId")
    private @Nullable Output aadApplicationObjectId;

    /**
     * @return Object id of cluster AAD identity.
     * 
     */
    public Optional> aadApplicationObjectId() {
        return Optional.ofNullable(this.aadApplicationObjectId);
    }

    /**
     * App id of cluster AAD identity.
     * 
     */
    @Import(name="aadClientId")
    private @Nullable Output aadClientId;

    /**
     * @return App id of cluster AAD identity.
     * 
     */
    public Optional> aadClientId() {
        return Optional.ofNullable(this.aadClientId);
    }

    /**
     * Id of cluster identity service principal.
     * 
     */
    @Import(name="aadServicePrincipalObjectId")
    private @Nullable Output aadServicePrincipalObjectId;

    /**
     * @return Id of cluster identity service principal.
     * 
     */
    public Optional> aadServicePrincipalObjectId() {
        return Optional.ofNullable(this.aadServicePrincipalObjectId);
    }

    /**
     * Tenant id of cluster AAD identity.
     * 
     */
    @Import(name="aadTenantId")
    private @Nullable Output aadTenantId;

    /**
     * @return Tenant id of cluster AAD identity.
     * 
     */
    public Optional> aadTenantId() {
        return Optional.ofNullable(this.aadTenantId);
    }

    /**
     * Endpoint configured for management from the Azure portal.
     * 
     */
    @Import(name="cloudManagementEndpoint")
    private @Nullable Output cloudManagementEndpoint;

    /**
     * @return Endpoint configured for management from the Azure portal.
     * 
     */
    public Optional> cloudManagementEndpoint() {
        return Optional.ofNullable(this.cloudManagementEndpoint);
    }

    /**
     * The name of the cluster.
     * 
     */
    @Import(name="clusterName")
    private @Nullable Output clusterName;

    /**
     * @return The name of the cluster.
     * 
     */
    public Optional> clusterName() {
        return Optional.ofNullable(this.clusterName);
    }

    /**
     * Desired properties of the cluster.
     * 
     */
    @Import(name="desiredProperties")
    private @Nullable Output desiredProperties;

    /**
     * @return Desired properties of the cluster.
     * 
     */
    public Optional> desiredProperties() {
        return Optional.ofNullable(this.desiredProperties);
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

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

    /**
     * Software Assurance properties of the cluster.
     * 
     */
    @Import(name="softwareAssuranceProperties")
    private @Nullable Output softwareAssuranceProperties;

    /**
     * @return Software Assurance properties of the cluster.
     * 
     */
    public Optional> softwareAssuranceProperties() {
        return Optional.ofNullable(this.softwareAssuranceProperties);
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
     * 
     */
    @Import(name="type", required=true)
    private Output> type;

    /**
     * @return Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
     * 
     */
    public Output> type() {
        return this.type;
    }

    /**
     * The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
     * 
     */
    @Import(name="userAssignedIdentities")
    private @Nullable Output> userAssignedIdentities;

    /**
     * @return The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
     * 
     */
    public Optional>> userAssignedIdentities() {
        return Optional.ofNullable(this.userAssignedIdentities);
    }

    private ClusterArgs() {}

    private ClusterArgs(ClusterArgs $) {
        this.aadApplicationObjectId = $.aadApplicationObjectId;
        this.aadClientId = $.aadClientId;
        this.aadServicePrincipalObjectId = $.aadServicePrincipalObjectId;
        this.aadTenantId = $.aadTenantId;
        this.cloudManagementEndpoint = $.cloudManagementEndpoint;
        this.clusterName = $.clusterName;
        this.desiredProperties = $.desiredProperties;
        this.location = $.location;
        this.resourceGroupName = $.resourceGroupName;
        this.softwareAssuranceProperties = $.softwareAssuranceProperties;
        this.tags = $.tags;
        this.type = $.type;
        this.userAssignedIdentities = $.userAssignedIdentities;
    }

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

    public static final class Builder {
        private ClusterArgs $;

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

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

        /**
         * @param aadApplicationObjectId Object id of cluster AAD identity.
         * 
         * @return builder
         * 
         */
        public Builder aadApplicationObjectId(@Nullable Output aadApplicationObjectId) {
            $.aadApplicationObjectId = aadApplicationObjectId;
            return this;
        }

        /**
         * @param aadApplicationObjectId Object id of cluster AAD identity.
         * 
         * @return builder
         * 
         */
        public Builder aadApplicationObjectId(String aadApplicationObjectId) {
            return aadApplicationObjectId(Output.of(aadApplicationObjectId));
        }

        /**
         * @param aadClientId App id of cluster AAD identity.
         * 
         * @return builder
         * 
         */
        public Builder aadClientId(@Nullable Output aadClientId) {
            $.aadClientId = aadClientId;
            return this;
        }

        /**
         * @param aadClientId App id of cluster AAD identity.
         * 
         * @return builder
         * 
         */
        public Builder aadClientId(String aadClientId) {
            return aadClientId(Output.of(aadClientId));
        }

        /**
         * @param aadServicePrincipalObjectId Id of cluster identity service principal.
         * 
         * @return builder
         * 
         */
        public Builder aadServicePrincipalObjectId(@Nullable Output aadServicePrincipalObjectId) {
            $.aadServicePrincipalObjectId = aadServicePrincipalObjectId;
            return this;
        }

        /**
         * @param aadServicePrincipalObjectId Id of cluster identity service principal.
         * 
         * @return builder
         * 
         */
        public Builder aadServicePrincipalObjectId(String aadServicePrincipalObjectId) {
            return aadServicePrincipalObjectId(Output.of(aadServicePrincipalObjectId));
        }

        /**
         * @param aadTenantId Tenant id of cluster AAD identity.
         * 
         * @return builder
         * 
         */
        public Builder aadTenantId(@Nullable Output aadTenantId) {
            $.aadTenantId = aadTenantId;
            return this;
        }

        /**
         * @param aadTenantId Tenant id of cluster AAD identity.
         * 
         * @return builder
         * 
         */
        public Builder aadTenantId(String aadTenantId) {
            return aadTenantId(Output.of(aadTenantId));
        }

        /**
         * @param cloudManagementEndpoint Endpoint configured for management from the Azure portal.
         * 
         * @return builder
         * 
         */
        public Builder cloudManagementEndpoint(@Nullable Output cloudManagementEndpoint) {
            $.cloudManagementEndpoint = cloudManagementEndpoint;
            return this;
        }

        /**
         * @param cloudManagementEndpoint Endpoint configured for management from the Azure portal.
         * 
         * @return builder
         * 
         */
        public Builder cloudManagementEndpoint(String cloudManagementEndpoint) {
            return cloudManagementEndpoint(Output.of(cloudManagementEndpoint));
        }

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

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

        /**
         * @param desiredProperties Desired properties of the cluster.
         * 
         * @return builder
         * 
         */
        public Builder desiredProperties(@Nullable Output desiredProperties) {
            $.desiredProperties = desiredProperties;
            return this;
        }

        /**
         * @param desiredProperties Desired properties of the cluster.
         * 
         * @return builder
         * 
         */
        public Builder desiredProperties(ClusterDesiredPropertiesArgs desiredProperties) {
            return desiredProperties(Output.of(desiredProperties));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @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 softwareAssuranceProperties Software Assurance properties of the cluster.
         * 
         * @return builder
         * 
         */
        public Builder softwareAssuranceProperties(@Nullable Output softwareAssuranceProperties) {
            $.softwareAssuranceProperties = softwareAssuranceProperties;
            return this;
        }

        /**
         * @param softwareAssuranceProperties Software Assurance properties of the cluster.
         * 
         * @return builder
         * 
         */
        public Builder softwareAssuranceProperties(SoftwareAssurancePropertiesArgs softwareAssuranceProperties) {
            return softwareAssuranceProperties(Output.of(softwareAssuranceProperties));
        }

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

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

        /**
         * @param type Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
         * 
         * @return builder
         * 
         */
        public Builder type(Output> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
         * 
         * @return builder
         * 
         */
        public Builder type(Either type) {
            return type(Output.of(type));
        }

        /**
         * @param type Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Either.ofLeft(type));
        }

        /**
         * @param type Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
         * 
         * @return builder
         * 
         */
        public Builder type(ManagedServiceIdentityType type) {
            return type(Either.ofRight(type));
        }

        /**
         * @param userAssignedIdentities The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
         * 
         * @return builder
         * 
         */
        public Builder userAssignedIdentities(@Nullable Output> userAssignedIdentities) {
            $.userAssignedIdentities = userAssignedIdentities;
            return this;
        }

        /**
         * @param userAssignedIdentities The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
         * 
         * @return builder
         * 
         */
        public Builder userAssignedIdentities(List userAssignedIdentities) {
            return userAssignedIdentities(Output.of(userAssignedIdentities));
        }

        /**
         * @param userAssignedIdentities The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
         * 
         * @return builder
         * 
         */
        public Builder userAssignedIdentities(String... userAssignedIdentities) {
            return userAssignedIdentities(List.of(userAssignedIdentities));
        }

        public ClusterArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ClusterArgs", "resourceGroupName");
            }
            if ($.type == null) {
                throw new MissingRequiredPropertyException("ClusterArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy