Class ProxyAgentSettings

java.lang.Object
com.azure.resourcemanager.compute.models.ProxyAgentSettings

public final class ProxyAgentSettings extends Object
Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: 2023-09-01.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of ProxyAgentSettings class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the enabled property: Specifies whether ProxyAgent feature should be enabled on the virtual machine or virtual machine scale set.
    Get the keyIncarnationId property: Increase the value of this property allows user to reset the key used for securing communication channel between guest and host.
    Get the mode property: Specifies the mode that ProxyAgent will execute on if the feature is enabled.
    void
    Validates the instance.
    Set the enabled property: Specifies whether ProxyAgent feature should be enabled on the virtual machine or virtual machine scale set.
    withKeyIncarnationId(Integer keyIncarnationId)
    Set the keyIncarnationId property: Increase the value of this property allows user to reset the key used for securing communication channel between guest and host.
    withMode(Mode mode)
    Set the mode property: Specifies the mode that ProxyAgent will execute on if the feature is enabled.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ProxyAgentSettings

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

    • enabled

      public Boolean enabled()
      Get the enabled property: Specifies whether ProxyAgent feature should be enabled on the virtual machine or virtual machine scale set.
      Returns:
      the enabled value.
    • withEnabled

      public ProxyAgentSettings withEnabled(Boolean enabled)
      Set the enabled property: Specifies whether ProxyAgent feature should be enabled on the virtual machine or virtual machine scale set.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the ProxyAgentSettings object itself.
    • mode

      public Mode mode()
      Get the mode property: Specifies the mode that ProxyAgent will execute on if the feature is enabled. ProxyAgent will start to audit or monitor but not enforce access control over requests to host endpoints in Audit mode, while in Enforce mode it will enforce access control. The default value is Enforce mode.
      Returns:
      the mode value.
    • withMode

      public ProxyAgentSettings withMode(Mode mode)
      Set the mode property: Specifies the mode that ProxyAgent will execute on if the feature is enabled. ProxyAgent will start to audit or monitor but not enforce access control over requests to host endpoints in Audit mode, while in Enforce mode it will enforce access control. The default value is Enforce mode.
      Parameters:
      mode - the mode value to set.
      Returns:
      the ProxyAgentSettings object itself.
    • keyIncarnationId

      public Integer keyIncarnationId()
      Get the keyIncarnationId property: Increase the value of this property allows user to reset the key used for securing communication channel between guest and host.
      Returns:
      the keyIncarnationId value.
    • withKeyIncarnationId

      public ProxyAgentSettings withKeyIncarnationId(Integer keyIncarnationId)
      Set the keyIncarnationId property: Increase the value of this property allows user to reset the key used for securing communication channel between guest and host.
      Parameters:
      keyIncarnationId - the keyIncarnationId value to set.
      Returns:
      the ProxyAgentSettings object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.