Class WindowsProfile
java.lang.Object
com.azure.resourcemanager.hybridcontainerservice.models.WindowsProfileResponse
com.azure.resourcemanager.hybridcontainerservice.models.WindowsProfile
WindowsProfile - Profile for Windows VMs in the container service cluster.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the adminPassword property: AdminPassword - Specifies the password of the administrator account.void
validate()
Validates the instance.withAdminPassword
(String adminPassword) Set the adminPassword property: AdminPassword - Specifies the password of the administrator account.withAdminUsername
(String adminUsername) Set the adminUsername property: AdminUsername - Specifies the name of the administrator account.withEnableCsiProxy
(Boolean enableCsiProxy) Set the enableCsiProxy property: EnableCSIProxy - Whether to enable CSI proxy.withLicenseType
(LicenseType licenseType) Set the licenseType property: LicenseType - The licenseType to use for Windows VMs.Methods inherited from class com.azure.resourcemanager.hybridcontainerservice.models.WindowsProfileResponse
adminUsername, enableCsiProxy, licenseType
-
Constructor Details
-
WindowsProfile
public WindowsProfile()Creates an instance of WindowsProfile class.
-
-
Method Details
-
adminPassword
Get the adminPassword property: AdminPassword - 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: AdminPassword - 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 WindowsProfile object itself.
-
withAdminUsername
Set the adminUsername property: AdminUsername - 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.- Overrides:
withAdminUsername
in classWindowsProfileResponse
- Parameters:
adminUsername
- the adminUsername value to set.- Returns:
- the WindowsProfileResponse object itself.
-
withEnableCsiProxy
Set the enableCsiProxy property: EnableCSIProxy - Whether to enable CSI proxy.- Overrides:
withEnableCsiProxy
in classWindowsProfileResponse
- Parameters:
enableCsiProxy
- the enableCsiProxy value to set.- Returns:
- the WindowsProfileResponse object itself.
-
withLicenseType
Set the licenseType property: LicenseType - The licenseType to use for Windows VMs. Windows_Server is used to enable Azure Hybrid User Benefits for Windows VMs. Possible values include: 'None', 'Windows_Server'.- Overrides:
withLicenseType
in classWindowsProfileResponse
- Parameters:
licenseType
- the licenseType value to set.- Returns:
- the WindowsProfileResponse object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classWindowsProfileResponse
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-