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

com.pulumi.azurenative.kubernetesconfiguration.inputs.KubernetesConfigurationPrivateLinkScopePropertiesArgs Maven / Gradle / Ivy

// *** 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.inputs;

import com.pulumi.azurenative.kubernetesconfiguration.enums.PublicNetworkAccessType;
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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Properties that define a Azure Arc PrivateLinkScope resource.
 * 
 */
public final class KubernetesConfigurationPrivateLinkScopePropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final KubernetesConfigurationPrivateLinkScopePropertiesArgs Empty = new KubernetesConfigurationPrivateLinkScopePropertiesArgs();

    /**
     * Managed Cluster ARM ID for the private link scope  (Required)
     * 
     */
    @Import(name="clusterResourceId", required=true)
    private Output clusterResourceId;

    /**
     * @return Managed Cluster ARM ID for the private link scope  (Required)
     * 
     */
    public Output clusterResourceId() {
        return this.clusterResourceId;
    }

    /**
     * Indicates whether machines associated with the private link scope can also use public Azure Arc service endpoints.
     * 
     */
    @Import(name="publicNetworkAccess")
    private @Nullable Output> publicNetworkAccess;

    /**
     * @return Indicates whether machines associated with the private link scope can also use public Azure Arc service endpoints.
     * 
     */
    public Optional>> publicNetworkAccess() {
        return Optional.ofNullable(this.publicNetworkAccess);
    }

    private KubernetesConfigurationPrivateLinkScopePropertiesArgs() {}

    private KubernetesConfigurationPrivateLinkScopePropertiesArgs(KubernetesConfigurationPrivateLinkScopePropertiesArgs $) {
        this.clusterResourceId = $.clusterResourceId;
        this.publicNetworkAccess = $.publicNetworkAccess;
    }

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

    public static final class Builder {
        private KubernetesConfigurationPrivateLinkScopePropertiesArgs $;

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

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

        /**
         * @param clusterResourceId Managed Cluster ARM ID for the private link scope  (Required)
         * 
         * @return builder
         * 
         */
        public Builder clusterResourceId(Output clusterResourceId) {
            $.clusterResourceId = clusterResourceId;
            return this;
        }

        /**
         * @param clusterResourceId Managed Cluster ARM ID for the private link scope  (Required)
         * 
         * @return builder
         * 
         */
        public Builder clusterResourceId(String clusterResourceId) {
            return clusterResourceId(Output.of(clusterResourceId));
        }

        /**
         * @param publicNetworkAccess Indicates whether machines associated with the private link scope can also use public Azure Arc service endpoints.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(@Nullable Output> publicNetworkAccess) {
            $.publicNetworkAccess = publicNetworkAccess;
            return this;
        }

        /**
         * @param publicNetworkAccess Indicates whether machines associated with the private link scope can also use public Azure Arc service endpoints.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(Either publicNetworkAccess) {
            return publicNetworkAccess(Output.of(publicNetworkAccess));
        }

        /**
         * @param publicNetworkAccess Indicates whether machines associated with the private link scope can also use public Azure Arc service endpoints.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(String publicNetworkAccess) {
            return publicNetworkAccess(Either.ofLeft(publicNetworkAccess));
        }

        /**
         * @param publicNetworkAccess Indicates whether machines associated with the private link scope can also use public Azure Arc service endpoints.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(PublicNetworkAccessType publicNetworkAccess) {
            return publicNetworkAccess(Either.ofRight(publicNetworkAccess));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy