com.pulumi.azurenative.network.outputs.ParameterResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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 javax.annotation.Nullable;
@CustomType
public final class ParameterResponse {
/**
* @return List of AS paths.
*
*/
private @Nullable List asPath;
/**
* @return List of BGP communities.
*
*/
private @Nullable List community;
/**
* @return List of route prefixes.
*
*/
private @Nullable List routePrefix;
private ParameterResponse() {}
/**
* @return List of AS paths.
*
*/
public List asPath() {
return this.asPath == null ? List.of() : this.asPath;
}
/**
* @return List of BGP communities.
*
*/
public List community() {
return this.community == null ? List.of() : this.community;
}
/**
* @return List of route prefixes.
*
*/
public List routePrefix() {
return this.routePrefix == null ? List.of() : this.routePrefix;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ParameterResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List asPath;
private @Nullable List community;
private @Nullable List routePrefix;
public Builder() {}
public Builder(ParameterResponse defaults) {
Objects.requireNonNull(defaults);
this.asPath = defaults.asPath;
this.community = defaults.community;
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 routePrefix(@Nullable List routePrefix) {
this.routePrefix = routePrefix;
return this;
}
public Builder routePrefix(String... routePrefix) {
return routePrefix(List.of(routePrefix));
}
public ParameterResponse build() {
final var _resultValue = new ParameterResponse();
_resultValue.asPath = asPath;
_resultValue.community = community;
_resultValue.routePrefix = routePrefix;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy