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

com.pulumi.linode.outputs.GetFirewallsFirewall Maven / Gradle / Ivy

There is a newer version: 4.31.0-alpha.1732773076
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.linode.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.linode.outputs.GetFirewallsFirewallDevice;
import com.pulumi.linode.outputs.GetFirewallsFirewallInbound;
import com.pulumi.linode.outputs.GetFirewallsFirewallOutbound;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class GetFirewallsFirewall {
    /**
     * @return When this firewall was created.
     * 
     */
    private String created;
    /**
     * @return The devices associated with this firewall.
     * 
     */
    private @Nullable List devices;
    /**
     * @return If true, the Firewall is inactive.
     * 
     */
    private Boolean disabled;
    /**
     * @return The unique ID assigned to this Firewall.
     * 
     */
    private Integer id;
    /**
     * @return The default behavior for inbound traffic.
     * 
     */
    private String inboundPolicy;
    /**
     * @return A set of firewall rules that specify what inbound network traffic is allowed.
     * 
     */
    private @Nullable List inbounds;
    /**
     * @return The label for the Firewall. For display purposes only. If no label is provided, a default will be assigned.
     * 
     */
    private String label;
    /**
     * @return The IDs of Linodes this firewall is applied to.
     * 
     */
    private List linodes;
    /**
     * @return The IDs of NodeBalancers assigned to this Firewall..
     * 
     */
    private List nodebalancers;
    /**
     * @return The default behavior for outbound traffic.
     * 
     */
    private String outboundPolicy;
    /**
     * @return A set of firewall rules that specify what outbound network traffic is allowed.
     * 
     */
    private @Nullable List outbounds;
    /**
     * @return The status of the firewall.
     * 
     */
    private String status;
    /**
     * @return An array of tags applied to this object. Tags are case-insensitive and are for organizational purposes only.
     * 
     */
    private List tags;
    /**
     * @return When this firewall was last updated.
     * 
     */
    private String updated;

    private GetFirewallsFirewall() {}
    /**
     * @return When this firewall was created.
     * 
     */
    public String created() {
        return this.created;
    }
    /**
     * @return The devices associated with this firewall.
     * 
     */
    public List devices() {
        return this.devices == null ? List.of() : this.devices;
    }
    /**
     * @return If true, the Firewall is inactive.
     * 
     */
    public Boolean disabled() {
        return this.disabled;
    }
    /**
     * @return The unique ID assigned to this Firewall.
     * 
     */
    public Integer id() {
        return this.id;
    }
    /**
     * @return The default behavior for inbound traffic.
     * 
     */
    public String inboundPolicy() {
        return this.inboundPolicy;
    }
    /**
     * @return A set of firewall rules that specify what inbound network traffic is allowed.
     * 
     */
    public List inbounds() {
        return this.inbounds == null ? List.of() : this.inbounds;
    }
    /**
     * @return The label for the Firewall. For display purposes only. If no label is provided, a default will be assigned.
     * 
     */
    public String label() {
        return this.label;
    }
    /**
     * @return The IDs of Linodes this firewall is applied to.
     * 
     */
    public List linodes() {
        return this.linodes;
    }
    /**
     * @return The IDs of NodeBalancers assigned to this Firewall..
     * 
     */
    public List nodebalancers() {
        return this.nodebalancers;
    }
    /**
     * @return The default behavior for outbound traffic.
     * 
     */
    public String outboundPolicy() {
        return this.outboundPolicy;
    }
    /**
     * @return A set of firewall rules that specify what outbound network traffic is allowed.
     * 
     */
    public List outbounds() {
        return this.outbounds == null ? List.of() : this.outbounds;
    }
    /**
     * @return The status of the firewall.
     * 
     */
    public String status() {
        return this.status;
    }
    /**
     * @return An array of tags applied to this object. Tags are case-insensitive and are for organizational purposes only.
     * 
     */
    public List tags() {
        return this.tags;
    }
    /**
     * @return When this firewall was last updated.
     * 
     */
    public String updated() {
        return this.updated;
    }

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

    public static Builder builder(GetFirewallsFirewall defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String created;
        private @Nullable List devices;
        private Boolean disabled;
        private Integer id;
        private String inboundPolicy;
        private @Nullable List inbounds;
        private String label;
        private List linodes;
        private List nodebalancers;
        private String outboundPolicy;
        private @Nullable List outbounds;
        private String status;
        private List tags;
        private String updated;
        public Builder() {}
        public Builder(GetFirewallsFirewall defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.created = defaults.created;
    	      this.devices = defaults.devices;
    	      this.disabled = defaults.disabled;
    	      this.id = defaults.id;
    	      this.inboundPolicy = defaults.inboundPolicy;
    	      this.inbounds = defaults.inbounds;
    	      this.label = defaults.label;
    	      this.linodes = defaults.linodes;
    	      this.nodebalancers = defaults.nodebalancers;
    	      this.outboundPolicy = defaults.outboundPolicy;
    	      this.outbounds = defaults.outbounds;
    	      this.status = defaults.status;
    	      this.tags = defaults.tags;
    	      this.updated = defaults.updated;
        }

        @CustomType.Setter
        public Builder created(String created) {
            if (created == null) {
              throw new MissingRequiredPropertyException("GetFirewallsFirewall", "created");
            }
            this.created = created;
            return this;
        }
        @CustomType.Setter
        public Builder devices(@Nullable List devices) {

            this.devices = devices;
            return this;
        }
        public Builder devices(GetFirewallsFirewallDevice... devices) {
            return devices(List.of(devices));
        }
        @CustomType.Setter
        public Builder disabled(Boolean disabled) {
            if (disabled == null) {
              throw new MissingRequiredPropertyException("GetFirewallsFirewall", "disabled");
            }
            this.disabled = disabled;
            return this;
        }
        @CustomType.Setter
        public Builder id(Integer id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetFirewallsFirewall", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder inboundPolicy(String inboundPolicy) {
            if (inboundPolicy == null) {
              throw new MissingRequiredPropertyException("GetFirewallsFirewall", "inboundPolicy");
            }
            this.inboundPolicy = inboundPolicy;
            return this;
        }
        @CustomType.Setter
        public Builder inbounds(@Nullable List inbounds) {

            this.inbounds = inbounds;
            return this;
        }
        public Builder inbounds(GetFirewallsFirewallInbound... inbounds) {
            return inbounds(List.of(inbounds));
        }
        @CustomType.Setter
        public Builder label(String label) {
            if (label == null) {
              throw new MissingRequiredPropertyException("GetFirewallsFirewall", "label");
            }
            this.label = label;
            return this;
        }
        @CustomType.Setter
        public Builder linodes(List linodes) {
            if (linodes == null) {
              throw new MissingRequiredPropertyException("GetFirewallsFirewall", "linodes");
            }
            this.linodes = linodes;
            return this;
        }
        public Builder linodes(Integer... linodes) {
            return linodes(List.of(linodes));
        }
        @CustomType.Setter
        public Builder nodebalancers(List nodebalancers) {
            if (nodebalancers == null) {
              throw new MissingRequiredPropertyException("GetFirewallsFirewall", "nodebalancers");
            }
            this.nodebalancers = nodebalancers;
            return this;
        }
        public Builder nodebalancers(Integer... nodebalancers) {
            return nodebalancers(List.of(nodebalancers));
        }
        @CustomType.Setter
        public Builder outboundPolicy(String outboundPolicy) {
            if (outboundPolicy == null) {
              throw new MissingRequiredPropertyException("GetFirewallsFirewall", "outboundPolicy");
            }
            this.outboundPolicy = outboundPolicy;
            return this;
        }
        @CustomType.Setter
        public Builder outbounds(@Nullable List outbounds) {

            this.outbounds = outbounds;
            return this;
        }
        public Builder outbounds(GetFirewallsFirewallOutbound... outbounds) {
            return outbounds(List.of(outbounds));
        }
        @CustomType.Setter
        public Builder status(String status) {
            if (status == null) {
              throw new MissingRequiredPropertyException("GetFirewallsFirewall", "status");
            }
            this.status = status;
            return this;
        }
        @CustomType.Setter
        public Builder tags(List tags) {
            if (tags == null) {
              throw new MissingRequiredPropertyException("GetFirewallsFirewall", "tags");
            }
            this.tags = tags;
            return this;
        }
        public Builder tags(String... tags) {
            return tags(List.of(tags));
        }
        @CustomType.Setter
        public Builder updated(String updated) {
            if (updated == null) {
              throw new MissingRequiredPropertyException("GetFirewallsFirewall", "updated");
            }
            this.updated = updated;
            return this;
        }
        public GetFirewallsFirewall build() {
            final var _resultValue = new GetFirewallsFirewall();
            _resultValue.created = created;
            _resultValue.devices = devices;
            _resultValue.disabled = disabled;
            _resultValue.id = id;
            _resultValue.inboundPolicy = inboundPolicy;
            _resultValue.inbounds = inbounds;
            _resultValue.label = label;
            _resultValue.linodes = linodes;
            _resultValue.nodebalancers = nodebalancers;
            _resultValue.outboundPolicy = outboundPolicy;
            _resultValue.outbounds = outbounds;
            _resultValue.status = status;
            _resultValue.tags = tags;
            _resultValue.updated = updated;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy