com.pulumi.aws.ec2.outputs.GetLocalGatewayVirtualInterfaceResult Maven / Gradle / Ivy
// *** 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.aws.ec2.outputs;
import com.pulumi.aws.ec2.outputs.GetLocalGatewayVirtualInterfaceFilter;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class GetLocalGatewayVirtualInterfaceResult {
private @Nullable List filters;
private String id;
/**
* @return Local address.
*
*/
private String localAddress;
/**
* @return Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the EC2 Local Gateway.
*
*/
private Integer localBgpAsn;
/**
* @return Identifier of the EC2 Local Gateway.
*
*/
private String localGatewayId;
private List localGatewayVirtualInterfaceIds;
/**
* @return Peer address.
*
*/
private String peerAddress;
/**
* @return Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the peer.
*
*/
private Integer peerBgpAsn;
private Map tags;
/**
* @return Virtual Local Area Network.
*
*/
private Integer vlan;
private GetLocalGatewayVirtualInterfaceResult() {}
public List filters() {
return this.filters == null ? List.of() : this.filters;
}
public String id() {
return this.id;
}
/**
* @return Local address.
*
*/
public String localAddress() {
return this.localAddress;
}
/**
* @return Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the EC2 Local Gateway.
*
*/
public Integer localBgpAsn() {
return this.localBgpAsn;
}
/**
* @return Identifier of the EC2 Local Gateway.
*
*/
public String localGatewayId() {
return this.localGatewayId;
}
public List localGatewayVirtualInterfaceIds() {
return this.localGatewayVirtualInterfaceIds;
}
/**
* @return Peer address.
*
*/
public String peerAddress() {
return this.peerAddress;
}
/**
* @return Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the peer.
*
*/
public Integer peerBgpAsn() {
return this.peerBgpAsn;
}
public Map tags() {
return this.tags;
}
/**
* @return Virtual Local Area Network.
*
*/
public Integer vlan() {
return this.vlan;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetLocalGatewayVirtualInterfaceResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List filters;
private String id;
private String localAddress;
private Integer localBgpAsn;
private String localGatewayId;
private List localGatewayVirtualInterfaceIds;
private String peerAddress;
private Integer peerBgpAsn;
private Map tags;
private Integer vlan;
public Builder() {}
public Builder(GetLocalGatewayVirtualInterfaceResult defaults) {
Objects.requireNonNull(defaults);
this.filters = defaults.filters;
this.id = defaults.id;
this.localAddress = defaults.localAddress;
this.localBgpAsn = defaults.localBgpAsn;
this.localGatewayId = defaults.localGatewayId;
this.localGatewayVirtualInterfaceIds = defaults.localGatewayVirtualInterfaceIds;
this.peerAddress = defaults.peerAddress;
this.peerBgpAsn = defaults.peerBgpAsn;
this.tags = defaults.tags;
this.vlan = defaults.vlan;
}
@CustomType.Setter
public Builder filters(@Nullable List filters) {
this.filters = filters;
return this;
}
public Builder filters(GetLocalGatewayVirtualInterfaceFilter... filters) {
return filters(List.of(filters));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetLocalGatewayVirtualInterfaceResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder localAddress(String localAddress) {
if (localAddress == null) {
throw new MissingRequiredPropertyException("GetLocalGatewayVirtualInterfaceResult", "localAddress");
}
this.localAddress = localAddress;
return this;
}
@CustomType.Setter
public Builder localBgpAsn(Integer localBgpAsn) {
if (localBgpAsn == null) {
throw new MissingRequiredPropertyException("GetLocalGatewayVirtualInterfaceResult", "localBgpAsn");
}
this.localBgpAsn = localBgpAsn;
return this;
}
@CustomType.Setter
public Builder localGatewayId(String localGatewayId) {
if (localGatewayId == null) {
throw new MissingRequiredPropertyException("GetLocalGatewayVirtualInterfaceResult", "localGatewayId");
}
this.localGatewayId = localGatewayId;
return this;
}
@CustomType.Setter
public Builder localGatewayVirtualInterfaceIds(List localGatewayVirtualInterfaceIds) {
if (localGatewayVirtualInterfaceIds == null) {
throw new MissingRequiredPropertyException("GetLocalGatewayVirtualInterfaceResult", "localGatewayVirtualInterfaceIds");
}
this.localGatewayVirtualInterfaceIds = localGatewayVirtualInterfaceIds;
return this;
}
public Builder localGatewayVirtualInterfaceIds(String... localGatewayVirtualInterfaceIds) {
return localGatewayVirtualInterfaceIds(List.of(localGatewayVirtualInterfaceIds));
}
@CustomType.Setter
public Builder peerAddress(String peerAddress) {
if (peerAddress == null) {
throw new MissingRequiredPropertyException("GetLocalGatewayVirtualInterfaceResult", "peerAddress");
}
this.peerAddress = peerAddress;
return this;
}
@CustomType.Setter
public Builder peerBgpAsn(Integer peerBgpAsn) {
if (peerBgpAsn == null) {
throw new MissingRequiredPropertyException("GetLocalGatewayVirtualInterfaceResult", "peerBgpAsn");
}
this.peerBgpAsn = peerBgpAsn;
return this;
}
@CustomType.Setter
public Builder tags(Map tags) {
if (tags == null) {
throw new MissingRequiredPropertyException("GetLocalGatewayVirtualInterfaceResult", "tags");
}
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder vlan(Integer vlan) {
if (vlan == null) {
throw new MissingRequiredPropertyException("GetLocalGatewayVirtualInterfaceResult", "vlan");
}
this.vlan = vlan;
return this;
}
public GetLocalGatewayVirtualInterfaceResult build() {
final var _resultValue = new GetLocalGatewayVirtualInterfaceResult();
_resultValue.filters = filters;
_resultValue.id = id;
_resultValue.localAddress = localAddress;
_resultValue.localBgpAsn = localBgpAsn;
_resultValue.localGatewayId = localGatewayId;
_resultValue.localGatewayVirtualInterfaceIds = localGatewayVirtualInterfaceIds;
_resultValue.peerAddress = peerAddress;
_resultValue.peerBgpAsn = peerBgpAsn;
_resultValue.tags = tags;
_resultValue.vlan = vlan;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy