com.microsoft.azure.management.keyvault.NetworkRuleSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-keyvault Show documentation
Show all versions of azure-mgmt-keyvault Show documentation
This package contains Microsoft Azure Key Vault Management SDK. This package has been deprecated. A replacement package com.azure.resourcemanager:azure-resourcemanager-keyvault is available as of 31-March-2022. We strongly encourage you to upgrade to continue receiving updates. See Migration Guide https://aka.ms/java-track2-migration-guide for guidance on upgrading. Refer to our deprecation policy https://azure.github.io/azure-sdk/policies_support.html for more details.
/**
* 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.keyvault;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* A set of rules governing the network accessibility of a vault.
*/
public class NetworkRuleSet {
/**
* Tells what traffic can bypass network rules. This can be 'AzureServices'
* or 'None'. If not specified the default is 'AzureServices'. Possible
* values include: 'AzureServices', 'None'.
*/
@JsonProperty(value = "bypass")
private NetworkRuleBypassOptions bypass;
/**
* The default action when no rule from ipRules and from
* virtualNetworkRules match. This is only used after the bypass property
* has been evaluated. Possible values include: 'Allow', 'Deny'.
*/
@JsonProperty(value = "defaultAction")
private NetworkRuleAction defaultAction;
/**
* The list of IP address rules.
*/
@JsonProperty(value = "ipRules")
private List ipRules;
/**
* The list of virtual network rules.
*/
@JsonProperty(value = "virtualNetworkRules")
private List virtualNetworkRules;
/**
* Get the bypass value.
*
* @return the bypass value
*/
public NetworkRuleBypassOptions bypass() {
return this.bypass;
}
/**
* Set the bypass value.
*
* @param bypass the bypass value to set
* @return the NetworkRuleSet object itself.
*/
public NetworkRuleSet withBypass(NetworkRuleBypassOptions bypass) {
this.bypass = bypass;
return this;
}
/**
* Get the defaultAction value.
*
* @return the defaultAction value
*/
public NetworkRuleAction defaultAction() {
return this.defaultAction;
}
/**
* Set the defaultAction value.
*
* @param defaultAction the defaultAction value to set
* @return the NetworkRuleSet object itself.
*/
public NetworkRuleSet withDefaultAction(NetworkRuleAction defaultAction) {
this.defaultAction = defaultAction;
return this;
}
/**
* Get the ipRules value.
*
* @return the ipRules value
*/
public List ipRules() {
return this.ipRules;
}
/**
* Set the ipRules value.
*
* @param ipRules the ipRules value to set
* @return the NetworkRuleSet object itself.
*/
public NetworkRuleSet withIpRules(List ipRules) {
this.ipRules = ipRules;
return this;
}
/**
* Get the virtualNetworkRules value.
*
* @return the virtualNetworkRules value
*/
public List virtualNetworkRules() {
return this.virtualNetworkRules;
}
/**
* Set the virtualNetworkRules value.
*
* @param virtualNetworkRules the virtualNetworkRules value to set
* @return the NetworkRuleSet object itself.
*/
public NetworkRuleSet withVirtualNetworkRules(List virtualNetworkRules) {
this.virtualNetworkRules = virtualNetworkRules;
return this;
}
}