Class OpenShiftManagedClusterAadIdentityProvider
java.lang.Object
com.azure.resourcemanager.containerservice.models.OpenShiftManagedClusterBaseIdentityProvider
com.azure.resourcemanager.containerservice.models.OpenShiftManagedClusterAadIdentityProvider
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OpenShiftManagedClusterBaseIdentityProvider>
public final class OpenShiftManagedClusterAadIdentityProvider
extends OpenShiftManagedClusterBaseIdentityProvider
Defines the Identity provider for MS AAD.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OpenShiftManagedClusterAadIdentityProvider class. -
Method Summary
Modifier and TypeMethodDescriptionclientId()Get the clientId property: The clientId password associated with the provider.Get the customerAdminGroupId property: The groupId to be granted cluster admin role.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OpenShiftManagedClusterAadIdentityProvider from the JsonReader.kind()Get the kind property: The kind of the provider.secret()Get the secret property: The secret password associated with the provider.tenantId()Get the tenantId property: The tenantId associated with the provider.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withClientId(String clientId) Set the clientId property: The clientId password associated with the provider.withCustomerAdminGroupId(String customerAdminGroupId) Set the customerAdminGroupId property: The groupId to be granted cluster admin role.withSecret(String secret) Set the secret property: The secret password associated with the provider.withTenantId(String tenantId) Set the tenantId property: The tenantId associated with the provider.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
-
OpenShiftManagedClusterAadIdentityProvider
public OpenShiftManagedClusterAadIdentityProvider()Creates an instance of OpenShiftManagedClusterAadIdentityProvider class.
-
-
Method Details
-
kind
Get the kind property: The kind of the provider.- Overrides:
kindin classOpenShiftManagedClusterBaseIdentityProvider- Returns:
- the kind value.
-
clientId
Get the clientId property: The clientId password associated with the provider.- Returns:
- the clientId value.
-
withClientId
Set the clientId property: The clientId password associated with the provider.- Parameters:
clientId- the clientId value to set.- Returns:
- the OpenShiftManagedClusterAadIdentityProvider object itself.
-
secret
Get the secret property: The secret password associated with the provider.- Returns:
- the secret value.
-
withSecret
Set the secret property: The secret password associated with the provider.- Parameters:
secret- the secret value to set.- Returns:
- the OpenShiftManagedClusterAadIdentityProvider object itself.
-
tenantId
Get the tenantId property: The tenantId associated with the provider.- Returns:
- the tenantId value.
-
withTenantId
Set the tenantId property: The tenantId associated with the provider.- Parameters:
tenantId- the tenantId value to set.- Returns:
- the OpenShiftManagedClusterAadIdentityProvider object itself.
-
customerAdminGroupId
Get the customerAdminGroupId property: The groupId to be granted cluster admin role.- Returns:
- the customerAdminGroupId value.
-
withCustomerAdminGroupId
public OpenShiftManagedClusterAadIdentityProvider withCustomerAdminGroupId(String customerAdminGroupId) Set the customerAdminGroupId property: The groupId to be granted cluster admin role.- Parameters:
customerAdminGroupId- the customerAdminGroupId value to set.- Returns:
- the OpenShiftManagedClusterAadIdentityProvider object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classOpenShiftManagedClusterBaseIdentityProvider- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<OpenShiftManagedClusterBaseIdentityProvider>- Overrides:
toJsonin classOpenShiftManagedClusterBaseIdentityProvider- Throws:
IOException
-
fromJson
public static OpenShiftManagedClusterAadIdentityProvider fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OpenShiftManagedClusterAadIdentityProvider from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OpenShiftManagedClusterAadIdentityProvider 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 OpenShiftManagedClusterAadIdentityProvider.
-