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

com.pulumi.azurenative.network.outputs.TrafficSelectorPolicyResponse 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.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class TrafficSelectorPolicyResponse {
    /**
     * @return A collection of local address spaces in CIDR format.
     * 
     */
    private List localAddressRanges;
    /**
     * @return A collection of remote address spaces in CIDR format.
     * 
     */
    private List remoteAddressRanges;

    private TrafficSelectorPolicyResponse() {}
    /**
     * @return A collection of local address spaces in CIDR format.
     * 
     */
    public List localAddressRanges() {
        return this.localAddressRanges;
    }
    /**
     * @return A collection of remote address spaces in CIDR format.
     * 
     */
    public List remoteAddressRanges() {
        return this.remoteAddressRanges;
    }

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

    public static Builder builder(TrafficSelectorPolicyResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List localAddressRanges;
        private List remoteAddressRanges;
        public Builder() {}
        public Builder(TrafficSelectorPolicyResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.localAddressRanges = defaults.localAddressRanges;
    	      this.remoteAddressRanges = defaults.remoteAddressRanges;
        }

        @CustomType.Setter
        public Builder localAddressRanges(List localAddressRanges) {
            if (localAddressRanges == null) {
              throw new MissingRequiredPropertyException("TrafficSelectorPolicyResponse", "localAddressRanges");
            }
            this.localAddressRanges = localAddressRanges;
            return this;
        }
        public Builder localAddressRanges(String... localAddressRanges) {
            return localAddressRanges(List.of(localAddressRanges));
        }
        @CustomType.Setter
        public Builder remoteAddressRanges(List remoteAddressRanges) {
            if (remoteAddressRanges == null) {
              throw new MissingRequiredPropertyException("TrafficSelectorPolicyResponse", "remoteAddressRanges");
            }
            this.remoteAddressRanges = remoteAddressRanges;
            return this;
        }
        public Builder remoteAddressRanges(String... remoteAddressRanges) {
            return remoteAddressRanges(List.of(remoteAddressRanges));
        }
        public TrafficSelectorPolicyResponse build() {
            final var _resultValue = new TrafficSelectorPolicyResponse();
            _resultValue.localAddressRanges = localAddressRanges;
            _resultValue.remoteAddressRanges = remoteAddressRanges;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy