Class OpenShiftManagedClusterAuthProfile

java.lang.Object
com.azure.resourcemanager.containerservice.models.OpenShiftManagedClusterAuthProfile
All Implemented Interfaces:
com.azure.json.JsonSerializable<OpenShiftManagedClusterAuthProfile>

public final class OpenShiftManagedClusterAuthProfile extends Object implements com.azure.json.JsonSerializable<OpenShiftManagedClusterAuthProfile>
Defines all possible authentication profiles for the OpenShift cluster.
  • Constructor Details

    • OpenShiftManagedClusterAuthProfile

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

    • identityProviders

      public List<OpenShiftManagedClusterIdentityProvider> identityProviders()
      Get the identityProviders property: Type of authentication profile to use.
      Returns:
      the identityProviders value.
    • withIdentityProviders

      public OpenShiftManagedClusterAuthProfile withIdentityProviders(List<OpenShiftManagedClusterIdentityProvider> identityProviders)
      Set the identityProviders property: Type of authentication profile to use.
      Parameters:
      identityProviders - the identityProviders value to set.
      Returns:
      the OpenShiftManagedClusterAuthProfile object itself.
    • validate

      public void validate()
      Validates the instance.
      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<OpenShiftManagedClusterAuthProfile>
      Throws:
      IOException
    • fromJson

      public static OpenShiftManagedClusterAuthProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of OpenShiftManagedClusterAuthProfile from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of OpenShiftManagedClusterAuthProfile 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 OpenShiftManagedClusterAuthProfile.