Class WindowsGmsaProfile
java.lang.Object
com.azure.resourcemanager.containerservice.models.WindowsGmsaProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WindowsGmsaProfile>
public final class WindowsGmsaProfile
extends Object
implements com.azure.json.JsonSerializable<WindowsGmsaProfile>
Windows gMSA Profile in the managed cluster.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the dnsServer property: Specifies the DNS server for Windows gMSA.enabled()Get the enabled property: Whether to enable Windows gMSA.static WindowsGmsaProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WindowsGmsaProfile from the JsonReader.Get the rootDomainName property: Specifies the root domain name for Windows gMSA.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDnsServer(String dnsServer) Set the dnsServer property: Specifies the DNS server for Windows gMSA.withEnabled(Boolean enabled) Set the enabled property: Whether to enable Windows gMSA.withRootDomainName(String rootDomainName) Set the rootDomainName property: Specifies the root domain name for Windows gMSA.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
-
WindowsGmsaProfile
public WindowsGmsaProfile()Creates an instance of WindowsGmsaProfile class.
-
-
Method Details
-
enabled
Get the enabled property: Whether to enable Windows gMSA. Specifies whether to enable Windows gMSA in the managed cluster.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: Whether to enable Windows gMSA. Specifies whether to enable Windows gMSA in the managed cluster.- Parameters:
enabled- the enabled value to set.- Returns:
- the WindowsGmsaProfile object itself.
-
dnsServer
Get the dnsServer property: Specifies the DNS server for Windows gMSA. <br><br> Set it to empty if you have configured the DNS server in the vnet which is used to create the managed cluster.- Returns:
- the dnsServer value.
-
withDnsServer
Set the dnsServer property: Specifies the DNS server for Windows gMSA. <br><br> Set it to empty if you have configured the DNS server in the vnet which is used to create the managed cluster.- Parameters:
dnsServer- the dnsServer value to set.- Returns:
- the WindowsGmsaProfile object itself.
-
rootDomainName
Get the rootDomainName property: Specifies the root domain name for Windows gMSA. <br><br> Set it to empty if you have configured the DNS server in the vnet which is used to create the managed cluster.- Returns:
- the rootDomainName value.
-
withRootDomainName
Set the rootDomainName property: Specifies the root domain name for Windows gMSA. <br><br> Set it to empty if you have configured the DNS server in the vnet which is used to create the managed cluster.- Parameters:
rootDomainName- the rootDomainName value to set.- Returns:
- the WindowsGmsaProfile 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<WindowsGmsaProfile>- Throws:
IOException
-
fromJson
Reads an instance of WindowsGmsaProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WindowsGmsaProfile 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 WindowsGmsaProfile.
-