Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.storage; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty;
Network rule set.
/** * Network rule set. */
public class NetworkRuleSet {
Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics. Possible values include: 'None', 'Logging', 'Metrics', 'AzureServices'.
/** * Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. * Possible values are any combination of Logging|Metrics|AzureServices * (For example, "Logging, Metrics"), or None to bypass none of those * traffics. Possible values include: 'None', 'Logging', 'Metrics', * 'AzureServices'. */
@JsonProperty(value = "bypass") private Bypass bypass;
Sets the virtual network rules.
/** * Sets the virtual network rules. */
@JsonProperty(value = "virtualNetworkRules") private List<VirtualNetworkRule> virtualNetworkRules;
Sets the IP ACL rules.
/** * Sets the IP ACL rules. */
@JsonProperty(value = "ipRules") private List<IPRule> ipRules;
Specifies the default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny'.
/** * Specifies the default action of allow or deny when no other rules match. * Possible values include: 'Allow', 'Deny'. */
@JsonProperty(value = "defaultAction", required = true) private DefaultAction defaultAction;
Get specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics. Possible values include: 'None', 'Logging', 'Metrics', 'AzureServices'.
Returns:the bypass value
/** * Get specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics. Possible values include: 'None', 'Logging', 'Metrics', 'AzureServices'. * * @return the bypass value */
public Bypass bypass() { return this.bypass; }
Set specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics. Possible values include: 'None', 'Logging', 'Metrics', 'AzureServices'.
Params:
  • bypass – the bypass value to set
Returns:the NetworkRuleSet object itself.
/** * Set specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics. Possible values include: 'None', 'Logging', 'Metrics', 'AzureServices'. * * @param bypass the bypass value to set * @return the NetworkRuleSet object itself. */
public NetworkRuleSet withBypass(Bypass bypass) { this.bypass = bypass; return this; }
Get sets the virtual network rules.
Returns:the virtualNetworkRules value
/** * Get sets the virtual network rules. * * @return the virtualNetworkRules value */
public List<VirtualNetworkRule> virtualNetworkRules() { return this.virtualNetworkRules; }
Set sets the virtual network rules.
Params:
  • virtualNetworkRules – the virtualNetworkRules value to set
Returns:the NetworkRuleSet object itself.
/** * Set sets the virtual network rules. * * @param virtualNetworkRules the virtualNetworkRules value to set * @return the NetworkRuleSet object itself. */
public NetworkRuleSet withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules) { this.virtualNetworkRules = virtualNetworkRules; return this; }
Get sets the IP ACL rules.
Returns:the ipRules value
/** * Get sets the IP ACL rules. * * @return the ipRules value */
public List<IPRule> ipRules() { return this.ipRules; }
Set sets the IP ACL rules.
Params:
  • ipRules – the ipRules value to set
Returns:the NetworkRuleSet object itself.
/** * Set sets the IP ACL rules. * * @param ipRules the ipRules value to set * @return the NetworkRuleSet object itself. */
public NetworkRuleSet withIpRules(List<IPRule> ipRules) { this.ipRules = ipRules; return this; }
Get specifies the default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny'.
Returns:the defaultAction value
/** * Get specifies the default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny'. * * @return the defaultAction value */
public DefaultAction defaultAction() { return this.defaultAction; }
Set specifies the default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny'.
Params:
  • defaultAction – the defaultAction value to set
Returns:the NetworkRuleSet object itself.
/** * Set specifies the default action of allow or deny when no other rules match. Possible values include: 'Allow', 'Deny'. * * @param defaultAction the defaultAction value to set * @return the NetworkRuleSet object itself. */
public NetworkRuleSet withDefaultAction(DefaultAction defaultAction) { this.defaultAction = defaultAction; return this; } }