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 Details

    • WindowsGmsaProfile

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

    • enabled

      public Boolean 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

      public WindowsGmsaProfile withEnabled(Boolean enabled)
      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

      public String 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

      public WindowsGmsaProfile withDnsServer(String dnsServer)
      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

      public String 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

      public WindowsGmsaProfile withRootDomainName(String rootDomainName)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<WindowsGmsaProfile>
      Throws:
      IOException
    • fromJson

      public static WindowsGmsaProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.