Class JitNetworkAccessRequestVirtualMachine
java.lang.Object
com.azure.resourcemanager.security.models.JitNetworkAccessRequestVirtualMachine
The JitNetworkAccessRequestVirtualMachine 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 that were opened for the virtual machine.void
validate()
Validates the instance.Set the id property: Resource ID of the virtual machine that is linked to this policy.withPorts
(List<JitNetworkAccessRequestPort> ports) Set the ports property: The ports that were opened for the virtual machine.
-
Constructor Details
-
JitNetworkAccessRequestVirtualMachine
public JitNetworkAccessRequestVirtualMachine()
-
-
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 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.
-