JitNetworkAccessPolicyVirtualMachine Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.JitNetworkAccessPolicyVirtualMachine

public final class JitNetworkAccessPolicyVirtualMachine

The JitNetworkAccessPolicyVirtualMachine model.

Constructor Summary

Constructor Description
JitNetworkAccessPolicyVirtualMachine()

Creates an instance of JitNetworkAccessPolicyVirtualMachine class.

Method Summary

Modifier and Type Method and Description
String id()

Get the id property: Resource ID of the virtual machine that is linked to this policy.

List<JitNetworkAccessPortRule> ports()

Get the ports property: Port configurations for the virtual machine.

String publicIpAddress()

Get the publicIpAddress property: Public IP address of the Azure Firewall that is linked to this policy, if applicable.

void validate()

Validates the instance.

JitNetworkAccessPolicyVirtualMachine withId(String id)

Set the id property: Resource ID of the virtual machine that is linked to this policy.

JitNetworkAccessPolicyVirtualMachine withPorts(List<JitNetworkAccessPortRule> ports)

Set the ports property: Port configurations for the virtual machine.

JitNetworkAccessPolicyVirtualMachine withPublicIpAddress(String publicIpAddress)

Set the publicIpAddress property: Public IP address of the Azure Firewall that is linked to this policy, if applicable.

Methods inherited from java.lang.Object

Constructor Details

JitNetworkAccessPolicyVirtualMachine

public JitNetworkAccessPolicyVirtualMachine()

Creates an instance of JitNetworkAccessPolicyVirtualMachine class.

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.

ports

public List ports()

Get the ports property: Port configurations for the virtual machine.

Returns:

the ports value.

publicIpAddress

public String publicIpAddress()

Get the publicIpAddress property: Public IP address of the Azure Firewall that is linked to this policy, if applicable.

Returns:

the publicIpAddress value.

validate

public void validate()

Validates the instance.

withId

public JitNetworkAccessPolicyVirtualMachine withId(String id)

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.

withPorts

public JitNetworkAccessPolicyVirtualMachine withPorts(List ports)

Set the ports property: Port configurations for the virtual machine.

Parameters:

ports - the ports value to set.

Returns:

the JitNetworkAccessPolicyVirtualMachine object itself.

withPublicIpAddress

public JitNetworkAccessPolicyVirtualMachine withPublicIpAddress(String publicIpAddress)

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.

Applies to