Class ManagedClusterWindowsProfile

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

public final class ManagedClusterWindowsProfile extends Object implements com.azure.json.JsonSerializable<ManagedClusterWindowsProfile>
Profile for Windows VMs in the managed cluster.
  • Constructor Details

    • ManagedClusterWindowsProfile

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

    • adminUsername

      public String adminUsername()
      Get the adminUsername property: Specifies the name of the administrator account. <br><br> **Restriction:** Cannot end in "." <br><br> **Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5". <br><br> **Minimum-length:** 1 character <br><br> **Max-length:** 20 characters.
      Returns:
      the adminUsername value.
    • withAdminUsername

      public ManagedClusterWindowsProfile withAdminUsername(String adminUsername)
      Set the adminUsername property: Specifies the name of the administrator account. <br><br> **Restriction:** Cannot end in "." <br><br> **Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5". <br><br> **Minimum-length:** 1 character <br><br> **Max-length:** 20 characters.
      Parameters:
      adminUsername - the adminUsername value to set.
      Returns:
      the ManagedClusterWindowsProfile object itself.
    • adminPassword

      public String adminPassword()
      Get the adminPassword property: Specifies the password of the administrator account. <br><br> **Minimum-length:** 8 characters <br><br> **Max-length:** 123 characters <br><br> **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_]) <br><br> **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!".
      Returns:
      the adminPassword value.
    • withAdminPassword

      public ManagedClusterWindowsProfile withAdminPassword(String adminPassword)
      Set the adminPassword property: Specifies the password of the administrator account. <br><br> **Minimum-length:** 8 characters <br><br> **Max-length:** 123 characters <br><br> **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_]) <br><br> **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!".
      Parameters:
      adminPassword - the adminPassword value to set.
      Returns:
      the ManagedClusterWindowsProfile object itself.
    • licenseType

      public LicenseType licenseType()
      Get the licenseType property: The license type to use for Windows VMs. See [Azure Hybrid User Benefits](https://azure.microsoft.com/pricing/hybrid-benefit/faq/) for more details.
      Returns:
      the licenseType value.
    • withLicenseType

      public ManagedClusterWindowsProfile withLicenseType(LicenseType licenseType)
      Set the licenseType property: The license type to use for Windows VMs. See [Azure Hybrid User Benefits](https://azure.microsoft.com/pricing/hybrid-benefit/faq/) for more details.
      Parameters:
      licenseType - the licenseType value to set.
      Returns:
      the ManagedClusterWindowsProfile object itself.
    • enableCsiProxy

      public Boolean enableCsiProxy()
      Get the enableCsiProxy property: Whether to enable CSI proxy. For more details on CSI proxy, see the [CSI proxy GitHub repo](https://github.com/kubernetes-csi/csi-proxy).
      Returns:
      the enableCsiProxy value.
    • withEnableCsiProxy

      public ManagedClusterWindowsProfile withEnableCsiProxy(Boolean enableCsiProxy)
      Set the enableCsiProxy property: Whether to enable CSI proxy. For more details on CSI proxy, see the [CSI proxy GitHub repo](https://github.com/kubernetes-csi/csi-proxy).
      Parameters:
      enableCsiProxy - the enableCsiProxy value to set.
      Returns:
      the ManagedClusterWindowsProfile object itself.
    • gmsaProfile

      public WindowsGmsaProfile gmsaProfile()
      Get the gmsaProfile property: The Windows gMSA Profile in the Managed Cluster.
      Returns:
      the gmsaProfile value.
    • withGmsaProfile

      public ManagedClusterWindowsProfile withGmsaProfile(WindowsGmsaProfile gmsaProfile)
      Set the gmsaProfile property: The Windows gMSA Profile in the Managed Cluster.
      Parameters:
      gmsaProfile - the gmsaProfile value to set.
      Returns:
      the ManagedClusterWindowsProfile 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<ManagedClusterWindowsProfile>
      Throws:
      IOException
    • fromJson

      public static ManagedClusterWindowsProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ManagedClusterWindowsProfile from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ManagedClusterWindowsProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ManagedClusterWindowsProfile.