All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.network.outputs.FirewallPolicyNatRuleCollectionResponse Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show newest version
// *** 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.azurenative.network.outputs;

import com.pulumi.azurenative.network.outputs.ApplicationRuleResponse;
import com.pulumi.azurenative.network.outputs.FirewallPolicyNatRuleCollectionActionResponse;
import com.pulumi.azurenative.network.outputs.NatRuleResponse;
import com.pulumi.azurenative.network.outputs.NetworkRuleResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class FirewallPolicyNatRuleCollectionResponse {
    /**
     * @return The action type of a Nat rule collection.
     * 
     */
    private @Nullable FirewallPolicyNatRuleCollectionActionResponse action;
    /**
     * @return The name of the rule collection.
     * 
     */
    private @Nullable String name;
    /**
     * @return Priority of the Firewall Policy Rule Collection resource.
     * 
     */
    private @Nullable Integer priority;
    /**
     * @return The type of the rule collection.
     * Expected value is 'FirewallPolicyNatRuleCollection'.
     * 
     */
    private String ruleCollectionType;
    /**
     * @return List of rules included in a rule collection.
     * 
     */
    private @Nullable List rules;

    private FirewallPolicyNatRuleCollectionResponse() {}
    /**
     * @return The action type of a Nat rule collection.
     * 
     */
    public Optional action() {
        return Optional.ofNullable(this.action);
    }
    /**
     * @return The name of the rule collection.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return Priority of the Firewall Policy Rule Collection resource.
     * 
     */
    public Optional priority() {
        return Optional.ofNullable(this.priority);
    }
    /**
     * @return The type of the rule collection.
     * Expected value is 'FirewallPolicyNatRuleCollection'.
     * 
     */
    public String ruleCollectionType() {
        return this.ruleCollectionType;
    }
    /**
     * @return List of rules included in a rule collection.
     * 
     */
    public List rules() {
        return this.rules == null ? List.of() : this.rules;
    }

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

    public static Builder builder(FirewallPolicyNatRuleCollectionResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable FirewallPolicyNatRuleCollectionActionResponse action;
        private @Nullable String name;
        private @Nullable Integer priority;
        private String ruleCollectionType;
        private @Nullable List rules;
        public Builder() {}
        public Builder(FirewallPolicyNatRuleCollectionResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.action = defaults.action;
    	      this.name = defaults.name;
    	      this.priority = defaults.priority;
    	      this.ruleCollectionType = defaults.ruleCollectionType;
    	      this.rules = defaults.rules;
        }

        @CustomType.Setter
        public Builder action(@Nullable FirewallPolicyNatRuleCollectionActionResponse action) {

            this.action = action;
            return this;
        }
        @CustomType.Setter
        public Builder name(@Nullable String name) {

            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder priority(@Nullable Integer priority) {

            this.priority = priority;
            return this;
        }
        @CustomType.Setter
        public Builder ruleCollectionType(String ruleCollectionType) {
            if (ruleCollectionType == null) {
              throw new MissingRequiredPropertyException("FirewallPolicyNatRuleCollectionResponse", "ruleCollectionType");
            }
            this.ruleCollectionType = ruleCollectionType;
            return this;
        }
        @CustomType.Setter
        public Builder rules(@Nullable List rules) {

            this.rules = rules;
            return this;
        }
        public Builder rules(Object... rules) {
            return rules(List.of(rules));
        }
        public FirewallPolicyNatRuleCollectionResponse build() {
            final var _resultValue = new FirewallPolicyNatRuleCollectionResponse();
            _resultValue.action = action;
            _resultValue.name = name;
            _resultValue.priority = priority;
            _resultValue.ruleCollectionType = ruleCollectionType;
            _resultValue.rules = rules;
            return _resultValue;
        }
    }
}