Partilhar via


NetworkRuleSetInner Class

public final class NetworkRuleSetInner
extends ProxyResource

Description of NetworkRuleSet resource.

Constructor Summary

Constructor Description
NetworkRuleSetInner()

Creates an instance of NetworkRuleSetInner class.

Method Summary

Modifier and Type Method and Description
DefaultAction defaultAction()

Get the defaultAction property: Default Action for Network Rule Set.

static NetworkRuleSetInner fromJson(JsonReader jsonReader)

Reads an instance of NetworkRuleSetInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

List<NWRuleSetIpRules> ipRules()

Get the ipRules property: List of IpRules.

String location()

Get the location property: The geo-location where the resource lives.

String name()

Get the name property: The name of the resource.

PublicNetworkAccessFlag publicNetworkAccess()

Get the publicNetworkAccess property: This determines if traffic is allowed over public network.

SystemData systemData()

Get the systemData property: The system meta data relating to this resource.

JsonWriter toJson(JsonWriter jsonWriter)
Boolean trustedServiceAccessEnabled()

Get the trustedServiceAccessEnabled property: Value that indicates whether Trusted Service Access is Enabled or not.

String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

List<NWRuleSetVirtualNetworkRules> virtualNetworkRules()

Get the virtualNetworkRules property: List VirtualNetwork Rules.

NetworkRuleSetInner withDefaultAction(DefaultAction defaultAction)

Set the defaultAction property: Default Action for Network Rule Set.

NetworkRuleSetInner withIpRules(List<NWRuleSetIpRules> ipRules)

Set the ipRules property: List of IpRules.

NetworkRuleSetInner withPublicNetworkAccess(PublicNetworkAccessFlag publicNetworkAccess)

Set the publicNetworkAccess property: This determines if traffic is allowed over public network.

NetworkRuleSetInner withTrustedServiceAccessEnabled(Boolean trustedServiceAccessEnabled)

Set the trustedServiceAccessEnabled property: Value that indicates whether Trusted Service Access is Enabled or not.

NetworkRuleSetInner withVirtualNetworkRules(List<NWRuleSetVirtualNetworkRules> virtualNetworkRules)

Set the virtualNetworkRules property: List VirtualNetwork Rules.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

NetworkRuleSetInner

public NetworkRuleSetInner()

Creates an instance of NetworkRuleSetInner class.

Method Details

defaultAction

public DefaultAction defaultAction()

Get the defaultAction property: Default Action for Network Rule Set.

Returns:

the defaultAction value.

fromJson

public static NetworkRuleSetInner fromJson(JsonReader jsonReader)

Reads an instance of NetworkRuleSetInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NetworkRuleSetInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

NetworkRuleSetInner.id()

Returns:

the id value.

ipRules

public List ipRules()

Get the ipRules property: List of IpRules.

Returns:

the ipRules value.

location

public String location()

Get the location property: The geo-location where the resource lives.

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

NetworkRuleSetInner.name()

Returns:

the name value.

publicNetworkAccess

public PublicNetworkAccessFlag publicNetworkAccess()

Get the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is enabled.

Returns:

the publicNetworkAccess value.

systemData

public SystemData systemData()

Get the systemData property: The system meta data relating to this resource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

NetworkRuleSetInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

trustedServiceAccessEnabled

public Boolean trustedServiceAccessEnabled()

Get the trustedServiceAccessEnabled property: Value that indicates whether Trusted Service Access is Enabled or not.

Returns:

the trustedServiceAccessEnabled value.

type

public String type()

Get the type property: The type of the resource.

Overrides:

NetworkRuleSetInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

virtualNetworkRules

public List virtualNetworkRules()

Get the virtualNetworkRules property: List VirtualNetwork Rules.

Returns:

the virtualNetworkRules value.

withDefaultAction

public NetworkRuleSetInner withDefaultAction(DefaultAction defaultAction)

Set the defaultAction property: Default Action for Network Rule Set.

Parameters:

defaultAction - the defaultAction value to set.

Returns:

the NetworkRuleSetInner object itself.

withIpRules

public NetworkRuleSetInner withIpRules(List ipRules)

Set the ipRules property: List of IpRules.

Parameters:

ipRules - the ipRules value to set.

Returns:

the NetworkRuleSetInner object itself.

withPublicNetworkAccess

public NetworkRuleSetInner withPublicNetworkAccess(PublicNetworkAccessFlag publicNetworkAccess)

Set the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is enabled.

Parameters:

publicNetworkAccess - the publicNetworkAccess value to set.

Returns:

the NetworkRuleSetInner object itself.

withTrustedServiceAccessEnabled

public NetworkRuleSetInner withTrustedServiceAccessEnabled(Boolean trustedServiceAccessEnabled)

Set the trustedServiceAccessEnabled property: Value that indicates whether Trusted Service Access is Enabled or not.

Parameters:

trustedServiceAccessEnabled - the trustedServiceAccessEnabled value to set.

Returns:

the NetworkRuleSetInner object itself.

withVirtualNetworkRules

public NetworkRuleSetInner withVirtualNetworkRules(List virtualNetworkRules)

Set the virtualNetworkRules property: List VirtualNetwork Rules.

Parameters:

virtualNetworkRules - the virtualNetworkRules value to set.

Returns:

the NetworkRuleSetInner object itself.

Applies to