// *** 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.containerservice.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class RegistryNetworkRuleSetVirtualNetwork {
    /**
     * @return The behaviour for requests matching this rule. At this time the only supported value is `Allow`
     * 
     */
    private String action;
    /**
     * @return The subnet id from which requests will match the rule.
     * 
     */
    private String subnetId;

    private RegistryNetworkRuleSetVirtualNetwork() {}
    /**
     * @return The behaviour for requests matching this rule. At this time the only supported value is `Allow`
     * 
     */
    public String action() {
        return this.action;
    }
    /**
     * @return The subnet id from which requests will match the rule.
     * 
     */
    public String subnetId() {
        return this.subnetId;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(RegistryNetworkRuleSetVirtualNetwork defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String action;
        private String subnetId;
        public Builder() {}
        public Builder(RegistryNetworkRuleSetVirtualNetwork defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.action = defaults.action;
    	      this.subnetId = defaults.subnetId;
        }

        @CustomType.Setter
        public Builder action(String action) {
            this.action = Objects.requireNonNull(action);
            return this;
        }
        @CustomType.Setter
        public Builder subnetId(String subnetId) {
            this.subnetId = Objects.requireNonNull(subnetId);
            return this;
        }
        public RegistryNetworkRuleSetVirtualNetwork build() {
            final var o = new RegistryNetworkRuleSetVirtualNetwork();
            o.action = action;
            o.subnetId = subnetId;
            return o;
        }
    }
}
