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

com.pulumi.meraki.networks.outputs.GetApplianceFirewallOneToManyNatRulesItemRulePortRule Maven / Gradle / Ivy

There is a newer version: 0.4.0-alpha.1731736975
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.meraki.networks.outputs;

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

@CustomType
public final class GetApplianceFirewallOneToManyNatRulesItemRulePortRule {
    private List allowedIps;
    private String localIp;
    private String localPort;
    private String name;
    private String protocol;
    private String publicPort;

    private GetApplianceFirewallOneToManyNatRulesItemRulePortRule() {}
    public List allowedIps() {
        return this.allowedIps;
    }
    public String localIp() {
        return this.localIp;
    }
    public String localPort() {
        return this.localPort;
    }
    public String name() {
        return this.name;
    }
    public String protocol() {
        return this.protocol;
    }
    public String publicPort() {
        return this.publicPort;
    }

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

    public static Builder builder(GetApplianceFirewallOneToManyNatRulesItemRulePortRule defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List allowedIps;
        private String localIp;
        private String localPort;
        private String name;
        private String protocol;
        private String publicPort;
        public Builder() {}
        public Builder(GetApplianceFirewallOneToManyNatRulesItemRulePortRule defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.allowedIps = defaults.allowedIps;
    	      this.localIp = defaults.localIp;
    	      this.localPort = defaults.localPort;
    	      this.name = defaults.name;
    	      this.protocol = defaults.protocol;
    	      this.publicPort = defaults.publicPort;
        }

        @CustomType.Setter
        public Builder allowedIps(List allowedIps) {
            if (allowedIps == null) {
              throw new MissingRequiredPropertyException("GetApplianceFirewallOneToManyNatRulesItemRulePortRule", "allowedIps");
            }
            this.allowedIps = allowedIps;
            return this;
        }
        public Builder allowedIps(String... allowedIps) {
            return allowedIps(List.of(allowedIps));
        }
        @CustomType.Setter
        public Builder localIp(String localIp) {
            if (localIp == null) {
              throw new MissingRequiredPropertyException("GetApplianceFirewallOneToManyNatRulesItemRulePortRule", "localIp");
            }
            this.localIp = localIp;
            return this;
        }
        @CustomType.Setter
        public Builder localPort(String localPort) {
            if (localPort == null) {
              throw new MissingRequiredPropertyException("GetApplianceFirewallOneToManyNatRulesItemRulePortRule", "localPort");
            }
            this.localPort = localPort;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetApplianceFirewallOneToManyNatRulesItemRulePortRule", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder protocol(String protocol) {
            if (protocol == null) {
              throw new MissingRequiredPropertyException("GetApplianceFirewallOneToManyNatRulesItemRulePortRule", "protocol");
            }
            this.protocol = protocol;
            return this;
        }
        @CustomType.Setter
        public Builder publicPort(String publicPort) {
            if (publicPort == null) {
              throw new MissingRequiredPropertyException("GetApplianceFirewallOneToManyNatRulesItemRulePortRule", "publicPort");
            }
            this.publicPort = publicPort;
            return this;
        }
        public GetApplianceFirewallOneToManyNatRulesItemRulePortRule build() {
            final var _resultValue = new GetApplianceFirewallOneToManyNatRulesItemRulePortRule();
            _resultValue.allowedIps = allowedIps;
            _resultValue.localIp = localIp;
            _resultValue.localPort = localPort;
            _resultValue.name = name;
            _resultValue.protocol = protocol;
            _resultValue.publicPort = publicPort;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy