com.pulumi.alicloud.vpn.outputs.GetGatewayVcoRoutesRoute Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud 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.alicloud.vpn.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetGatewayVcoRoutesRoute {
/**
* @return List of autonomous system numbers through which BGP routing entries pass.
*
*/
private String asPath;
/**
* @return The creation time of the VPN destination route.
*
*/
private String createTime;
/**
* @return The ID of the Vpn Gateway Vco Routes.
*
*/
private String id;
/**
* @return The next hop of the destination route.
*
*/
private String nextHop;
/**
* @return The destination network segment of the destination route.
*
*/
private String routeDest;
/**
* @return The source CIDR block of the destination route.
*
*/
private String source;
/**
* @return The status of the vpn route entry.
*
*/
private String status;
/**
* @return The id of the vpn connection.
*
*/
private String vpnConnectionId;
/**
* @return The weight value of the destination route.
*
*/
private Integer weight;
private GetGatewayVcoRoutesRoute() {}
/**
* @return List of autonomous system numbers through which BGP routing entries pass.
*
*/
public String asPath() {
return this.asPath;
}
/**
* @return The creation time of the VPN destination route.
*
*/
public String createTime() {
return this.createTime;
}
/**
* @return The ID of the Vpn Gateway Vco Routes.
*
*/
public String id() {
return this.id;
}
/**
* @return The next hop of the destination route.
*
*/
public String nextHop() {
return this.nextHop;
}
/**
* @return The destination network segment of the destination route.
*
*/
public String routeDest() {
return this.routeDest;
}
/**
* @return The source CIDR block of the destination route.
*
*/
public String source() {
return this.source;
}
/**
* @return The status of the vpn route entry.
*
*/
public String status() {
return this.status;
}
/**
* @return The id of the vpn connection.
*
*/
public String vpnConnectionId() {
return this.vpnConnectionId;
}
/**
* @return The weight value of the destination route.
*
*/
public Integer weight() {
return this.weight;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetGatewayVcoRoutesRoute defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String asPath;
private String createTime;
private String id;
private String nextHop;
private String routeDest;
private String source;
private String status;
private String vpnConnectionId;
private Integer weight;
public Builder() {}
public Builder(GetGatewayVcoRoutesRoute defaults) {
Objects.requireNonNull(defaults);
this.asPath = defaults.asPath;
this.createTime = defaults.createTime;
this.id = defaults.id;
this.nextHop = defaults.nextHop;
this.routeDest = defaults.routeDest;
this.source = defaults.source;
this.status = defaults.status;
this.vpnConnectionId = defaults.vpnConnectionId;
this.weight = defaults.weight;
}
@CustomType.Setter
public Builder asPath(String asPath) {
if (asPath == null) {
throw new MissingRequiredPropertyException("GetGatewayVcoRoutesRoute", "asPath");
}
this.asPath = asPath;
return this;
}
@CustomType.Setter
public Builder createTime(String createTime) {
if (createTime == null) {
throw new MissingRequiredPropertyException("GetGatewayVcoRoutesRoute", "createTime");
}
this.createTime = createTime;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetGatewayVcoRoutesRoute", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder nextHop(String nextHop) {
if (nextHop == null) {
throw new MissingRequiredPropertyException("GetGatewayVcoRoutesRoute", "nextHop");
}
this.nextHop = nextHop;
return this;
}
@CustomType.Setter
public Builder routeDest(String routeDest) {
if (routeDest == null) {
throw new MissingRequiredPropertyException("GetGatewayVcoRoutesRoute", "routeDest");
}
this.routeDest = routeDest;
return this;
}
@CustomType.Setter
public Builder source(String source) {
if (source == null) {
throw new MissingRequiredPropertyException("GetGatewayVcoRoutesRoute", "source");
}
this.source = source;
return this;
}
@CustomType.Setter
public Builder status(String status) {
if (status == null) {
throw new MissingRequiredPropertyException("GetGatewayVcoRoutesRoute", "status");
}
this.status = status;
return this;
}
@CustomType.Setter
public Builder vpnConnectionId(String vpnConnectionId) {
if (vpnConnectionId == null) {
throw new MissingRequiredPropertyException("GetGatewayVcoRoutesRoute", "vpnConnectionId");
}
this.vpnConnectionId = vpnConnectionId;
return this;
}
@CustomType.Setter
public Builder weight(Integer weight) {
if (weight == null) {
throw new MissingRequiredPropertyException("GetGatewayVcoRoutesRoute", "weight");
}
this.weight = weight;
return this;
}
public GetGatewayVcoRoutesRoute build() {
final var _resultValue = new GetGatewayVcoRoutesRoute();
_resultValue.asPath = asPath;
_resultValue.createTime = createTime;
_resultValue.id = id;
_resultValue.nextHop = nextHop;
_resultValue.routeDest = routeDest;
_resultValue.source = source;
_resultValue.status = status;
_resultValue.vpnConnectionId = vpnConnectionId;
_resultValue.weight = weight;
return _resultValue;
}
}
}