Class JitNetworkAccessPolicyVirtualMachine
java.lang.Object
com.azure.resourcemanager.security.models.JitNetworkAccessPolicyVirtualMachine
The JitNetworkAccessPolicyVirtualMachine 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: Port configurations for the virtual machine.Get the publicIpAddress property: Public IP address of the Azure Firewall that is linked to this policy, if applicable.void
validate()
Validates the instance.Set the id property: Resource ID of the virtual machine that is linked to this policy.withPorts
(List<JitNetworkAccessPortRule> ports) Set the ports property: Port configurations for the virtual machine.withPublicIpAddress
(String publicIpAddress) Set the publicIpAddress property: Public IP address of the Azure Firewall that is linked to this policy, if applicable.
-
Constructor Details
-
JitNetworkAccessPolicyVirtualMachine
public JitNetworkAccessPolicyVirtualMachine()
-
-
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 JitNetworkAccessPolicyVirtualMachine object itself.
-
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
Get the publicIpAddress property: Public IP address of the Azure Firewall that is linked to this policy, if applicable.- Returns:
- the publicIpAddress value.
-
withPublicIpAddress
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.
-