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

com.pulumi.azurenative.databoxedge.inputs.IoTDeviceInfoArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.databoxedge.inputs;

import com.pulumi.azurenative.databoxedge.inputs.AuthenticationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Metadata of IoT device/IoT Edge device to be configured.
 * 
 */
public final class IoTDeviceInfoArgs extends com.pulumi.resources.ResourceArgs {

    public static final IoTDeviceInfoArgs Empty = new IoTDeviceInfoArgs();

    /**
     * Encrypted IoT device/IoT edge device connection string.
     * 
     */
    @Import(name="authentication")
    private @Nullable Output authentication;

    /**
     * @return Encrypted IoT device/IoT edge device connection string.
     * 
     */
    public Optional> authentication() {
        return Optional.ofNullable(this.authentication);
    }

    /**
     * ID of the IoT device/edge device.
     * 
     */
    @Import(name="deviceId", required=true)
    private Output deviceId;

    /**
     * @return ID of the IoT device/edge device.
     * 
     */
    public Output deviceId() {
        return this.deviceId;
    }

    /**
     * Host name for the IoT hub associated to the device.
     * 
     */
    @Import(name="ioTHostHub", required=true)
    private Output ioTHostHub;

    /**
     * @return Host name for the IoT hub associated to the device.
     * 
     */
    public Output ioTHostHub() {
        return this.ioTHostHub;
    }

    /**
     * Id for the IoT hub associated to the device.
     * 
     */
    @Import(name="ioTHostHubId")
    private @Nullable Output ioTHostHubId;

    /**
     * @return Id for the IoT hub associated to the device.
     * 
     */
    public Optional> ioTHostHubId() {
        return Optional.ofNullable(this.ioTHostHubId);
    }

    private IoTDeviceInfoArgs() {}

    private IoTDeviceInfoArgs(IoTDeviceInfoArgs $) {
        this.authentication = $.authentication;
        this.deviceId = $.deviceId;
        this.ioTHostHub = $.ioTHostHub;
        this.ioTHostHubId = $.ioTHostHubId;
    }

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

    public static final class Builder {
        private IoTDeviceInfoArgs $;

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

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

        /**
         * @param authentication Encrypted IoT device/IoT edge device connection string.
         * 
         * @return builder
         * 
         */
        public Builder authentication(@Nullable Output authentication) {
            $.authentication = authentication;
            return this;
        }

        /**
         * @param authentication Encrypted IoT device/IoT edge device connection string.
         * 
         * @return builder
         * 
         */
        public Builder authentication(AuthenticationArgs authentication) {
            return authentication(Output.of(authentication));
        }

        /**
         * @param deviceId ID of the IoT device/edge device.
         * 
         * @return builder
         * 
         */
        public Builder deviceId(Output deviceId) {
            $.deviceId = deviceId;
            return this;
        }

        /**
         * @param deviceId ID of the IoT device/edge device.
         * 
         * @return builder
         * 
         */
        public Builder deviceId(String deviceId) {
            return deviceId(Output.of(deviceId));
        }

        /**
         * @param ioTHostHub Host name for the IoT hub associated to the device.
         * 
         * @return builder
         * 
         */
        public Builder ioTHostHub(Output ioTHostHub) {
            $.ioTHostHub = ioTHostHub;
            return this;
        }

        /**
         * @param ioTHostHub Host name for the IoT hub associated to the device.
         * 
         * @return builder
         * 
         */
        public Builder ioTHostHub(String ioTHostHub) {
            return ioTHostHub(Output.of(ioTHostHub));
        }

        /**
         * @param ioTHostHubId Id for the IoT hub associated to the device.
         * 
         * @return builder
         * 
         */
        public Builder ioTHostHubId(@Nullable Output ioTHostHubId) {
            $.ioTHostHubId = ioTHostHubId;
            return this;
        }

        /**
         * @param ioTHostHubId Id for the IoT hub associated to the device.
         * 
         * @return builder
         * 
         */
        public Builder ioTHostHubId(String ioTHostHubId) {
            return ioTHostHubId(Output.of(ioTHostHubId));
        }

        public IoTDeviceInfoArgs build() {
            if ($.deviceId == null) {
                throw new MissingRequiredPropertyException("IoTDeviceInfoArgs", "deviceId");
            }
            if ($.ioTHostHub == null) {
                throw new MissingRequiredPropertyException("IoTDeviceInfoArgs", "ioTHostHub");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy