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

com.pulumi.azurenative.cloudngfw.outputs.SourceAddrResponse Maven / Gradle / Ivy

There is a newer version: 2.82.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.cloudngfw.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 SourceAddrResponse {
    /**
     * @return special value 'any'
     * 
     */
    private @Nullable List cidrs;
    /**
     * @return list of countries
     * 
     */
    private @Nullable List countries;
    /**
     * @return list of feeds
     * 
     */
    private @Nullable List feeds;
    /**
     * @return prefix list
     * 
     */
    private @Nullable List prefixLists;

    private SourceAddrResponse() {}
    /**
     * @return special value 'any'
     * 
     */
    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 prefix list
     * 
     */
    public List prefixLists() {
        return this.prefixLists == null ? List.of() : this.prefixLists;
    }

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

    public static Builder builder(SourceAddrResponse 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 prefixLists;
        public Builder() {}
        public Builder(SourceAddrResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.cidrs = defaults.cidrs;
    	      this.countries = defaults.countries;
    	      this.feeds = defaults.feeds;
    	      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 prefixLists(@Nullable List prefixLists) {

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy