Class JitNetworkAccessPolicyVirtualMachine

java.lang.Object
com.azure.resourcemanager.security.models.JitNetworkAccessPolicyVirtualMachine

public final class JitNetworkAccessPolicyVirtualMachine extends Object
The JitNetworkAccessPolicyVirtualMachine model.
  • Constructor Details

    • JitNetworkAccessPolicyVirtualMachine

      public JitNetworkAccessPolicyVirtualMachine()
  • Method Details

    • id

      public String id()
      Get the id property: Resource ID of the virtual machine that is linked to this policy.
      Returns:
      the id value.
    • withId

      Set the id property: Resource ID of the virtual machine that is linked to this policy.
      Parameters:
      id - the id value to set.
      Returns:
      the JitNetworkAccessPolicyVirtualMachine object itself.
    • ports

      public List<JitNetworkAccessPortRule> ports()
      Get the ports property: Port configurations for the virtual machine.
      Returns:
      the ports value.
    • withPorts

      Set the ports property: Port configurations for the virtual machine.
      Parameters:
      ports - the ports value to set.
      Returns:
      the JitNetworkAccessPolicyVirtualMachine object itself.
    • publicIpAddress

      public String publicIpAddress()
      Get the publicIpAddress property: Public IP address of the Azure Firewall that is linked to this policy, if applicable.
      Returns:
      the publicIpAddress value.
    • withPublicIpAddress

      public JitNetworkAccessPolicyVirtualMachine withPublicIpAddress(String publicIpAddress)
      Set the publicIpAddress property: Public IP address of the Azure Firewall that is linked to this policy, if applicable.
      Parameters:
      publicIpAddress - the publicIpAddress value to set.
      Returns:
      the JitNetworkAccessPolicyVirtualMachine object itself.
    • validate

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