com.pulumi.azure.cognitive.outputs.AIServicesNetworkAcls 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.cognitive.outputs;
import com.pulumi.azure.cognitive.outputs.AIServicesNetworkAclsVirtualNetworkRule;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class AIServicesNetworkAcls {
/**
* @return The Default Action to use when no rules match from `ip_rules` / `virtual_network_rules`. Possible values are `Allow` and `Deny`.
*
*/
private String defaultAction;
/**
* @return One or more IP Addresses, or CIDR Blocks which should be able to access the AI Services Account.
*
*/
private @Nullable List ipRules;
/**
* @return A `virtual_network_rules` block as defined below.
*
*/
private @Nullable List virtualNetworkRules;
private AIServicesNetworkAcls() {}
/**
* @return The Default Action to use when no rules match from `ip_rules` / `virtual_network_rules`. Possible values are `Allow` and `Deny`.
*
*/
public String defaultAction() {
return this.defaultAction;
}
/**
* @return One or more IP Addresses, or CIDR Blocks which should be able to access the AI Services Account.
*
*/
public List ipRules() {
return this.ipRules == null ? List.of() : this.ipRules;
}
/**
* @return A `virtual_network_rules` block as defined below.
*
*/
public List virtualNetworkRules() {
return this.virtualNetworkRules == null ? List.of() : this.virtualNetworkRules;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AIServicesNetworkAcls defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String defaultAction;
private @Nullable List ipRules;
private @Nullable List virtualNetworkRules;
public Builder() {}
public Builder(AIServicesNetworkAcls defaults) {
Objects.requireNonNull(defaults);
this.defaultAction = defaults.defaultAction;
this.ipRules = defaults.ipRules;
this.virtualNetworkRules = defaults.virtualNetworkRules;
}
@CustomType.Setter
public Builder defaultAction(String defaultAction) {
if (defaultAction == null) {
throw new MissingRequiredPropertyException("AIServicesNetworkAcls", "defaultAction");
}
this.defaultAction = defaultAction;
return this;
}
@CustomType.Setter
public Builder ipRules(@Nullable List ipRules) {
this.ipRules = ipRules;
return this;
}
public Builder ipRules(String... ipRules) {
return ipRules(List.of(ipRules));
}
@CustomType.Setter
public Builder virtualNetworkRules(@Nullable List virtualNetworkRules) {
this.virtualNetworkRules = virtualNetworkRules;
return this;
}
public Builder virtualNetworkRules(AIServicesNetworkAclsVirtualNetworkRule... virtualNetworkRules) {
return virtualNetworkRules(List.of(virtualNetworkRules));
}
public AIServicesNetworkAcls build() {
final var _resultValue = new AIServicesNetworkAcls();
_resultValue.defaultAction = defaultAction;
_resultValue.ipRules = ipRules;
_resultValue.virtualNetworkRules = virtualNetworkRules;
return _resultValue;
}
}
}