com.pulumi.azure.network.outputs.RouteMapRuleActionParameter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
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.
// *** 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 java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class RouteMapRuleActionParameter {
/**
* @return A list of AS paths.
*
*/
private @Nullable List asPaths;
/**
* @return A list of BGP communities.
*
*/
private @Nullable List communities;
/**
* @return A list of route prefixes.
*
*/
private @Nullable List routePrefixes;
private RouteMapRuleActionParameter() {}
/**
* @return A list of AS paths.
*
*/
public List asPaths() {
return this.asPaths == null ? List.of() : this.asPaths;
}
/**
* @return A list of BGP communities.
*
*/
public List communities() {
return this.communities == null ? List.of() : this.communities;
}
/**
* @return A list of route prefixes.
*
*/
public List routePrefixes() {
return this.routePrefixes == null ? List.of() : this.routePrefixes;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RouteMapRuleActionParameter defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List asPaths;
private @Nullable List communities;
private @Nullable List routePrefixes;
public Builder() {}
public Builder(RouteMapRuleActionParameter defaults) {
Objects.requireNonNull(defaults);
this.asPaths = defaults.asPaths;
this.communities = defaults.communities;
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 routePrefixes(@Nullable List routePrefixes) {
this.routePrefixes = routePrefixes;
return this;
}
public Builder routePrefixes(String... routePrefixes) {
return routePrefixes(List.of(routePrefixes));
}
public RouteMapRuleActionParameter build() {
final var _resultValue = new RouteMapRuleActionParameter();
_resultValue.asPaths = asPaths;
_resultValue.communities = communities;
_resultValue.routePrefixes = routePrefixes;
return _resultValue;
}
}
}