Class ManagedClusterApiServerAccessProfile
java.lang.Object
com.azure.resourcemanager.containerservice.models.ManagedClusterApiServerAccessProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedClusterApiServerAccessProfile>
public final class ManagedClusterApiServerAccessProfile
extends Object
implements com.azure.json.JsonSerializable<ManagedClusterApiServerAccessProfile>
Access profile for managed cluster API server.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedClusterApiServerAccessProfile class. -
Method Summary
Modifier and TypeMethodDescriptionGet the authorizedIpRanges property: IP ranges are specified in CIDR format, e.g. 137.117.106.88/29.Get the disableRunCommand property: Whether to disable run command for the cluster or not.Get the enablePrivateCluster property: For more details, see [Creating a private AKS cluster](https://docs.microsoft.com/azure/aks/private-clusters).Get the enablePrivateClusterPublicFqdn property: Whether to create additional public FQDN for private cluster or not.Get the enableVnetIntegration property: Whether to enable apiserver vnet integration for the cluster or not.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedClusterApiServerAccessProfile from the JsonReader.Get the privateDnsZone property: The default is System.subnetId()Get the subnetId property: It is required when creating a new cluster with BYO Vnet, or when updating an existing cluster to enable apiserver vnet integration.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAuthorizedIpRanges(List<String> authorizedIpRanges) Set the authorizedIpRanges property: IP ranges are specified in CIDR format, e.g. 137.117.106.88/29.withDisableRunCommand(Boolean disableRunCommand) Set the disableRunCommand property: Whether to disable run command for the cluster or not.withEnablePrivateCluster(Boolean enablePrivateCluster) Set the enablePrivateCluster property: For more details, see [Creating a private AKS cluster](https://docs.microsoft.com/azure/aks/private-clusters).withEnablePrivateClusterPublicFqdn(Boolean enablePrivateClusterPublicFqdn) Set the enablePrivateClusterPublicFqdn property: Whether to create additional public FQDN for private cluster or not.withEnableVnetIntegration(Boolean enableVnetIntegration) Set the enableVnetIntegration property: Whether to enable apiserver vnet integration for the cluster or not.withPrivateDnsZone(String privateDnsZone) Set the privateDnsZone property: The default is System.withSubnetId(String subnetId) Set the subnetId property: It is required when creating a new cluster with BYO Vnet, or when updating an existing cluster to enable apiserver vnet integration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ManagedClusterApiServerAccessProfile
public ManagedClusterApiServerAccessProfile()Creates an instance of ManagedClusterApiServerAccessProfile class.
-
-
Method Details
-
authorizedIpRanges
Get the authorizedIpRanges property: 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
Set the authorizedIpRanges property: 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
Get the enablePrivateCluster property: For more details, see [Creating a private AKS cluster](https://docs.microsoft.com/azure/aks/private-clusters).- Returns:
- the enablePrivateCluster value.
-
withEnablePrivateCluster
Set the enablePrivateCluster property: 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
Get the privateDnsZone property: 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
Set the privateDnsZone property: 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
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
Get the disableRunCommand property: Whether to disable run command for the cluster or not.- Returns:
- the disableRunCommand value.
-
withDisableRunCommand
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.
-
enableVnetIntegration
Get the enableVnetIntegration property: Whether to enable apiserver vnet integration for the cluster or not. See aka.ms/AksVnetIntegration for more details.- Returns:
- the enableVnetIntegration value.
-
withEnableVnetIntegration
public ManagedClusterApiServerAccessProfile withEnableVnetIntegration(Boolean enableVnetIntegration) Set the enableVnetIntegration property: Whether to enable apiserver vnet integration for the cluster or not. See aka.ms/AksVnetIntegration for more details.- Parameters:
enableVnetIntegration- the enableVnetIntegration value to set.- Returns:
- the ManagedClusterApiServerAccessProfile object itself.
-
subnetId
Get the subnetId property: It is required when creating a new cluster with BYO Vnet, or when updating an existing cluster to enable apiserver vnet integration.- Returns:
- the subnetId value.
-
withSubnetId
Set the subnetId property: It is required when creating a new cluster with BYO Vnet, or when updating an existing cluster to enable apiserver vnet integration.- Parameters:
subnetId- the subnetId value to set.- Returns:
- the ManagedClusterApiServerAccessProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ManagedClusterApiServerAccessProfile>- Throws:
IOException
-
fromJson
public static ManagedClusterApiServerAccessProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedClusterApiServerAccessProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedClusterApiServerAccessProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ManagedClusterApiServerAccessProfile.
-