VirtualNetworkRule Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. VirtualNetworkRule
- com.
Implements
public final class VirtualNetworkRule
implements JsonSerializable<VirtualNetworkRule>
Virtual Network ACL Rule object.
Constructor Summary
Constructor | Description |
---|---|
VirtualNetworkRule() |
Creates an instance of Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
String |
id()
Get the id property: Resource ID of a subnet, for example: /subscriptions/{subscription |
Boolean |
ignoreMissingVNetServiceEndpoint()
Get the ignore |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Virtual |
withId(String id)
Set the id property: Resource ID of a subnet, for example: /subscriptions/{subscription |
Virtual |
withIgnoreMissingVNetServiceEndpoint(Boolean ignoreMissingVNetServiceEndpoint)
Set the ignore |
Methods inherited from java.lang.Object
Constructor Details
VirtualNetworkRule
public VirtualNetworkRule()
Creates an instance of VirtualNetworkRule class.
Method Details
fromJson
public static VirtualNetworkRule fromJson(JsonReader jsonReader)
Reads an instance of VirtualNetworkRule from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}.
Returns:
ignoreMissingVNetServiceEndpoint
public Boolean ignoreMissingVNetServiceEndpoint()
Get the ignoreMissingVNetServiceEndpoint property: Create firewall rule before the virtual network has vnet service endpoint enabled.
Returns:
toJson
validate
public void validate()
Validates the instance.
withId
public VirtualNetworkRule withId(String id)
Set the id property: Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}.
Parameters:
Returns:
withIgnoreMissingVNetServiceEndpoint
public VirtualNetworkRule withIgnoreMissingVNetServiceEndpoint(Boolean ignoreMissingVNetServiceEndpoint)
Set the ignoreMissingVNetServiceEndpoint property: Create firewall rule before the virtual network has vnet service endpoint enabled.
Parameters:
Returns:
Applies to
Azure SDK for Java