com.pulumi.azure.keyvault.outputs.GetKeyVaultNetworkAcl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azure.keyvault.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetKeyVaultNetworkAcl {
private String bypass;
private String defaultAction;
private List ipRules;
private List virtualNetworkSubnetIds;
private GetKeyVaultNetworkAcl() {}
public String bypass() {
return this.bypass;
}
public String defaultAction() {
return this.defaultAction;
}
public List ipRules() {
return this.ipRules;
}
public List virtualNetworkSubnetIds() {
return this.virtualNetworkSubnetIds;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetKeyVaultNetworkAcl defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String bypass;
private String defaultAction;
private List ipRules;
private List virtualNetworkSubnetIds;
public Builder() {}
public Builder(GetKeyVaultNetworkAcl defaults) {
Objects.requireNonNull(defaults);
this.bypass = defaults.bypass;
this.defaultAction = defaults.defaultAction;
this.ipRules = defaults.ipRules;
this.virtualNetworkSubnetIds = defaults.virtualNetworkSubnetIds;
}
@CustomType.Setter
public Builder bypass(String bypass) {
if (bypass == null) {
throw new MissingRequiredPropertyException("GetKeyVaultNetworkAcl", "bypass");
}
this.bypass = bypass;
return this;
}
@CustomType.Setter
public Builder defaultAction(String defaultAction) {
if (defaultAction == null) {
throw new MissingRequiredPropertyException("GetKeyVaultNetworkAcl", "defaultAction");
}
this.defaultAction = defaultAction;
return this;
}
@CustomType.Setter
public Builder ipRules(List ipRules) {
if (ipRules == null) {
throw new MissingRequiredPropertyException("GetKeyVaultNetworkAcl", "ipRules");
}
this.ipRules = ipRules;
return this;
}
public Builder ipRules(String... ipRules) {
return ipRules(List.of(ipRules));
}
@CustomType.Setter
public Builder virtualNetworkSubnetIds(List virtualNetworkSubnetIds) {
if (virtualNetworkSubnetIds == null) {
throw new MissingRequiredPropertyException("GetKeyVaultNetworkAcl", "virtualNetworkSubnetIds");
}
this.virtualNetworkSubnetIds = virtualNetworkSubnetIds;
return this;
}
public Builder virtualNetworkSubnetIds(String... virtualNetworkSubnetIds) {
return virtualNetworkSubnetIds(List.of(virtualNetworkSubnetIds));
}
public GetKeyVaultNetworkAcl build() {
final var _resultValue = new GetKeyVaultNetworkAcl();
_resultValue.bypass = bypass;
_resultValue.defaultAction = defaultAction;
_resultValue.ipRules = ipRules;
_resultValue.virtualNetworkSubnetIds = virtualNetworkSubnetIds;
return _resultValue;
}
}
}