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 Details

    • OpenShiftManagedClusterAadIdentityProvider

      public OpenShiftManagedClusterAadIdentityProvider()
      Creates an instance of OpenShiftManagedClusterAadIdentityProvider class.
  • Method Details

    • kind

      public String kind()
      Get the kind property: The kind of the provider.
      Overrides:
      kind in class OpenShiftManagedClusterBaseIdentityProvider
      Returns:
      the kind value.
    • clientId

      public String clientId()
      Get the clientId property: The clientId password associated with the provider.
      Returns:
      the clientId value.
    • withClientId

      public OpenShiftManagedClusterAadIdentityProvider withClientId(String clientId)
      Set the clientId property: The clientId password associated with the provider.
      Parameters:
      clientId - the clientId value to set.
      Returns:
      the OpenShiftManagedClusterAadIdentityProvider object itself.
    • secret

      public String 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

      public String tenantId()
      Get the tenantId property: The tenantId associated with the provider.
      Returns:
      the tenantId value.
    • withTenantId

      public OpenShiftManagedClusterAadIdentityProvider withTenantId(String tenantId)
      Set the tenantId property: The tenantId associated with the provider.
      Parameters:
      tenantId - the tenantId value to set.
      Returns:
      the OpenShiftManagedClusterAadIdentityProvider object itself.
    • customerAdminGroupId

      public String 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:
      validate in class OpenShiftManagedClusterBaseIdentityProvider
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<OpenShiftManagedClusterBaseIdentityProvider>
      Overrides:
      toJson in class OpenShiftManagedClusterBaseIdentityProvider
      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.