Class JitNetworkAccessPolicyInitiateVirtualMachine

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

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

    • JitNetworkAccessPolicyInitiateVirtualMachine

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

      Get the ports property: The ports to open for the resource with the `id`.
      Returns:
      the ports value.
    • withPorts

      Set the ports property: The ports to open for the resource with the `id`.
      Parameters:
      ports - the ports value to set.
      Returns:
      the JitNetworkAccessPolicyInitiateVirtualMachine object itself.
    • validate

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