Class AgentPoolSecurityProfile

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

public final class AgentPoolSecurityProfile extends Object implements com.azure.json.JsonSerializable<AgentPoolSecurityProfile>
The security settings of an agent pool.
  • Constructor Details

    • AgentPoolSecurityProfile

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

    • enableVtpm

      public Boolean enableVtpm()
      Get the enableVtpm property: vTPM is a Trusted Launch feature for configuring a dedicated secure vault for keys and measurements held locally on the node. For more details, see aka.ms/aks/trustedlaunch. If not specified, the default is false.
      Returns:
      the enableVtpm value.
    • withEnableVtpm

      public AgentPoolSecurityProfile withEnableVtpm(Boolean enableVtpm)
      Set the enableVtpm property: vTPM is a Trusted Launch feature for configuring a dedicated secure vault for keys and measurements held locally on the node. For more details, see aka.ms/aks/trustedlaunch. If not specified, the default is false.
      Parameters:
      enableVtpm - the enableVtpm value to set.
      Returns:
      the AgentPoolSecurityProfile object itself.
    • enableSecureBoot

      public Boolean enableSecureBoot()
      Get the enableSecureBoot property: Secure Boot is a feature of Trusted Launch which ensures that only signed operating systems and drivers can boot. For more details, see aka.ms/aks/trustedlaunch. If not specified, the default is false.
      Returns:
      the enableSecureBoot value.
    • withEnableSecureBoot

      public AgentPoolSecurityProfile withEnableSecureBoot(Boolean enableSecureBoot)
      Set the enableSecureBoot property: Secure Boot is a feature of Trusted Launch which ensures that only signed operating systems and drivers can boot. For more details, see aka.ms/aks/trustedlaunch. If not specified, the default is false.
      Parameters:
      enableSecureBoot - the enableSecureBoot value to set.
      Returns:
      the AgentPoolSecurityProfile object itself.
    • sshAccess

      public AgentPoolSshAccess sshAccess()
      Get the sshAccess property: SSH access method of an agent pool.
      Returns:
      the sshAccess value.
    • withSshAccess

      public AgentPoolSecurityProfile withSshAccess(AgentPoolSshAccess sshAccess)
      Set the sshAccess property: SSH access method of an agent pool.
      Parameters:
      sshAccess - the sshAccess value to set.
      Returns:
      the AgentPoolSecurityProfile 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<AgentPoolSecurityProfile>
      Throws:
      IOException
    • fromJson

      public static AgentPoolSecurityProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AgentPoolSecurityProfile from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AgentPoolSecurityProfile 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 AgentPoolSecurityProfile.