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

com.pulumi.azure.network.outputs.RouteMapRuleMatchCriterion Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.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;
import javax.annotation.Nullable;

@CustomType
public final class RouteMapRuleMatchCriterion {
    /**
     * @return A list of AS paths which this criterion matches.
     * 
     */
    private @Nullable List asPaths;
    /**
     * @return A list of BGP communities which this criterion matches.
     * 
     */
    private @Nullable List communities;
    /**
     * @return The match condition to apply the rule of the Route Map. Possible values are `Contains`, `Equals`, `NotContains`, `NotEquals` and `Unknown`.
     * 
     */
    private String matchCondition;
    /**
     * @return A list of route prefixes which this criterion matches.
     * 
     */
    private @Nullable List routePrefixes;

    private RouteMapRuleMatchCriterion() {}
    /**
     * @return A list of AS paths which this criterion matches.
     * 
     */
    public List asPaths() {
        return this.asPaths == null ? List.of() : this.asPaths;
    }
    /**
     * @return A list of BGP communities which this criterion matches.
     * 
     */
    public List communities() {
        return this.communities == null ? List.of() : this.communities;
    }
    /**
     * @return The match condition to apply the rule of the Route Map. Possible values are `Contains`, `Equals`, `NotContains`, `NotEquals` and `Unknown`.
     * 
     */
    public String matchCondition() {
        return this.matchCondition;
    }
    /**
     * @return A list of route prefixes which this criterion matches.
     * 
     */
    public List routePrefixes() {
        return this.routePrefixes == null ? List.of() : this.routePrefixes;
    }

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

    public static Builder builder(RouteMapRuleMatchCriterion defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List asPaths;
        private @Nullable List communities;
        private String matchCondition;
        private @Nullable List routePrefixes;
        public Builder() {}
        public Builder(RouteMapRuleMatchCriterion defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.asPaths = defaults.asPaths;
    	      this.communities = defaults.communities;
    	      this.matchCondition = defaults.matchCondition;
    	      this.routePrefixes = defaults.routePrefixes;
        }

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

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

            this.communities = communities;
            return this;
        }
        public Builder communities(String... communities) {
            return communities(List.of(communities));
        }
        @CustomType.Setter
        public Builder matchCondition(String matchCondition) {
            if (matchCondition == null) {
              throw new MissingRequiredPropertyException("RouteMapRuleMatchCriterion", "matchCondition");
            }
            this.matchCondition = matchCondition;
            return this;
        }
        @CustomType.Setter
        public Builder routePrefixes(@Nullable List routePrefixes) {

            this.routePrefixes = routePrefixes;
            return this;
        }
        public Builder routePrefixes(String... routePrefixes) {
            return routePrefixes(List.of(routePrefixes));
        }
        public RouteMapRuleMatchCriterion build() {
            final var _resultValue = new RouteMapRuleMatchCriterion();
            _resultValue.asPaths = asPaths;
            _resultValue.communities = communities;
            _resultValue.matchCondition = matchCondition;
            _resultValue.routePrefixes = routePrefixes;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy