// *** 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 java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetKeyVaultNetworkAcl {
    private String bypass;
    private String defaultAction;
    private List<String> ipRules;
    private List<String> virtualNetworkSubnetIds;

    private GetKeyVaultNetworkAcl() {}
    public String bypass() {
        return this.bypass;
    }
    public String defaultAction() {
        return this.defaultAction;
    }
    public List<String> ipRules() {
        return this.ipRules;
    }
    public List<String> 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<String> ipRules;
        private List<String> 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) {
            this.bypass = Objects.requireNonNull(bypass);
            return this;
        }
        @CustomType.Setter
        public Builder defaultAction(String defaultAction) {
            this.defaultAction = Objects.requireNonNull(defaultAction);
            return this;
        }
        @CustomType.Setter
        public Builder ipRules(List<String> ipRules) {
            this.ipRules = Objects.requireNonNull(ipRules);
            return this;
        }
        public Builder ipRules(String... ipRules) {
            return ipRules(List.of(ipRules));
        }
        @CustomType.Setter
        public Builder virtualNetworkSubnetIds(List<String> virtualNetworkSubnetIds) {
            this.virtualNetworkSubnetIds = Objects.requireNonNull(virtualNetworkSubnetIds);
            return this;
        }
        public Builder virtualNetworkSubnetIds(String... virtualNetworkSubnetIds) {
            return virtualNetworkSubnetIds(List.of(virtualNetworkSubnetIds));
        }
        public GetKeyVaultNetworkAcl build() {
            final var o = new GetKeyVaultNetworkAcl();
            o.bypass = bypass;
            o.defaultAction = defaultAction;
            o.ipRules = ipRules;
            o.virtualNetworkSubnetIds = virtualNetworkSubnetIds;
            return o;
        }
    }
}
