Class NWRuleSetVirtualNetworkRules
java.lang.Object
com.azure.resourcemanager.servicebus.models.NWRuleSetVirtualNetworkRules
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NWRuleSetVirtualNetworkRules>
public final class NWRuleSetVirtualNetworkRules
extends Object
implements com.azure.json.JsonSerializable<NWRuleSetVirtualNetworkRules>
Description of VirtualNetworkRules - NetworkRules resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NWRuleSetVirtualNetworkRules class. -
Method Summary
Modifier and TypeMethodDescriptionstatic NWRuleSetVirtualNetworkRulesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NWRuleSetVirtualNetworkRules from the JsonReader.Get the ignoreMissingVnetServiceEndpoint property: Value that indicates whether to ignore missing VNet Service Endpoint.subnet()Get the subnet property: Subnet properties.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withIgnoreMissingVnetServiceEndpoint(Boolean ignoreMissingVnetServiceEndpoint) Set the ignoreMissingVnetServiceEndpoint property: Value that indicates whether to ignore missing VNet Service Endpoint.withSubnet(Subnet subnet) Set the subnet property: Subnet properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
NWRuleSetVirtualNetworkRules
public NWRuleSetVirtualNetworkRules()Creates an instance of NWRuleSetVirtualNetworkRules class.
-
-
Method Details
-
subnet
Get the subnet property: Subnet properties.- Returns:
- the subnet value.
-
withSubnet
Set the subnet property: Subnet properties.- Parameters:
subnet- the subnet value to set.- Returns:
- the NWRuleSetVirtualNetworkRules object itself.
-
ignoreMissingVnetServiceEndpoint
Get the ignoreMissingVnetServiceEndpoint property: Value that indicates whether to ignore missing VNet Service Endpoint.- Returns:
- the ignoreMissingVnetServiceEndpoint value.
-
withIgnoreMissingVnetServiceEndpoint
public NWRuleSetVirtualNetworkRules withIgnoreMissingVnetServiceEndpoint(Boolean ignoreMissingVnetServiceEndpoint) Set the ignoreMissingVnetServiceEndpoint property: Value that indicates whether to ignore missing VNet Service Endpoint.- Parameters:
ignoreMissingVnetServiceEndpoint- the ignoreMissingVnetServiceEndpoint value to set.- Returns:
- the NWRuleSetVirtualNetworkRules object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<NWRuleSetVirtualNetworkRules>- Throws:
IOException
-
fromJson
public static NWRuleSetVirtualNetworkRules fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of NWRuleSetVirtualNetworkRules from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NWRuleSetVirtualNetworkRules if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the NWRuleSetVirtualNetworkRules.
-