com.equinix.pulumi.metal.outputs.GetDevicePort 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.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetDevicePort {
/**
* @return Whether this port is part of a bond in bonded network setup
*
*/
private Boolean bonded;
/**
* @return The ID of the device
*
*/
private String id;
/**
* @return MAC address assigned to the port
*
*/
private String mac;
/**
* @return Name of the port (e.g. eth0, or bond0)
*
*/
private String name;
/**
* @return Type of the port (e.g. NetworkPort or NetworkBondPort)
*
*/
private String type;
private GetDevicePort() {}
/**
* @return Whether this port is part of a bond in bonded network setup
*
*/
public Boolean bonded() {
return this.bonded;
}
/**
* @return The ID of the device
*
*/
public String id() {
return this.id;
}
/**
* @return MAC address assigned to the port
*
*/
public String mac() {
return this.mac;
}
/**
* @return Name of the port (e.g. eth0, or bond0)
*
*/
public String name() {
return this.name;
}
/**
* @return Type of the port (e.g. NetworkPort or NetworkBondPort)
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDevicePort defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Boolean bonded;
private String id;
private String mac;
private String name;
private String type;
public Builder() {}
public Builder(GetDevicePort defaults) {
Objects.requireNonNull(defaults);
this.bonded = defaults.bonded;
this.id = defaults.id;
this.mac = defaults.mac;
this.name = defaults.name;
this.type = defaults.type;
}
@CustomType.Setter
public Builder bonded(Boolean bonded) {
if (bonded == null) {
throw new MissingRequiredPropertyException("GetDevicePort", "bonded");
}
this.bonded = bonded;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetDevicePort", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder mac(String mac) {
if (mac == null) {
throw new MissingRequiredPropertyException("GetDevicePort", "mac");
}
this.mac = mac;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetDevicePort", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetDevicePort", "type");
}
this.type = type;
return this;
}
public GetDevicePort build() {
final var _resultValue = new GetDevicePort();
_resultValue.bonded = bonded;
_resultValue.id = id;
_resultValue.mac = mac;
_resultValue.name = name;
_resultValue.type = type;
return _resultValue;
}
}
}