
com.pulumi.azurenative.deviceregistry.outputs.GetDiscoveredAssetResult 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.azurenative.deviceregistry.outputs;
import com.pulumi.azurenative.deviceregistry.outputs.DiscoveredDatasetResponse;
import com.pulumi.azurenative.deviceregistry.outputs.DiscoveredEventResponse;
import com.pulumi.azurenative.deviceregistry.outputs.ExtendedLocationResponse;
import com.pulumi.azurenative.deviceregistry.outputs.SystemDataResponse;
import com.pulumi.azurenative.deviceregistry.outputs.TopicResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetDiscoveredAssetResult {
/**
* @return A reference to the asset endpoint profile (connection information) used by brokers to connect to an endpoint that provides data points for this asset. Must provide asset endpoint profile name.
*
*/
private String assetEndpointProfileRef;
/**
* @return Array of datasets that are part of the asset. Each dataset spec describes the data points that make up the set.
*
*/
private @Nullable List datasets;
/**
* @return Stringified JSON that contains connector-specific default configuration for all datasets. Each dataset can have its own configuration that overrides the default settings here.
*
*/
private @Nullable String defaultDatasetsConfiguration;
/**
* @return Stringified JSON that contains connector-specific default configuration for all events. Each event can have its own configuration that overrides the default settings here.
*
*/
private @Nullable String defaultEventsConfiguration;
/**
* @return Object that describes the default topic information for the asset.
*
*/
private @Nullable TopicResponse defaultTopic;
/**
* @return Identifier used to detect changes in the asset.
*
*/
private String discoveryId;
/**
* @return Reference to the documentation.
*
*/
private @Nullable String documentationUri;
/**
* @return Array of events that are part of the asset. Each event can have per-event configuration.
*
*/
private @Nullable List events;
/**
* @return The extended location.
*
*/
private ExtendedLocationResponse extendedLocation;
/**
* @return Revision number of the hardware.
*
*/
private @Nullable String hardwareRevision;
/**
* @return Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
*
*/
private String id;
/**
* @return The geo-location where the resource lives
*
*/
private String location;
/**
* @return Asset manufacturer name.
*
*/
private @Nullable String manufacturer;
/**
* @return Asset manufacturer URI.
*
*/
private @Nullable String manufacturerUri;
/**
* @return Asset model name.
*
*/
private @Nullable String model;
/**
* @return The name of the resource
*
*/
private String name;
/**
* @return Asset product code.
*
*/
private @Nullable String productCode;
/**
* @return Provisioning state of the resource.
*
*/
private String provisioningState;
/**
* @return Asset serial number.
*
*/
private @Nullable String serialNumber;
/**
* @return Revision number of the software.
*
*/
private @Nullable String softwareRevision;
/**
* @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
private SystemDataResponse systemData;
/**
* @return Resource tags.
*
*/
private @Nullable Map tags;
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
private String type;
/**
* @return An integer that is incremented each time the resource is modified.
*
*/
private Double version;
private GetDiscoveredAssetResult() {}
/**
* @return A reference to the asset endpoint profile (connection information) used by brokers to connect to an endpoint that provides data points for this asset. Must provide asset endpoint profile name.
*
*/
public String assetEndpointProfileRef() {
return this.assetEndpointProfileRef;
}
/**
* @return Array of datasets that are part of the asset. Each dataset spec describes the data points that make up the set.
*
*/
public List datasets() {
return this.datasets == null ? List.of() : this.datasets;
}
/**
* @return Stringified JSON that contains connector-specific default configuration for all datasets. Each dataset can have its own configuration that overrides the default settings here.
*
*/
public Optional defaultDatasetsConfiguration() {
return Optional.ofNullable(this.defaultDatasetsConfiguration);
}
/**
* @return Stringified JSON that contains connector-specific default configuration for all events. Each event can have its own configuration that overrides the default settings here.
*
*/
public Optional defaultEventsConfiguration() {
return Optional.ofNullable(this.defaultEventsConfiguration);
}
/**
* @return Object that describes the default topic information for the asset.
*
*/
public Optional defaultTopic() {
return Optional.ofNullable(this.defaultTopic);
}
/**
* @return Identifier used to detect changes in the asset.
*
*/
public String discoveryId() {
return this.discoveryId;
}
/**
* @return Reference to the documentation.
*
*/
public Optional documentationUri() {
return Optional.ofNullable(this.documentationUri);
}
/**
* @return Array of events that are part of the asset. Each event can have per-event configuration.
*
*/
public List events() {
return this.events == null ? List.of() : this.events;
}
/**
* @return The extended location.
*
*/
public ExtendedLocationResponse extendedLocation() {
return this.extendedLocation;
}
/**
* @return Revision number of the hardware.
*
*/
public Optional hardwareRevision() {
return Optional.ofNullable(this.hardwareRevision);
}
/**
* @return Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
*
*/
public String id() {
return this.id;
}
/**
* @return The geo-location where the resource lives
*
*/
public String location() {
return this.location;
}
/**
* @return Asset manufacturer name.
*
*/
public Optional manufacturer() {
return Optional.ofNullable(this.manufacturer);
}
/**
* @return Asset manufacturer URI.
*
*/
public Optional manufacturerUri() {
return Optional.ofNullable(this.manufacturerUri);
}
/**
* @return Asset model name.
*
*/
public Optional model() {
return Optional.ofNullable(this.model);
}
/**
* @return The name of the resource
*
*/
public String name() {
return this.name;
}
/**
* @return Asset product code.
*
*/
public Optional productCode() {
return Optional.ofNullable(this.productCode);
}
/**
* @return Provisioning state of the resource.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return Asset serial number.
*
*/
public Optional serialNumber() {
return Optional.ofNullable(this.serialNumber);
}
/**
* @return Revision number of the software.
*
*/
public Optional softwareRevision() {
return Optional.ofNullable(this.softwareRevision);
}
/**
* @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return Resource tags.
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
public String type() {
return this.type;
}
/**
* @return An integer that is incremented each time the resource is modified.
*
*/
public Double version() {
return this.version;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDiscoveredAssetResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String assetEndpointProfileRef;
private @Nullable List datasets;
private @Nullable String defaultDatasetsConfiguration;
private @Nullable String defaultEventsConfiguration;
private @Nullable TopicResponse defaultTopic;
private String discoveryId;
private @Nullable String documentationUri;
private @Nullable List events;
private ExtendedLocationResponse extendedLocation;
private @Nullable String hardwareRevision;
private String id;
private String location;
private @Nullable String manufacturer;
private @Nullable String manufacturerUri;
private @Nullable String model;
private String name;
private @Nullable String productCode;
private String provisioningState;
private @Nullable String serialNumber;
private @Nullable String softwareRevision;
private SystemDataResponse systemData;
private @Nullable Map tags;
private String type;
private Double version;
public Builder() {}
public Builder(GetDiscoveredAssetResult defaults) {
Objects.requireNonNull(defaults);
this.assetEndpointProfileRef = defaults.assetEndpointProfileRef;
this.datasets = defaults.datasets;
this.defaultDatasetsConfiguration = defaults.defaultDatasetsConfiguration;
this.defaultEventsConfiguration = defaults.defaultEventsConfiguration;
this.defaultTopic = defaults.defaultTopic;
this.discoveryId = defaults.discoveryId;
this.documentationUri = defaults.documentationUri;
this.events = defaults.events;
this.extendedLocation = defaults.extendedLocation;
this.hardwareRevision = defaults.hardwareRevision;
this.id = defaults.id;
this.location = defaults.location;
this.manufacturer = defaults.manufacturer;
this.manufacturerUri = defaults.manufacturerUri;
this.model = defaults.model;
this.name = defaults.name;
this.productCode = defaults.productCode;
this.provisioningState = defaults.provisioningState;
this.serialNumber = defaults.serialNumber;
this.softwareRevision = defaults.softwareRevision;
this.systemData = defaults.systemData;
this.tags = defaults.tags;
this.type = defaults.type;
this.version = defaults.version;
}
@CustomType.Setter
public Builder assetEndpointProfileRef(String assetEndpointProfileRef) {
if (assetEndpointProfileRef == null) {
throw new MissingRequiredPropertyException("GetDiscoveredAssetResult", "assetEndpointProfileRef");
}
this.assetEndpointProfileRef = assetEndpointProfileRef;
return this;
}
@CustomType.Setter
public Builder datasets(@Nullable List datasets) {
this.datasets = datasets;
return this;
}
public Builder datasets(DiscoveredDatasetResponse... datasets) {
return datasets(List.of(datasets));
}
@CustomType.Setter
public Builder defaultDatasetsConfiguration(@Nullable String defaultDatasetsConfiguration) {
this.defaultDatasetsConfiguration = defaultDatasetsConfiguration;
return this;
}
@CustomType.Setter
public Builder defaultEventsConfiguration(@Nullable String defaultEventsConfiguration) {
this.defaultEventsConfiguration = defaultEventsConfiguration;
return this;
}
@CustomType.Setter
public Builder defaultTopic(@Nullable TopicResponse defaultTopic) {
this.defaultTopic = defaultTopic;
return this;
}
@CustomType.Setter
public Builder discoveryId(String discoveryId) {
if (discoveryId == null) {
throw new MissingRequiredPropertyException("GetDiscoveredAssetResult", "discoveryId");
}
this.discoveryId = discoveryId;
return this;
}
@CustomType.Setter
public Builder documentationUri(@Nullable String documentationUri) {
this.documentationUri = documentationUri;
return this;
}
@CustomType.Setter
public Builder events(@Nullable List events) {
this.events = events;
return this;
}
public Builder events(DiscoveredEventResponse... events) {
return events(List.of(events));
}
@CustomType.Setter
public Builder extendedLocation(ExtendedLocationResponse extendedLocation) {
if (extendedLocation == null) {
throw new MissingRequiredPropertyException("GetDiscoveredAssetResult", "extendedLocation");
}
this.extendedLocation = extendedLocation;
return this;
}
@CustomType.Setter
public Builder hardwareRevision(@Nullable String hardwareRevision) {
this.hardwareRevision = hardwareRevision;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetDiscoveredAssetResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("GetDiscoveredAssetResult", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder manufacturer(@Nullable String manufacturer) {
this.manufacturer = manufacturer;
return this;
}
@CustomType.Setter
public Builder manufacturerUri(@Nullable String manufacturerUri) {
this.manufacturerUri = manufacturerUri;
return this;
}
@CustomType.Setter
public Builder model(@Nullable String model) {
this.model = model;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetDiscoveredAssetResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder productCode(@Nullable String productCode) {
this.productCode = productCode;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetDiscoveredAssetResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder serialNumber(@Nullable String serialNumber) {
this.serialNumber = serialNumber;
return this;
}
@CustomType.Setter
public Builder softwareRevision(@Nullable String softwareRevision) {
this.softwareRevision = softwareRevision;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetDiscoveredAssetResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetDiscoveredAssetResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder version(Double version) {
if (version == null) {
throw new MissingRequiredPropertyException("GetDiscoveredAssetResult", "version");
}
this.version = version;
return this;
}
public GetDiscoveredAssetResult build() {
final var _resultValue = new GetDiscoveredAssetResult();
_resultValue.assetEndpointProfileRef = assetEndpointProfileRef;
_resultValue.datasets = datasets;
_resultValue.defaultDatasetsConfiguration = defaultDatasetsConfiguration;
_resultValue.defaultEventsConfiguration = defaultEventsConfiguration;
_resultValue.defaultTopic = defaultTopic;
_resultValue.discoveryId = discoveryId;
_resultValue.documentationUri = documentationUri;
_resultValue.events = events;
_resultValue.extendedLocation = extendedLocation;
_resultValue.hardwareRevision = hardwareRevision;
_resultValue.id = id;
_resultValue.location = location;
_resultValue.manufacturer = manufacturer;
_resultValue.manufacturerUri = manufacturerUri;
_resultValue.model = model;
_resultValue.name = name;
_resultValue.productCode = productCode;
_resultValue.provisioningState = provisioningState;
_resultValue.serialNumber = serialNumber;
_resultValue.softwareRevision = softwareRevision;
_resultValue.systemData = systemData;
_resultValue.tags = tags;
_resultValue.type = type;
_resultValue.version = version;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy