com.pulumi.alicloud.vpc.outputs.GetBgpNetworksNetwork 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.vpc.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetBgpNetworksNetwork {
/**
* @return Advertised BGP networks.
*
*/
private String dstCidrBlock;
/**
* @return The ID of the Bgp Network. The value formats as `<router_id>:<dst_cidr_block>`.
*
*/
private String id;
/**
* @return The ID of the vRouter.
*
*/
private String routerId;
/**
* @return The state of the advertised BGP network.
*
*/
private String status;
private GetBgpNetworksNetwork() {}
/**
* @return Advertised BGP networks.
*
*/
public String dstCidrBlock() {
return this.dstCidrBlock;
}
/**
* @return The ID of the Bgp Network. The value formats as `<router_id>:<dst_cidr_block>`.
*
*/
public String id() {
return this.id;
}
/**
* @return The ID of the vRouter.
*
*/
public String routerId() {
return this.routerId;
}
/**
* @return The state of the advertised BGP network.
*
*/
public String status() {
return this.status;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetBgpNetworksNetwork defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String dstCidrBlock;
private String id;
private String routerId;
private String status;
public Builder() {}
public Builder(GetBgpNetworksNetwork defaults) {
Objects.requireNonNull(defaults);
this.dstCidrBlock = defaults.dstCidrBlock;
this.id = defaults.id;
this.routerId = defaults.routerId;
this.status = defaults.status;
}
@CustomType.Setter
public Builder dstCidrBlock(String dstCidrBlock) {
if (dstCidrBlock == null) {
throw new MissingRequiredPropertyException("GetBgpNetworksNetwork", "dstCidrBlock");
}
this.dstCidrBlock = dstCidrBlock;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetBgpNetworksNetwork", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder routerId(String routerId) {
if (routerId == null) {
throw new MissingRequiredPropertyException("GetBgpNetworksNetwork", "routerId");
}
this.routerId = routerId;
return this;
}
@CustomType.Setter
public Builder status(String status) {
if (status == null) {
throw new MissingRequiredPropertyException("GetBgpNetworksNetwork", "status");
}
this.status = status;
return this;
}
public GetBgpNetworksNetwork build() {
final var _resultValue = new GetBgpNetworksNetwork();
_resultValue.dstCidrBlock = dstCidrBlock;
_resultValue.id = id;
_resultValue.routerId = routerId;
_resultValue.status = status;
return _resultValue;
}
}
}