com.pulumi.alicloud.vpn.outputs.GatewayVpnAttachmentBgpConfig 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 java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GatewayVpnAttachmentBgpConfig {
/**
* @return Whether to enable BGP.
*
*/
private @Nullable Boolean enable;
/**
* @return The ASN on the Alibaba Cloud side.
*
*/
private @Nullable Integer localAsn;
/**
* @return The BGP IP address on the Alibaba Cloud side.
*
*/
private @Nullable String localBgpIp;
/**
* @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 @Nullable String tunnelCidr;
private GatewayVpnAttachmentBgpConfig() {}
/**
* @return Whether to enable BGP.
*
*/
public Optional enable() {
return Optional.ofNullable(this.enable);
}
/**
* @return The ASN on the Alibaba Cloud side.
*
*/
public Optional localAsn() {
return Optional.ofNullable(this.localAsn);
}
/**
* @return The BGP IP address on the Alibaba Cloud side.
*
*/
public Optional localBgpIp() {
return Optional.ofNullable(this.localBgpIp);
}
/**
* @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 Optional tunnelCidr() {
return Optional.ofNullable(this.tunnelCidr);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GatewayVpnAttachmentBgpConfig defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean enable;
private @Nullable Integer localAsn;
private @Nullable String localBgpIp;
private @Nullable String tunnelCidr;
public Builder() {}
public Builder(GatewayVpnAttachmentBgpConfig defaults) {
Objects.requireNonNull(defaults);
this.enable = defaults.enable;
this.localAsn = defaults.localAsn;
this.localBgpIp = defaults.localBgpIp;
this.tunnelCidr = defaults.tunnelCidr;
}
@CustomType.Setter
public Builder enable(@Nullable Boolean enable) {
this.enable = enable;
return this;
}
@CustomType.Setter
public Builder localAsn(@Nullable Integer localAsn) {
this.localAsn = localAsn;
return this;
}
@CustomType.Setter
public Builder localBgpIp(@Nullable String localBgpIp) {
this.localBgpIp = localBgpIp;
return this;
}
@CustomType.Setter
public Builder tunnelCidr(@Nullable String tunnelCidr) {
this.tunnelCidr = tunnelCidr;
return this;
}
public GatewayVpnAttachmentBgpConfig build() {
final var _resultValue = new GatewayVpnAttachmentBgpConfig();
_resultValue.enable = enable;
_resultValue.localAsn = localAsn;
_resultValue.localBgpIp = localBgpIp;
_resultValue.tunnelCidr = tunnelCidr;
return _resultValue;
}
}
}