All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.deviceregistry.AssetArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** 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;

import com.pulumi.azurenative.deviceregistry.inputs.DataPointArgs;
import com.pulumi.azurenative.deviceregistry.inputs.EventArgs;
import com.pulumi.azurenative.deviceregistry.inputs.ExtendedLocationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class AssetArgs extends com.pulumi.resources.ResourceArgs {

    public static final AssetArgs Empty = new AssetArgs();

    /**
     * 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 have the format <ModuleCR.metadata.namespace>/<ModuleCR.metadata.name>.
     * 
     */
    @Import(name="assetEndpointProfileUri", required=true)
    private Output assetEndpointProfileUri;

    /**
     * @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 have the format <ModuleCR.metadata.namespace>/<ModuleCR.metadata.name>.
     * 
     */
    public Output assetEndpointProfileUri() {
        return this.assetEndpointProfileUri;
    }

    /**
     * Asset name parameter.
     * 
     */
    @Import(name="assetName")
    private @Nullable Output assetName;

    /**
     * @return Asset name parameter.
     * 
     */
    public Optional> assetName() {
        return Optional.ofNullable(this.assetName);
    }

    /**
     * Resource path to asset type (model) definition.
     * 
     */
    @Import(name="assetType")
    private @Nullable Output assetType;

    /**
     * @return Resource path to asset type (model) definition.
     * 
     */
    public Optional> assetType() {
        return Optional.ofNullable(this.assetType);
    }

    /**
     * A set of key-value pairs that contain custom attributes set by the customer.
     * 
     */
    @Import(name="attributes")
    private @Nullable Output attributes;

    /**
     * @return A set of key-value pairs that contain custom attributes set by the customer.
     * 
     */
    public Optional> attributes() {
        return Optional.ofNullable(this.attributes);
    }

    /**
     * Array of data points that are part of the asset. Each data point can reference an asset type capability and have per-data point configuration.
     * 
     */
    @Import(name="dataPoints")
    private @Nullable Output> dataPoints;

    /**
     * @return Array of data points that are part of the asset. Each data point can reference an asset type capability and have per-data point configuration.
     * 
     */
    public Optional>> dataPoints() {
        return Optional.ofNullable(this.dataPoints);
    }

    /**
     * Stringified JSON that contains protocol-specific default configuration for all data points. Each data point can have its own configuration that overrides the default settings here.
     * 
     */
    @Import(name="defaultDataPointsConfiguration")
    private @Nullable Output defaultDataPointsConfiguration;

    /**
     * @return Stringified JSON that contains protocol-specific default configuration for all data points. Each data point can have its own configuration that overrides the default settings here.
     * 
     */
    public Optional> defaultDataPointsConfiguration() {
        return Optional.ofNullable(this.defaultDataPointsConfiguration);
    }

    /**
     * Stringified JSON that contains connector-specific default configuration for all events. Each event can have its own configuration that overrides the default settings here.
     * 
     */
    @Import(name="defaultEventsConfiguration")
    private @Nullable Output defaultEventsConfiguration;

    /**
     * @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);
    }

    /**
     * Human-readable description of the asset.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Human-readable description of the asset.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Human-readable display name.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return Human-readable display name.
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * Reference to the documentation.
     * 
     */
    @Import(name="documentationUri")
    private @Nullable Output documentationUri;

    /**
     * @return Reference to the documentation.
     * 
     */
    public Optional> documentationUri() {
        return Optional.ofNullable(this.documentationUri);
    }

    /**
     * Enabled/Disabled status of the asset.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Enabled/Disabled status of the asset.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * Array of events that are part of the asset. Each event can have per-event configuration.
     * 
     */
    @Import(name="events")
    private @Nullable Output> events;

    /**
     * @return Array of events that are part of the asset. Each event can have per-event configuration.
     * 
     */
    public Optional>> events() {
        return Optional.ofNullable(this.events);
    }

    /**
     * The extended location.
     * 
     */
    @Import(name="extendedLocation", required=true)
    private Output extendedLocation;

    /**
     * @return The extended location.
     * 
     */
    public Output extendedLocation() {
        return this.extendedLocation;
    }

    /**
     * Asset id provided by the customer.
     * 
     */
    @Import(name="externalAssetId")
    private @Nullable Output externalAssetId;

    /**
     * @return Asset id provided by the customer.
     * 
     */
    public Optional> externalAssetId() {
        return Optional.ofNullable(this.externalAssetId);
    }

    /**
     * Revision number of the hardware.
     * 
     */
    @Import(name="hardwareRevision")
    private @Nullable Output hardwareRevision;

    /**
     * @return Revision number of the hardware.
     * 
     */
    public Optional> hardwareRevision() {
        return Optional.ofNullable(this.hardwareRevision);
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Asset manufacturer name.
     * 
     */
    @Import(name="manufacturer")
    private @Nullable Output manufacturer;

    /**
     * @return Asset manufacturer name.
     * 
     */
    public Optional> manufacturer() {
        return Optional.ofNullable(this.manufacturer);
    }

    /**
     * Asset manufacturer URI.
     * 
     */
    @Import(name="manufacturerUri")
    private @Nullable Output manufacturerUri;

    /**
     * @return Asset manufacturer URI.
     * 
     */
    public Optional> manufacturerUri() {
        return Optional.ofNullable(this.manufacturerUri);
    }

    /**
     * Asset model name.
     * 
     */
    @Import(name="model")
    private @Nullable Output model;

    /**
     * @return Asset model name.
     * 
     */
    public Optional> model() {
        return Optional.ofNullable(this.model);
    }

    /**
     * Asset product code.
     * 
     */
    @Import(name="productCode")
    private @Nullable Output productCode;

    /**
     * @return Asset product code.
     * 
     */
    public Optional> productCode() {
        return Optional.ofNullable(this.productCode);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Asset serial number.
     * 
     */
    @Import(name="serialNumber")
    private @Nullable Output serialNumber;

    /**
     * @return Asset serial number.
     * 
     */
    public Optional> serialNumber() {
        return Optional.ofNullable(this.serialNumber);
    }

    /**
     * Revision number of the software.
     * 
     */
    @Import(name="softwareRevision")
    private @Nullable Output softwareRevision;

    /**
     * @return Revision number of the software.
     * 
     */
    public Optional> softwareRevision() {
        return Optional.ofNullable(this.softwareRevision);
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private AssetArgs() {}

    private AssetArgs(AssetArgs $) {
        this.assetEndpointProfileUri = $.assetEndpointProfileUri;
        this.assetName = $.assetName;
        this.assetType = $.assetType;
        this.attributes = $.attributes;
        this.dataPoints = $.dataPoints;
        this.defaultDataPointsConfiguration = $.defaultDataPointsConfiguration;
        this.defaultEventsConfiguration = $.defaultEventsConfiguration;
        this.description = $.description;
        this.displayName = $.displayName;
        this.documentationUri = $.documentationUri;
        this.enabled = $.enabled;
        this.events = $.events;
        this.extendedLocation = $.extendedLocation;
        this.externalAssetId = $.externalAssetId;
        this.hardwareRevision = $.hardwareRevision;
        this.location = $.location;
        this.manufacturer = $.manufacturer;
        this.manufacturerUri = $.manufacturerUri;
        this.model = $.model;
        this.productCode = $.productCode;
        this.resourceGroupName = $.resourceGroupName;
        this.serialNumber = $.serialNumber;
        this.softwareRevision = $.softwareRevision;
        this.tags = $.tags;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(AssetArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private AssetArgs $;

        public Builder() {
            $ = new AssetArgs();
        }

        public Builder(AssetArgs defaults) {
            $ = new AssetArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param assetEndpointProfileUri 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 have the format <ModuleCR.metadata.namespace>/<ModuleCR.metadata.name>.
         * 
         * @return builder
         * 
         */
        public Builder assetEndpointProfileUri(Output assetEndpointProfileUri) {
            $.assetEndpointProfileUri = assetEndpointProfileUri;
            return this;
        }

        /**
         * @param assetEndpointProfileUri 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 have the format <ModuleCR.metadata.namespace>/<ModuleCR.metadata.name>.
         * 
         * @return builder
         * 
         */
        public Builder assetEndpointProfileUri(String assetEndpointProfileUri) {
            return assetEndpointProfileUri(Output.of(assetEndpointProfileUri));
        }

        /**
         * @param assetName Asset name parameter.
         * 
         * @return builder
         * 
         */
        public Builder assetName(@Nullable Output assetName) {
            $.assetName = assetName;
            return this;
        }

        /**
         * @param assetName Asset name parameter.
         * 
         * @return builder
         * 
         */
        public Builder assetName(String assetName) {
            return assetName(Output.of(assetName));
        }

        /**
         * @param assetType Resource path to asset type (model) definition.
         * 
         * @return builder
         * 
         */
        public Builder assetType(@Nullable Output assetType) {
            $.assetType = assetType;
            return this;
        }

        /**
         * @param assetType Resource path to asset type (model) definition.
         * 
         * @return builder
         * 
         */
        public Builder assetType(String assetType) {
            return assetType(Output.of(assetType));
        }

        /**
         * @param attributes A set of key-value pairs that contain custom attributes set by the customer.
         * 
         * @return builder
         * 
         */
        public Builder attributes(@Nullable Output attributes) {
            $.attributes = attributes;
            return this;
        }

        /**
         * @param attributes A set of key-value pairs that contain custom attributes set by the customer.
         * 
         * @return builder
         * 
         */
        public Builder attributes(Object attributes) {
            return attributes(Output.of(attributes));
        }

        /**
         * @param dataPoints Array of data points that are part of the asset. Each data point can reference an asset type capability and have per-data point configuration.
         * 
         * @return builder
         * 
         */
        public Builder dataPoints(@Nullable Output> dataPoints) {
            $.dataPoints = dataPoints;
            return this;
        }

        /**
         * @param dataPoints Array of data points that are part of the asset. Each data point can reference an asset type capability and have per-data point configuration.
         * 
         * @return builder
         * 
         */
        public Builder dataPoints(List dataPoints) {
            return dataPoints(Output.of(dataPoints));
        }

        /**
         * @param dataPoints Array of data points that are part of the asset. Each data point can reference an asset type capability and have per-data point configuration.
         * 
         * @return builder
         * 
         */
        public Builder dataPoints(DataPointArgs... dataPoints) {
            return dataPoints(List.of(dataPoints));
        }

        /**
         * @param defaultDataPointsConfiguration Stringified JSON that contains protocol-specific default configuration for all data points. Each data point can have its own configuration that overrides the default settings here.
         * 
         * @return builder
         * 
         */
        public Builder defaultDataPointsConfiguration(@Nullable Output defaultDataPointsConfiguration) {
            $.defaultDataPointsConfiguration = defaultDataPointsConfiguration;
            return this;
        }

        /**
         * @param defaultDataPointsConfiguration Stringified JSON that contains protocol-specific default configuration for all data points. Each data point can have its own configuration that overrides the default settings here.
         * 
         * @return builder
         * 
         */
        public Builder defaultDataPointsConfiguration(String defaultDataPointsConfiguration) {
            return defaultDataPointsConfiguration(Output.of(defaultDataPointsConfiguration));
        }

        /**
         * @param defaultEventsConfiguration Stringified JSON that contains connector-specific default configuration for all events. Each event can have its own configuration that overrides the default settings here.
         * 
         * @return builder
         * 
         */
        public Builder defaultEventsConfiguration(@Nullable Output defaultEventsConfiguration) {
            $.defaultEventsConfiguration = defaultEventsConfiguration;
            return this;
        }

        /**
         * @param defaultEventsConfiguration Stringified JSON that contains connector-specific default configuration for all events. Each event can have its own configuration that overrides the default settings here.
         * 
         * @return builder
         * 
         */
        public Builder defaultEventsConfiguration(String defaultEventsConfiguration) {
            return defaultEventsConfiguration(Output.of(defaultEventsConfiguration));
        }

        /**
         * @param description Human-readable description of the asset.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Human-readable description of the asset.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param displayName Human-readable display name.
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName Human-readable display name.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param documentationUri Reference to the documentation.
         * 
         * @return builder
         * 
         */
        public Builder documentationUri(@Nullable Output documentationUri) {
            $.documentationUri = documentationUri;
            return this;
        }

        /**
         * @param documentationUri Reference to the documentation.
         * 
         * @return builder
         * 
         */
        public Builder documentationUri(String documentationUri) {
            return documentationUri(Output.of(documentationUri));
        }

        /**
         * @param enabled Enabled/Disabled status of the asset.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Enabled/Disabled status of the asset.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param events Array of events that are part of the asset. Each event can have per-event configuration.
         * 
         * @return builder
         * 
         */
        public Builder events(@Nullable Output> events) {
            $.events = events;
            return this;
        }

        /**
         * @param events Array of events that are part of the asset. Each event can have per-event configuration.
         * 
         * @return builder
         * 
         */
        public Builder events(List events) {
            return events(Output.of(events));
        }

        /**
         * @param events Array of events that are part of the asset. Each event can have per-event configuration.
         * 
         * @return builder
         * 
         */
        public Builder events(EventArgs... events) {
            return events(List.of(events));
        }

        /**
         * @param extendedLocation The extended location.
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(Output extendedLocation) {
            $.extendedLocation = extendedLocation;
            return this;
        }

        /**
         * @param extendedLocation The extended location.
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(ExtendedLocationArgs extendedLocation) {
            return extendedLocation(Output.of(extendedLocation));
        }

        /**
         * @param externalAssetId Asset id provided by the customer.
         * 
         * @return builder
         * 
         */
        public Builder externalAssetId(@Nullable Output externalAssetId) {
            $.externalAssetId = externalAssetId;
            return this;
        }

        /**
         * @param externalAssetId Asset id provided by the customer.
         * 
         * @return builder
         * 
         */
        public Builder externalAssetId(String externalAssetId) {
            return externalAssetId(Output.of(externalAssetId));
        }

        /**
         * @param hardwareRevision Revision number of the hardware.
         * 
         * @return builder
         * 
         */
        public Builder hardwareRevision(@Nullable Output hardwareRevision) {
            $.hardwareRevision = hardwareRevision;
            return this;
        }

        /**
         * @param hardwareRevision Revision number of the hardware.
         * 
         * @return builder
         * 
         */
        public Builder hardwareRevision(String hardwareRevision) {
            return hardwareRevision(Output.of(hardwareRevision));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param manufacturer Asset manufacturer name.
         * 
         * @return builder
         * 
         */
        public Builder manufacturer(@Nullable Output manufacturer) {
            $.manufacturer = manufacturer;
            return this;
        }

        /**
         * @param manufacturer Asset manufacturer name.
         * 
         * @return builder
         * 
         */
        public Builder manufacturer(String manufacturer) {
            return manufacturer(Output.of(manufacturer));
        }

        /**
         * @param manufacturerUri Asset manufacturer URI.
         * 
         * @return builder
         * 
         */
        public Builder manufacturerUri(@Nullable Output manufacturerUri) {
            $.manufacturerUri = manufacturerUri;
            return this;
        }

        /**
         * @param manufacturerUri Asset manufacturer URI.
         * 
         * @return builder
         * 
         */
        public Builder manufacturerUri(String manufacturerUri) {
            return manufacturerUri(Output.of(manufacturerUri));
        }

        /**
         * @param model Asset model name.
         * 
         * @return builder
         * 
         */
        public Builder model(@Nullable Output model) {
            $.model = model;
            return this;
        }

        /**
         * @param model Asset model name.
         * 
         * @return builder
         * 
         */
        public Builder model(String model) {
            return model(Output.of(model));
        }

        /**
         * @param productCode Asset product code.
         * 
         * @return builder
         * 
         */
        public Builder productCode(@Nullable Output productCode) {
            $.productCode = productCode;
            return this;
        }

        /**
         * @param productCode Asset product code.
         * 
         * @return builder
         * 
         */
        public Builder productCode(String productCode) {
            return productCode(Output.of(productCode));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param serialNumber Asset serial number.
         * 
         * @return builder
         * 
         */
        public Builder serialNumber(@Nullable Output serialNumber) {
            $.serialNumber = serialNumber;
            return this;
        }

        /**
         * @param serialNumber Asset serial number.
         * 
         * @return builder
         * 
         */
        public Builder serialNumber(String serialNumber) {
            return serialNumber(Output.of(serialNumber));
        }

        /**
         * @param softwareRevision Revision number of the software.
         * 
         * @return builder
         * 
         */
        public Builder softwareRevision(@Nullable Output softwareRevision) {
            $.softwareRevision = softwareRevision;
            return this;
        }

        /**
         * @param softwareRevision Revision number of the software.
         * 
         * @return builder
         * 
         */
        public Builder softwareRevision(String softwareRevision) {
            return softwareRevision(Output.of(softwareRevision));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public AssetArgs build() {
            if ($.assetEndpointProfileUri == null) {
                throw new MissingRequiredPropertyException("AssetArgs", "assetEndpointProfileUri");
            }
            if ($.extendedLocation == null) {
                throw new MissingRequiredPropertyException("AssetArgs", "extendedLocation");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("AssetArgs", "resourceGroupName");
            }
            return $;
        }
    }

}