com.pulumi.alicloud.vpn.outputs.GetGatewayVpnAttachmentsAttachmentBgpConfig 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.String;
import java.util.Objects;
@CustomType
public final class GetGatewayVpnAttachmentsAttachmentBgpConfig {
/**
* @return The ASN on the Alibaba Cloud side.
*
*/
private String localAsn;
/**
* @return The BGP IP address on the Alibaba Cloud side.
*
*/
private String localBgpIp;
/**
* @return The negotiation status of the BGP routing protocol.
*
*/
private String status;
/**
* @return The CIDR block of the IPsec tunnel. The CIDR block belongs to 169.254.0.0/16. The mask of the CIDR block is 30 bits in length.
*
*/
private String tunnelCidr;
private GetGatewayVpnAttachmentsAttachmentBgpConfig() {}
/**
* @return The ASN on the Alibaba Cloud side.
*
*/
public String localAsn() {
return this.localAsn;
}
/**
* @return The BGP IP address on the Alibaba Cloud side.
*
*/
public String localBgpIp() {
return this.localBgpIp;
}
/**
* @return The negotiation status of the BGP routing protocol.
*
*/
public String status() {
return this.status;
}
/**
* @return The CIDR block of the IPsec tunnel. The CIDR block belongs to 169.254.0.0/16. The mask of the CIDR block is 30 bits in length.
*
*/
public String tunnelCidr() {
return this.tunnelCidr;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetGatewayVpnAttachmentsAttachmentBgpConfig defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String localAsn;
private String localBgpIp;
private String status;
private String tunnelCidr;
public Builder() {}
public Builder(GetGatewayVpnAttachmentsAttachmentBgpConfig defaults) {
Objects.requireNonNull(defaults);
this.localAsn = defaults.localAsn;
this.localBgpIp = defaults.localBgpIp;
this.status = defaults.status;
this.tunnelCidr = defaults.tunnelCidr;
}
@CustomType.Setter
public Builder localAsn(String localAsn) {
if (localAsn == null) {
throw new MissingRequiredPropertyException("GetGatewayVpnAttachmentsAttachmentBgpConfig", "localAsn");
}
this.localAsn = localAsn;
return this;
}
@CustomType.Setter
public Builder localBgpIp(String localBgpIp) {
if (localBgpIp == null) {
throw new MissingRequiredPropertyException("GetGatewayVpnAttachmentsAttachmentBgpConfig", "localBgpIp");
}
this.localBgpIp = localBgpIp;
return this;
}
@CustomType.Setter
public Builder status(String status) {
if (status == null) {
throw new MissingRequiredPropertyException("GetGatewayVpnAttachmentsAttachmentBgpConfig", "status");
}
this.status = status;
return this;
}
@CustomType.Setter
public Builder tunnelCidr(String tunnelCidr) {
if (tunnelCidr == null) {
throw new MissingRequiredPropertyException("GetGatewayVpnAttachmentsAttachmentBgpConfig", "tunnelCidr");
}
this.tunnelCidr = tunnelCidr;
return this;
}
public GetGatewayVpnAttachmentsAttachmentBgpConfig build() {
final var _resultValue = new GetGatewayVpnAttachmentsAttachmentBgpConfig();
_resultValue.localAsn = localAsn;
_resultValue.localBgpIp = localBgpIp;
_resultValue.status = status;
_resultValue.tunnelCidr = tunnelCidr;
return _resultValue;
}
}
}