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

com.pulumi.azurenative.network.outputs.CriterionResponse Maven / Gradle / Ivy

There is a newer version: 2.78.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 java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class CriterionResponse {
    /**
     * @return List of AS paths which this criteria matches.
     * 
     */
    private @Nullable List asPath;
    /**
     * @return List of BGP communities which this criteria matches.
     * 
     */
    private @Nullable List community;
    /**
     * @return Match condition to apply RouteMap rules.
     * 
     */
    private @Nullable String matchCondition;
    /**
     * @return List of route prefixes which this criteria matches.
     * 
     */
    private @Nullable List routePrefix;

    private CriterionResponse() {}
    /**
     * @return List of AS paths which this criteria matches.
     * 
     */
    public List asPath() {
        return this.asPath == null ? List.of() : this.asPath;
    }
    /**
     * @return List of BGP communities which this criteria matches.
     * 
     */
    public List community() {
        return this.community == null ? List.of() : this.community;
    }
    /**
     * @return Match condition to apply RouteMap rules.
     * 
     */
    public Optional matchCondition() {
        return Optional.ofNullable(this.matchCondition);
    }
    /**
     * @return List of route prefixes which this criteria matches.
     * 
     */
    public List routePrefix() {
        return this.routePrefix == null ? List.of() : this.routePrefix;
    }

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

    public static Builder builder(CriterionResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List asPath;
        private @Nullable List community;
        private @Nullable String matchCondition;
        private @Nullable List routePrefix;
        public Builder() {}
        public Builder(CriterionResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.asPath = defaults.asPath;
    	      this.community = defaults.community;
    	      this.matchCondition = defaults.matchCondition;
    	      this.routePrefix = defaults.routePrefix;
        }

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

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

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

            this.matchCondition = matchCondition;
            return this;
        }
        @CustomType.Setter
        public Builder routePrefix(@Nullable List routePrefix) {

            this.routePrefix = routePrefix;
            return this;
        }
        public Builder routePrefix(String... routePrefix) {
            return routePrefix(List.of(routePrefix));
        }
        public CriterionResponse build() {
            final var _resultValue = new CriterionResponse();
            _resultValue.asPath = asPath;
            _resultValue.community = community;
            _resultValue.matchCondition = matchCondition;
            _resultValue.routePrefix = routePrefix;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy