Class ManagedClusterApiServerAccessProfile
- java.lang.Object
-
- com.azure.resourcemanager.containerservice.models.ManagedClusterApiServerAccessProfile
-
public final class ManagedClusterApiServerAccessProfile extends Object
Access profile for managed cluster API server.
-
-
Constructor Summary
Constructors Constructor Description ManagedClusterApiServerAccessProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>authorizedIpRanges()Get the authorizedIpRanges property: The IP ranges authorized to access the Kubernetes API server.BooleandisableRunCommand()Get the disableRunCommand property: Whether to disable run command for the cluster or not.BooleanenablePrivateCluster()Get the enablePrivateCluster property: Whether to create the cluster as a private cluster or not.BooleanenablePrivateClusterPublicFqdn()Get the enablePrivateClusterPublicFqdn property: Whether to create additional public FQDN for private cluster or not.StringprivateDnsZone()Get the privateDnsZone property: The private DNS zone mode for the cluster.voidvalidate()Validates the instance.ManagedClusterApiServerAccessProfilewithAuthorizedIpRanges(List<String> authorizedIpRanges)Set the authorizedIpRanges property: The IP ranges authorized to access the Kubernetes API server.ManagedClusterApiServerAccessProfilewithDisableRunCommand(Boolean disableRunCommand)Set the disableRunCommand property: Whether to disable run command for the cluster or not.ManagedClusterApiServerAccessProfilewithEnablePrivateCluster(Boolean enablePrivateCluster)Set the enablePrivateCluster property: Whether to create the cluster as a private cluster or not.ManagedClusterApiServerAccessProfilewithEnablePrivateClusterPublicFqdn(Boolean enablePrivateClusterPublicFqdn)Set the enablePrivateClusterPublicFqdn property: Whether to create additional public FQDN for private cluster or not.ManagedClusterApiServerAccessProfilewithPrivateDnsZone(String privateDnsZone)Set the privateDnsZone property: The private DNS zone mode for the cluster.
-
-
-
Method Detail
-
authorizedIpRanges
public List<String> authorizedIpRanges()
Get the authorizedIpRanges property: The IP ranges authorized to access the Kubernetes API server. 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).- Returns:
- the authorizedIpRanges value.
-
withAuthorizedIpRanges
public ManagedClusterApiServerAccessProfile withAuthorizedIpRanges(List<String> authorizedIpRanges)
Set the authorizedIpRanges property: The IP ranges authorized to access the Kubernetes API server. 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).- Parameters:
authorizedIpRanges- the authorizedIpRanges value to set.- Returns:
- the ManagedClusterApiServerAccessProfile object itself.
-
enablePrivateCluster
public Boolean enablePrivateCluster()
Get the enablePrivateCluster property: Whether to create the cluster as a private cluster or not. For more details, see [Creating a private AKS cluster](https://docs.microsoft.com/azure/aks/private-clusters).- Returns:
- the enablePrivateCluster value.
-
withEnablePrivateCluster
public ManagedClusterApiServerAccessProfile withEnablePrivateCluster(Boolean enablePrivateCluster)
Set the enablePrivateCluster property: Whether to create the cluster as a private cluster or not. For more details, see [Creating a private AKS cluster](https://docs.microsoft.com/azure/aks/private-clusters).- Parameters:
enablePrivateCluster- the enablePrivateCluster value to set.- Returns:
- the ManagedClusterApiServerAccessProfile object itself.
-
privateDnsZone
public String privateDnsZone()
Get the privateDnsZone property: The private DNS zone mode for the cluster. 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'.- Returns:
- the privateDnsZone value.
-
withPrivateDnsZone
public ManagedClusterApiServerAccessProfile withPrivateDnsZone(String privateDnsZone)
Set the privateDnsZone property: The private DNS zone mode for the cluster. 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'.- Parameters:
privateDnsZone- the privateDnsZone value to set.- Returns:
- the ManagedClusterApiServerAccessProfile object itself.
-
enablePrivateClusterPublicFqdn
public Boolean enablePrivateClusterPublicFqdn()
Get the enablePrivateClusterPublicFqdn property: Whether to create additional public FQDN for private cluster or not.- Returns:
- the enablePrivateClusterPublicFqdn value.
-
withEnablePrivateClusterPublicFqdn
public ManagedClusterApiServerAccessProfile withEnablePrivateClusterPublicFqdn(Boolean enablePrivateClusterPublicFqdn)
Set the enablePrivateClusterPublicFqdn property: Whether to create additional public FQDN for private cluster or not.- Parameters:
enablePrivateClusterPublicFqdn- the enablePrivateClusterPublicFqdn value to set.- Returns:
- the ManagedClusterApiServerAccessProfile object itself.
-
disableRunCommand
public Boolean disableRunCommand()
Get the disableRunCommand property: Whether to disable run command for the cluster or not.- Returns:
- the disableRunCommand value.
-
withDisableRunCommand
public ManagedClusterApiServerAccessProfile withDisableRunCommand(Boolean disableRunCommand)
Set the disableRunCommand property: Whether to disable run command for the cluster or not.- Parameters:
disableRunCommand- the disableRunCommand value to set.- Returns:
- the ManagedClusterApiServerAccessProfile object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-