VirtualNetworkRule Class

  • java.lang.Object
    • com.azure.resourcemanager.networkanalytics.models.VirtualNetworkRule

public final class VirtualNetworkRule

Virtual Network Rule.

Constructor Summary

Constructor Description
VirtualNetworkRule()

Creates an instance of VirtualNetworkRule class.

Method Summary

Modifier and Type Method and Description
String action()

Get the action property: The action of virtual network rule.

String id()

Get the id property: Resource ID of a subnet.

String state()

Get the state property: Gets the state of virtual network rule.

void validate()

Validates the instance.

VirtualNetworkRule withAction(String action)

Set the action property: The action of virtual network rule.

VirtualNetworkRule withId(String id)

Set the id property: Resource ID of a subnet.

VirtualNetworkRule withState(String state)

Set the state property: Gets the state of virtual network rule.

Methods inherited from java.lang.Object

Constructor Details

VirtualNetworkRule

public VirtualNetworkRule()

Creates an instance of VirtualNetworkRule class.

Method Details

action

public String action()

Get the action property: The action of virtual network rule.

Returns:

the action value.

id

public String id()

Get the id property: Resource ID of a subnet.

Returns:

the id value.

state

public String state()

Get the state property: Gets the state of virtual network rule.

Returns:

the state value.

validate

public void validate()

Validates the instance.

withAction

public VirtualNetworkRule withAction(String action)

Set the action property: The action of virtual network rule.

Parameters:

action - the action value to set.

Returns:

the VirtualNetworkRule object itself.

withId

public VirtualNetworkRule withId(String id)

Set the id property: Resource ID of a subnet.

Parameters:

id - the id value to set.

Returns:

the VirtualNetworkRule object itself.

withState

public VirtualNetworkRule withState(String state)

Set the state property: Gets the state of virtual network rule.

Parameters:

state - the state value to set.

Returns:

the VirtualNetworkRule object itself.

Applies to