Class JitNetworkAccessRequestVirtualMachine

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

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

    • JitNetworkAccessRequestVirtualMachine

      public JitNetworkAccessRequestVirtualMachine()
  • 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 JitNetworkAccessRequestVirtualMachine object itself.
    • ports

      Get the ports property: The ports that were opened for the virtual machine.
      Returns:
      the ports value.
    • withPorts

      Set the ports property: The ports that were opened for the virtual machine.
      Parameters:
      ports - the ports value to set.
      Returns:
      the JitNetworkAccessRequestVirtualMachine object itself.
    • validate

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