com.pulumi.azurenative.network.outputs.VnetRouteResponse 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.azurenative.network.outputs.StaticRouteResponse;
import com.pulumi.azurenative.network.outputs.StaticRoutesConfigResponse;
import com.pulumi.azurenative.network.outputs.SubResourceResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class VnetRouteResponse {
/**
* @return The list of references to HubBgpConnection objects.
*
*/
private List bgpConnections;
/**
* @return List of all Static Routes.
*
*/
private @Nullable List staticRoutes;
/**
* @return Configuration for static routes on this HubVnetConnection.
*
*/
private @Nullable StaticRoutesConfigResponse staticRoutesConfig;
private VnetRouteResponse() {}
/**
* @return The list of references to HubBgpConnection objects.
*
*/
public List bgpConnections() {
return this.bgpConnections;
}
/**
* @return List of all Static Routes.
*
*/
public List staticRoutes() {
return this.staticRoutes == null ? List.of() : this.staticRoutes;
}
/**
* @return Configuration for static routes on this HubVnetConnection.
*
*/
public Optional staticRoutesConfig() {
return Optional.ofNullable(this.staticRoutesConfig);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VnetRouteResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List bgpConnections;
private @Nullable List staticRoutes;
private @Nullable StaticRoutesConfigResponse staticRoutesConfig;
public Builder() {}
public Builder(VnetRouteResponse defaults) {
Objects.requireNonNull(defaults);
this.bgpConnections = defaults.bgpConnections;
this.staticRoutes = defaults.staticRoutes;
this.staticRoutesConfig = defaults.staticRoutesConfig;
}
@CustomType.Setter
public Builder bgpConnections(List bgpConnections) {
if (bgpConnections == null) {
throw new MissingRequiredPropertyException("VnetRouteResponse", "bgpConnections");
}
this.bgpConnections = bgpConnections;
return this;
}
public Builder bgpConnections(SubResourceResponse... bgpConnections) {
return bgpConnections(List.of(bgpConnections));
}
@CustomType.Setter
public Builder staticRoutes(@Nullable List staticRoutes) {
this.staticRoutes = staticRoutes;
return this;
}
public Builder staticRoutes(StaticRouteResponse... staticRoutes) {
return staticRoutes(List.of(staticRoutes));
}
@CustomType.Setter
public Builder staticRoutesConfig(@Nullable StaticRoutesConfigResponse staticRoutesConfig) {
this.staticRoutesConfig = staticRoutesConfig;
return this;
}
public VnetRouteResponse build() {
final var _resultValue = new VnetRouteResponse();
_resultValue.bgpConnections = bgpConnections;
_resultValue.staticRoutes = staticRoutes;
_resultValue.staticRoutesConfig = staticRoutesConfig;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy