Class JitNetworkAccessPolicyInitiateVirtualMachine
java.lang.Object
com.azure.resourcemanager.security.models.JitNetworkAccessPolicyInitiateVirtualMachine
The JitNetworkAccessPolicyInitiateVirtualMachine model.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionid()
Get the id property: Resource ID of the virtual machine that is linked to this policy.ports()
Get the ports property: The ports to open for the resource with the `id`.void
validate()
Validates the instance.Set the id property: Resource ID of the virtual machine that is linked to this policy.Set the ports property: The ports to open for the resource with the `id`.
-
Constructor Details
-
JitNetworkAccessPolicyInitiateVirtualMachine
public JitNetworkAccessPolicyInitiateVirtualMachine()
-
-
Method Details
-
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
public JitNetworkAccessPolicyInitiateVirtualMachine withPorts(List<JitNetworkAccessPolicyInitiatePort> ports) 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.
-