
com.pulumi.aws.networkmanager.outputs.GetDeviceResult 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.networkmanager.outputs;
import com.pulumi.aws.networkmanager.outputs.GetDeviceAwsLocation;
import com.pulumi.aws.networkmanager.outputs.GetDeviceLocation;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
@CustomType
public final class GetDeviceResult {
/**
* @return ARN of the device.
*
*/
private String arn;
/**
* @return AWS location of the device. Documented below.
*
*/
private List awsLocations;
/**
* @return Description of the device.
*
*/
private String description;
private String deviceId;
private String globalNetworkId;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return Location of the device. Documented below.
*
*/
private List locations;
/**
* @return Model of device.
*
*/
private String model;
/**
* @return Serial number of the device.
*
*/
private String serialNumber;
/**
* @return ID of the site.
*
*/
private String siteId;
/**
* @return Key-value tags for the device.
*
*/
private Map tags;
/**
* @return Type of device.
*
*/
private String type;
/**
* @return Vendor of the device.
*
*/
private String vendor;
private GetDeviceResult() {}
/**
* @return ARN of the device.
*
*/
public String arn() {
return this.arn;
}
/**
* @return AWS location of the device. Documented below.
*
*/
public List awsLocations() {
return this.awsLocations;
}
/**
* @return Description of the device.
*
*/
public String description() {
return this.description;
}
public String deviceId() {
return this.deviceId;
}
public String globalNetworkId() {
return this.globalNetworkId;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return Location of the device. Documented below.
*
*/
public List locations() {
return this.locations;
}
/**
* @return Model of device.
*
*/
public String model() {
return this.model;
}
/**
* @return Serial number of the device.
*
*/
public String serialNumber() {
return this.serialNumber;
}
/**
* @return ID of the site.
*
*/
public String siteId() {
return this.siteId;
}
/**
* @return Key-value tags for the device.
*
*/
public Map tags() {
return this.tags;
}
/**
* @return Type of device.
*
*/
public String type() {
return this.type;
}
/**
* @return Vendor of the device.
*
*/
public String vendor() {
return this.vendor;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDeviceResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String arn;
private List awsLocations;
private String description;
private String deviceId;
private String globalNetworkId;
private String id;
private List locations;
private String model;
private String serialNumber;
private String siteId;
private Map tags;
private String type;
private String vendor;
public Builder() {}
public Builder(GetDeviceResult defaults) {
Objects.requireNonNull(defaults);
this.arn = defaults.arn;
this.awsLocations = defaults.awsLocations;
this.description = defaults.description;
this.deviceId = defaults.deviceId;
this.globalNetworkId = defaults.globalNetworkId;
this.id = defaults.id;
this.locations = defaults.locations;
this.model = defaults.model;
this.serialNumber = defaults.serialNumber;
this.siteId = defaults.siteId;
this.tags = defaults.tags;
this.type = defaults.type;
this.vendor = defaults.vendor;
}
@CustomType.Setter
public Builder arn(String arn) {
if (arn == null) {
throw new MissingRequiredPropertyException("GetDeviceResult", "arn");
}
this.arn = arn;
return this;
}
@CustomType.Setter
public Builder awsLocations(List awsLocations) {
if (awsLocations == null) {
throw new MissingRequiredPropertyException("GetDeviceResult", "awsLocations");
}
this.awsLocations = awsLocations;
return this;
}
public Builder awsLocations(GetDeviceAwsLocation... awsLocations) {
return awsLocations(List.of(awsLocations));
}
@CustomType.Setter
public Builder description(String description) {
if (description == null) {
throw new MissingRequiredPropertyException("GetDeviceResult", "description");
}
this.description = description;
return this;
}
@CustomType.Setter
public Builder deviceId(String deviceId) {
if (deviceId == null) {
throw new MissingRequiredPropertyException("GetDeviceResult", "deviceId");
}
this.deviceId = deviceId;
return this;
}
@CustomType.Setter
public Builder globalNetworkId(String globalNetworkId) {
if (globalNetworkId == null) {
throw new MissingRequiredPropertyException("GetDeviceResult", "globalNetworkId");
}
this.globalNetworkId = globalNetworkId;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetDeviceResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder locations(List locations) {
if (locations == null) {
throw new MissingRequiredPropertyException("GetDeviceResult", "locations");
}
this.locations = locations;
return this;
}
public Builder locations(GetDeviceLocation... locations) {
return locations(List.of(locations));
}
@CustomType.Setter
public Builder model(String model) {
if (model == null) {
throw new MissingRequiredPropertyException("GetDeviceResult", "model");
}
this.model = model;
return this;
}
@CustomType.Setter
public Builder serialNumber(String serialNumber) {
if (serialNumber == null) {
throw new MissingRequiredPropertyException("GetDeviceResult", "serialNumber");
}
this.serialNumber = serialNumber;
return this;
}
@CustomType.Setter
public Builder siteId(String siteId) {
if (siteId == null) {
throw new MissingRequiredPropertyException("GetDeviceResult", "siteId");
}
this.siteId = siteId;
return this;
}
@CustomType.Setter
public Builder tags(Map tags) {
if (tags == null) {
throw new MissingRequiredPropertyException("GetDeviceResult", "tags");
}
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetDeviceResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder vendor(String vendor) {
if (vendor == null) {
throw new MissingRequiredPropertyException("GetDeviceResult", "vendor");
}
this.vendor = vendor;
return this;
}
public GetDeviceResult build() {
final var _resultValue = new GetDeviceResult();
_resultValue.arn = arn;
_resultValue.awsLocations = awsLocations;
_resultValue.description = description;
_resultValue.deviceId = deviceId;
_resultValue.globalNetworkId = globalNetworkId;
_resultValue.id = id;
_resultValue.locations = locations;
_resultValue.model = model;
_resultValue.serialNumber = serialNumber;
_resultValue.siteId = siteId;
_resultValue.tags = tags;
_resultValue.type = type;
_resultValue.vendor = vendor;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy