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

com.pulumi.cloudngfwaws.outputs.SecurityRuleDestination Maven / Gradle / Ivy

There is a newer version: 0.1.0-alpha.1731490948
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.cloudngfwaws.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class SecurityRuleDestination {
    /**
     * @return List of CIDRs.
     * 
     */
    private @Nullable List cidrs;
    /**
     * @return List of countries.
     * 
     */
    private @Nullable List countries;
    /**
     * @return List of feeds.
     * 
     */
    private @Nullable List feeds;
    /**
     * @return List of FQDN lists.
     * 
     */
    private @Nullable List fqdnLists;
    /**
     * @return List of prefix list.
     * 
     */
    private @Nullable List prefixLists;

    private SecurityRuleDestination() {}
    /**
     * @return List of CIDRs.
     * 
     */
    public List cidrs() {
        return this.cidrs == null ? List.of() : this.cidrs;
    }
    /**
     * @return List of countries.
     * 
     */
    public List countries() {
        return this.countries == null ? List.of() : this.countries;
    }
    /**
     * @return List of feeds.
     * 
     */
    public List feeds() {
        return this.feeds == null ? List.of() : this.feeds;
    }
    /**
     * @return List of FQDN lists.
     * 
     */
    public List fqdnLists() {
        return this.fqdnLists == null ? List.of() : this.fqdnLists;
    }
    /**
     * @return List of prefix list.
     * 
     */
    public List prefixLists() {
        return this.prefixLists == null ? List.of() : this.prefixLists;
    }

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

    public static Builder builder(SecurityRuleDestination defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List cidrs;
        private @Nullable List countries;
        private @Nullable List feeds;
        private @Nullable List fqdnLists;
        private @Nullable List prefixLists;
        public Builder() {}
        public Builder(SecurityRuleDestination defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.cidrs = defaults.cidrs;
    	      this.countries = defaults.countries;
    	      this.feeds = defaults.feeds;
    	      this.fqdnLists = defaults.fqdnLists;
    	      this.prefixLists = defaults.prefixLists;
        }

        @CustomType.Setter
        public Builder cidrs(@Nullable List cidrs) {

            this.cidrs = cidrs;
            return this;
        }
        public Builder cidrs(String... cidrs) {
            return cidrs(List.of(cidrs));
        }
        @CustomType.Setter
        public Builder countries(@Nullable List countries) {

            this.countries = countries;
            return this;
        }
        public Builder countries(String... countries) {
            return countries(List.of(countries));
        }
        @CustomType.Setter
        public Builder feeds(@Nullable List feeds) {

            this.feeds = feeds;
            return this;
        }
        public Builder feeds(String... feeds) {
            return feeds(List.of(feeds));
        }
        @CustomType.Setter
        public Builder fqdnLists(@Nullable List fqdnLists) {

            this.fqdnLists = fqdnLists;
            return this;
        }
        public Builder fqdnLists(String... fqdnLists) {
            return fqdnLists(List.of(fqdnLists));
        }
        @CustomType.Setter
        public Builder prefixLists(@Nullable List prefixLists) {

            this.prefixLists = prefixLists;
            return this;
        }
        public Builder prefixLists(String... prefixLists) {
            return prefixLists(List.of(prefixLists));
        }
        public SecurityRuleDestination build() {
            final var _resultValue = new SecurityRuleDestination();
            _resultValue.cidrs = cidrs;
            _resultValue.countries = countries;
            _resultValue.feeds = feeds;
            _resultValue.fqdnLists = fqdnLists;
            _resultValue.prefixLists = prefixLists;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy