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

com.pulumi.azurenative.extendedlocation.CustomLocationArgs Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.extendedlocation;

import com.pulumi.azurenative.extendedlocation.enums.HostType;
import com.pulumi.azurenative.extendedlocation.inputs.CustomLocationPropertiesAuthenticationArgs;
import com.pulumi.azurenative.extendedlocation.inputs.IdentityArgs;
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 CustomLocationArgs extends com.pulumi.resources.ResourceArgs {

    public static final CustomLocationArgs Empty = new CustomLocationArgs();

    /**
     * This is optional input that contains the authentication that should be used to generate the namespace.
     * 
     */
    @Import(name="authentication")
    private @Nullable Output authentication;

    /**
     * @return This is optional input that contains the authentication that should be used to generate the namespace.
     * 
     */
    public Optional> authentication() {
        return Optional.ofNullable(this.authentication);
    }

    /**
     * Contains the reference to the add-on that contains charts to deploy CRDs and operators.
     * 
     */
    @Import(name="clusterExtensionIds")
    private @Nullable Output> clusterExtensionIds;

    /**
     * @return Contains the reference to the add-on that contains charts to deploy CRDs and operators.
     * 
     */
    public Optional>> clusterExtensionIds() {
        return Optional.ofNullable(this.clusterExtensionIds);
    }

    /**
     * Display name for the Custom Locations location.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return Display name for the Custom Locations location.
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * Connected Cluster or AKS Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions.
     * 
     */
    @Import(name="hostResourceId")
    private @Nullable Output hostResourceId;

    /**
     * @return Connected Cluster or AKS Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions.
     * 
     */
    public Optional> hostResourceId() {
        return Optional.ofNullable(this.hostResourceId);
    }

    /**
     * Type of host the Custom Locations is referencing (Kubernetes, etc...).
     * 
     */
    @Import(name="hostType")
    private @Nullable Output> hostType;

    /**
     * @return Type of host the Custom Locations is referencing (Kubernetes, etc...).
     * 
     */
    public Optional>> hostType() {
        return Optional.ofNullable(this.hostType);
    }

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

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

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

    /**
     * Kubernetes namespace that will be created on the specified cluster.
     * 
     */
    @Import(name="namespace")
    private @Nullable Output namespace;

    /**
     * @return Kubernetes namespace that will be created on the specified cluster.
     * 
     */
    public Optional> namespace() {
        return Optional.ofNullable(this.namespace);
    }

    /**
     * Provisioning State for the Custom Location.
     * 
     */
    @Import(name="provisioningState")
    private @Nullable Output provisioningState;

    /**
     * @return Provisioning State for the Custom Location.
     * 
     */
    public Optional> provisioningState() {
        return Optional.ofNullable(this.provisioningState);
    }

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

    /**
     * Custom Locations name.
     * 
     */
    @Import(name="resourceName")
    private @Nullable Output resourceName;

    /**
     * @return Custom Locations name.
     * 
     */
    public Optional> resourceName() {
        return Optional.ofNullable(this.resourceName);
    }

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

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

    private CustomLocationArgs() {}

    private CustomLocationArgs(CustomLocationArgs $) {
        this.authentication = $.authentication;
        this.clusterExtensionIds = $.clusterExtensionIds;
        this.displayName = $.displayName;
        this.hostResourceId = $.hostResourceId;
        this.hostType = $.hostType;
        this.identity = $.identity;
        this.location = $.location;
        this.namespace = $.namespace;
        this.provisioningState = $.provisioningState;
        this.resourceGroupName = $.resourceGroupName;
        this.resourceName = $.resourceName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private CustomLocationArgs $;

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

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

        /**
         * @param authentication This is optional input that contains the authentication that should be used to generate the namespace.
         * 
         * @return builder
         * 
         */
        public Builder authentication(@Nullable Output authentication) {
            $.authentication = authentication;
            return this;
        }

        /**
         * @param authentication This is optional input that contains the authentication that should be used to generate the namespace.
         * 
         * @return builder
         * 
         */
        public Builder authentication(CustomLocationPropertiesAuthenticationArgs authentication) {
            return authentication(Output.of(authentication));
        }

        /**
         * @param clusterExtensionIds Contains the reference to the add-on that contains charts to deploy CRDs and operators.
         * 
         * @return builder
         * 
         */
        public Builder clusterExtensionIds(@Nullable Output> clusterExtensionIds) {
            $.clusterExtensionIds = clusterExtensionIds;
            return this;
        }

        /**
         * @param clusterExtensionIds Contains the reference to the add-on that contains charts to deploy CRDs and operators.
         * 
         * @return builder
         * 
         */
        public Builder clusterExtensionIds(List clusterExtensionIds) {
            return clusterExtensionIds(Output.of(clusterExtensionIds));
        }

        /**
         * @param clusterExtensionIds Contains the reference to the add-on that contains charts to deploy CRDs and operators.
         * 
         * @return builder
         * 
         */
        public Builder clusterExtensionIds(String... clusterExtensionIds) {
            return clusterExtensionIds(List.of(clusterExtensionIds));
        }

        /**
         * @param displayName Display name for the Custom Locations location.
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName Display name for the Custom Locations location.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param hostResourceId Connected Cluster or AKS Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions.
         * 
         * @return builder
         * 
         */
        public Builder hostResourceId(@Nullable Output hostResourceId) {
            $.hostResourceId = hostResourceId;
            return this;
        }

        /**
         * @param hostResourceId Connected Cluster or AKS Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions.
         * 
         * @return builder
         * 
         */
        public Builder hostResourceId(String hostResourceId) {
            return hostResourceId(Output.of(hostResourceId));
        }

        /**
         * @param hostType Type of host the Custom Locations is referencing (Kubernetes, etc...).
         * 
         * @return builder
         * 
         */
        public Builder hostType(@Nullable Output> hostType) {
            $.hostType = hostType;
            return this;
        }

        /**
         * @param hostType Type of host the Custom Locations is referencing (Kubernetes, etc...).
         * 
         * @return builder
         * 
         */
        public Builder hostType(Either hostType) {
            return hostType(Output.of(hostType));
        }

        /**
         * @param hostType Type of host the Custom Locations is referencing (Kubernetes, etc...).
         * 
         * @return builder
         * 
         */
        public Builder hostType(String hostType) {
            return hostType(Either.ofLeft(hostType));
        }

        /**
         * @param hostType Type of host the Custom Locations is referencing (Kubernetes, etc...).
         * 
         * @return builder
         * 
         */
        public Builder hostType(HostType hostType) {
            return hostType(Either.ofRight(hostType));
        }

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

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

        /**
         * @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 namespace Kubernetes namespace that will be created on the specified cluster.
         * 
         * @return builder
         * 
         */
        public Builder namespace(@Nullable Output namespace) {
            $.namespace = namespace;
            return this;
        }

        /**
         * @param namespace Kubernetes namespace that will be created on the specified cluster.
         * 
         * @return builder
         * 
         */
        public Builder namespace(String namespace) {
            return namespace(Output.of(namespace));
        }

        /**
         * @param provisioningState Provisioning State for the Custom Location.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(@Nullable Output provisioningState) {
            $.provisioningState = provisioningState;
            return this;
        }

        /**
         * @param provisioningState Provisioning State for the Custom Location.
         * 
         * @return builder
         * 
         */
        public Builder provisioningState(String provisioningState) {
            return provisioningState(Output.of(provisioningState));
        }

        /**
         * @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 resourceName Custom Locations name.
         * 
         * @return builder
         * 
         */
        public Builder resourceName(@Nullable Output resourceName) {
            $.resourceName = resourceName;
            return this;
        }

        /**
         * @param resourceName Custom Locations name.
         * 
         * @return builder
         * 
         */
        public Builder resourceName(String resourceName) {
            return resourceName(Output.of(resourceName));
        }

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy