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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.gcp.compute.outputs.GetRouterNatRuleAction;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetRouterNatRule {
    private List<GetRouterNatRuleAction> actions;
    private String description;
    private String match;
    private Integer ruleNumber;

    private GetRouterNatRule() {}
    public List<GetRouterNatRuleAction> actions() {
        return this.actions;
    }
    public String description() {
        return this.description;
    }
    public String match() {
        return this.match;
    }
    public Integer ruleNumber() {
        return this.ruleNumber;
    }

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

    public static Builder builder(GetRouterNatRule defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List<GetRouterNatRuleAction> actions;
        private String description;
        private String match;
        private Integer ruleNumber;
        public Builder() {}
        public Builder(GetRouterNatRule defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.actions = defaults.actions;
    	      this.description = defaults.description;
    	      this.match = defaults.match;
    	      this.ruleNumber = defaults.ruleNumber;
        }

        @CustomType.Setter
        public Builder actions(List<GetRouterNatRuleAction> actions) {
            this.actions = Objects.requireNonNull(actions);
            return this;
        }
        public Builder actions(GetRouterNatRuleAction... actions) {
            return actions(List.of(actions));
        }
        @CustomType.Setter
        public Builder description(String description) {
            this.description = Objects.requireNonNull(description);
            return this;
        }
        @CustomType.Setter
        public Builder match(String match) {
            this.match = Objects.requireNonNull(match);
            return this;
        }
        @CustomType.Setter
        public Builder ruleNumber(Integer ruleNumber) {
            this.ruleNumber = Objects.requireNonNull(ruleNumber);
            return this;
        }
        public GetRouterNatRule build() {
            final var o = new GetRouterNatRule();
            o.actions = actions;
            o.description = description;
            o.match = match;
            o.ruleNumber = ruleNumber;
            return o;
        }
    }
}
