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

com.pulumi.azurenative.containerservice.outputs.ManagedClusterAPIServerAccessProfileResponse 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.containerservice.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ManagedClusterAPIServerAccessProfileResponse {
    /**
     * @return IP ranges are specified in CIDR format, e.g. 137.117.106.88/29. This feature is not compatible with clusters that use Public IP Per Node, or clusters that are using a Basic Load Balancer. For more information see [API server authorized IP ranges](https://docs.microsoft.com/azure/aks/api-server-authorized-ip-ranges).
     * 
     */
    private @Nullable List authorizedIPRanges;
    /**
     * @return Whether to disable run command for the cluster or not.
     * 
     */
    private @Nullable Boolean disableRunCommand;
    /**
     * @return For more details, see [Creating a private AKS cluster](https://docs.microsoft.com/azure/aks/private-clusters).
     * 
     */
    private @Nullable Boolean enablePrivateCluster;
    /**
     * @return Whether to create additional public FQDN for private cluster or not.
     * 
     */
    private @Nullable Boolean enablePrivateClusterPublicFQDN;
    /**
     * @return The default is System. For more details see [configure private DNS zone](https://docs.microsoft.com/azure/aks/private-clusters#configure-private-dns-zone). Allowed values are 'system' and 'none'.
     * 
     */
    private @Nullable String privateDNSZone;

    private ManagedClusterAPIServerAccessProfileResponse() {}
    /**
     * @return IP ranges are specified in CIDR format, e.g. 137.117.106.88/29. This feature is not compatible with clusters that use Public IP Per Node, or clusters that are using a Basic Load Balancer. For more information see [API server authorized IP ranges](https://docs.microsoft.com/azure/aks/api-server-authorized-ip-ranges).
     * 
     */
    public List authorizedIPRanges() {
        return this.authorizedIPRanges == null ? List.of() : this.authorizedIPRanges;
    }
    /**
     * @return Whether to disable run command for the cluster or not.
     * 
     */
    public Optional disableRunCommand() {
        return Optional.ofNullable(this.disableRunCommand);
    }
    /**
     * @return For more details, see [Creating a private AKS cluster](https://docs.microsoft.com/azure/aks/private-clusters).
     * 
     */
    public Optional enablePrivateCluster() {
        return Optional.ofNullable(this.enablePrivateCluster);
    }
    /**
     * @return Whether to create additional public FQDN for private cluster or not.
     * 
     */
    public Optional enablePrivateClusterPublicFQDN() {
        return Optional.ofNullable(this.enablePrivateClusterPublicFQDN);
    }
    /**
     * @return The default is System. For more details see [configure private DNS zone](https://docs.microsoft.com/azure/aks/private-clusters#configure-private-dns-zone). Allowed values are 'system' and 'none'.
     * 
     */
    public Optional privateDNSZone() {
        return Optional.ofNullable(this.privateDNSZone);
    }

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

    public static Builder builder(ManagedClusterAPIServerAccessProfileResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List authorizedIPRanges;
        private @Nullable Boolean disableRunCommand;
        private @Nullable Boolean enablePrivateCluster;
        private @Nullable Boolean enablePrivateClusterPublicFQDN;
        private @Nullable String privateDNSZone;
        public Builder() {}
        public Builder(ManagedClusterAPIServerAccessProfileResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.authorizedIPRanges = defaults.authorizedIPRanges;
    	      this.disableRunCommand = defaults.disableRunCommand;
    	      this.enablePrivateCluster = defaults.enablePrivateCluster;
    	      this.enablePrivateClusterPublicFQDN = defaults.enablePrivateClusterPublicFQDN;
    	      this.privateDNSZone = defaults.privateDNSZone;
        }

        @CustomType.Setter
        public Builder authorizedIPRanges(@Nullable List authorizedIPRanges) {

            this.authorizedIPRanges = authorizedIPRanges;
            return this;
        }
        public Builder authorizedIPRanges(String... authorizedIPRanges) {
            return authorizedIPRanges(List.of(authorizedIPRanges));
        }
        @CustomType.Setter
        public Builder disableRunCommand(@Nullable Boolean disableRunCommand) {

            this.disableRunCommand = disableRunCommand;
            return this;
        }
        @CustomType.Setter
        public Builder enablePrivateCluster(@Nullable Boolean enablePrivateCluster) {

            this.enablePrivateCluster = enablePrivateCluster;
            return this;
        }
        @CustomType.Setter
        public Builder enablePrivateClusterPublicFQDN(@Nullable Boolean enablePrivateClusterPublicFQDN) {

            this.enablePrivateClusterPublicFQDN = enablePrivateClusterPublicFQDN;
            return this;
        }
        @CustomType.Setter
        public Builder privateDNSZone(@Nullable String privateDNSZone) {

            this.privateDNSZone = privateDNSZone;
            return this;
        }
        public ManagedClusterAPIServerAccessProfileResponse build() {
            final var _resultValue = new ManagedClusterAPIServerAccessProfileResponse();
            _resultValue.authorizedIPRanges = authorizedIPRanges;
            _resultValue.disableRunCommand = disableRunCommand;
            _resultValue.enablePrivateCluster = enablePrivateCluster;
            _resultValue.enablePrivateClusterPublicFQDN = enablePrivateClusterPublicFQDN;
            _resultValue.privateDNSZone = privateDNSZone;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy