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 Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedClusterWindowsProfile class. -
Method Summary
Modifier and TypeMethodDescriptionGet the adminPassword property: Specifies the password of the administrator account.Get the adminUsername property: Specifies the name of the administrator account.Get the enableCsiProxy property: Whether to enable CSI proxy.static ManagedClusterWindowsProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedClusterWindowsProfile from the JsonReader.Get the gmsaProfile property: The Windows gMSA Profile in the Managed Cluster.Get the licenseType property: The license type to use for Windows VMs.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAdminPassword(String adminPassword) Set the adminPassword property: Specifies the password of the administrator account.withAdminUsername(String adminUsername) Set the adminUsername property: Specifies the name of the administrator account.withEnableCsiProxy(Boolean enableCsiProxy) Set the enableCsiProxy property: Whether to enable CSI proxy.withGmsaProfile(WindowsGmsaProfile gmsaProfile) Set the gmsaProfile property: The Windows gMSA Profile in the Managed Cluster.withLicenseType(LicenseType licenseType) Set the licenseType property: The license type to use for Windows VMs.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
-
ManagedClusterWindowsProfile
public ManagedClusterWindowsProfile()Creates an instance of ManagedClusterWindowsProfile class.
-
-
Method Details
-
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
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
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
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
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
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
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
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
Get the gmsaProfile property: The Windows gMSA Profile in the Managed Cluster.- Returns:
- the gmsaProfile value.
-
withGmsaProfile
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
- Specified by:
toJsonin interfacecom.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.
-