Class ManagedClusterAadProfile
java.lang.Object
com.azure.resourcemanager.containerservice.models.ManagedClusterAadProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedClusterAadProfile>
public final class ManagedClusterAadProfile
extends Object
implements com.azure.json.JsonSerializable<ManagedClusterAadProfile>
AADProfile specifies attributes for Azure Active Directory integration.
For more details see [managed AAD on AKS](https://docs.microsoft.com/azure/aks/managed-aad).
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedClusterAadProfile class. -
Method Summary
Modifier and TypeMethodDescriptionGet the adminGroupObjectIDs property: The list of AAD group object IDs that will have admin role of the cluster.Get the clientAppId property: (DEPRECATED) The client AAD application ID.Get the enableAzureRbac property: Whether to enable Azure RBAC for Kubernetes authorization.static ManagedClusterAadProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedClusterAadProfile from the JsonReader.managed()Get the managed property: Whether to enable managed AAD.Get the serverAppId property: (DEPRECATED) The server AAD application ID.Get the serverAppSecret property: (DEPRECATED) The server AAD application secret.tenantId()Get the tenantId property: The AAD tenant ID to use for authentication.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAdminGroupObjectIDs(List<String> adminGroupObjectIDs) Set the adminGroupObjectIDs property: The list of AAD group object IDs that will have admin role of the cluster.withClientAppId(String clientAppId) Set the clientAppId property: (DEPRECATED) The client AAD application ID.withEnableAzureRbac(Boolean enableAzureRbac) Set the enableAzureRbac property: Whether to enable Azure RBAC for Kubernetes authorization.withManaged(Boolean managed) Set the managed property: Whether to enable managed AAD.withServerAppId(String serverAppId) Set the serverAppId property: (DEPRECATED) The server AAD application ID.withServerAppSecret(String serverAppSecret) Set the serverAppSecret property: (DEPRECATED) The server AAD application secret.withTenantId(String tenantId) Set the tenantId property: The AAD tenant ID to use for authentication.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
-
ManagedClusterAadProfile
public ManagedClusterAadProfile()Creates an instance of ManagedClusterAadProfile class.
-
-
Method Details
-
managed
Get the managed property: Whether to enable managed AAD.- Returns:
- the managed value.
-
withManaged
Set the managed property: Whether to enable managed AAD.- Parameters:
managed- the managed value to set.- Returns:
- the ManagedClusterAadProfile object itself.
-
enableAzureRbac
Get the enableAzureRbac property: Whether to enable Azure RBAC for Kubernetes authorization.- Returns:
- the enableAzureRbac value.
-
withEnableAzureRbac
Set the enableAzureRbac property: Whether to enable Azure RBAC for Kubernetes authorization.- Parameters:
enableAzureRbac- the enableAzureRbac value to set.- Returns:
- the ManagedClusterAadProfile object itself.
-
adminGroupObjectIDs
Get the adminGroupObjectIDs property: The list of AAD group object IDs that will have admin role of the cluster.- Returns:
- the adminGroupObjectIDs value.
-
withAdminGroupObjectIDs
Set the adminGroupObjectIDs property: The list of AAD group object IDs that will have admin role of the cluster.- Parameters:
adminGroupObjectIDs- the adminGroupObjectIDs value to set.- Returns:
- the ManagedClusterAadProfile object itself.
-
clientAppId
Get the clientAppId property: (DEPRECATED) The client AAD application ID. Learn more at https://aka.ms/aks/aad-legacy.- Returns:
- the clientAppId value.
-
withClientAppId
Set the clientAppId property: (DEPRECATED) The client AAD application ID. Learn more at https://aka.ms/aks/aad-legacy.- Parameters:
clientAppId- the clientAppId value to set.- Returns:
- the ManagedClusterAadProfile object itself.
-
serverAppId
Get the serverAppId property: (DEPRECATED) The server AAD application ID. Learn more at https://aka.ms/aks/aad-legacy.- Returns:
- the serverAppId value.
-
withServerAppId
Set the serverAppId property: (DEPRECATED) The server AAD application ID. Learn more at https://aka.ms/aks/aad-legacy.- Parameters:
serverAppId- the serverAppId value to set.- Returns:
- the ManagedClusterAadProfile object itself.
-
serverAppSecret
Get the serverAppSecret property: (DEPRECATED) The server AAD application secret. Learn more at https://aka.ms/aks/aad-legacy.- Returns:
- the serverAppSecret value.
-
withServerAppSecret
Set the serverAppSecret property: (DEPRECATED) The server AAD application secret. Learn more at https://aka.ms/aks/aad-legacy.- Parameters:
serverAppSecret- the serverAppSecret value to set.- Returns:
- the ManagedClusterAadProfile object itself.
-
tenantId
Get the tenantId property: The AAD tenant ID to use for authentication. If not specified, will use the tenant of the deployment subscription.- Returns:
- the tenantId value.
-
withTenantId
Set the tenantId property: The AAD tenant ID to use for authentication. If not specified, will use the tenant of the deployment subscription.- Parameters:
tenantId- the tenantId value to set.- Returns:
- the ManagedClusterAadProfile 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<ManagedClusterAadProfile>- Throws:
IOException
-
fromJson
public static ManagedClusterAadProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedClusterAadProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedClusterAadProfile 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 ManagedClusterAadProfile.
-