![JAR search and dependency download from the Maven repository](/logo.png)
com.equinix.pulumi.metal.outputs.GetDeviceBgpNeighborsResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of equinix Show documentation
Show all versions of equinix Show documentation
A Pulumi package for creating and managing equinix cloud 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.equinix.pulumi.metal.outputs;
import com.equinix.pulumi.metal.outputs.GetDeviceBgpNeighborsBgpNeighbor;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetDeviceBgpNeighborsResult {
/**
* @return array of BGP neighbor records with attributes:
*
*/
private List bgpNeighbors;
private String deviceId;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private GetDeviceBgpNeighborsResult() {}
/**
* @return array of BGP neighbor records with attributes:
*
*/
public List bgpNeighbors() {
return this.bgpNeighbors;
}
public String deviceId() {
return this.deviceId;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDeviceBgpNeighborsResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List bgpNeighbors;
private String deviceId;
private String id;
public Builder() {}
public Builder(GetDeviceBgpNeighborsResult defaults) {
Objects.requireNonNull(defaults);
this.bgpNeighbors = defaults.bgpNeighbors;
this.deviceId = defaults.deviceId;
this.id = defaults.id;
}
@CustomType.Setter
public Builder bgpNeighbors(List bgpNeighbors) {
if (bgpNeighbors == null) {
throw new MissingRequiredPropertyException("GetDeviceBgpNeighborsResult", "bgpNeighbors");
}
this.bgpNeighbors = bgpNeighbors;
return this;
}
public Builder bgpNeighbors(GetDeviceBgpNeighborsBgpNeighbor... bgpNeighbors) {
return bgpNeighbors(List.of(bgpNeighbors));
}
@CustomType.Setter
public Builder deviceId(String deviceId) {
if (deviceId == null) {
throw new MissingRequiredPropertyException("GetDeviceBgpNeighborsResult", "deviceId");
}
this.deviceId = deviceId;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetDeviceBgpNeighborsResult", "id");
}
this.id = id;
return this;
}
public GetDeviceBgpNeighborsResult build() {
final var _resultValue = new GetDeviceBgpNeighborsResult();
_resultValue.bgpNeighbors = bgpNeighbors;
_resultValue.deviceId = deviceId;
_resultValue.id = id;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy