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

com.pulumi.azurenative.databoxedge.outputs.IoTDeviceInfoResponse 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.databoxedge.outputs;

import com.pulumi.azurenative.databoxedge.outputs.AuthenticationResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class IoTDeviceInfoResponse {
    /**
     * @return Encrypted IoT device/IoT edge device connection string.
     * 
     */
    private @Nullable AuthenticationResponse authentication;
    /**
     * @return ID of the IoT device/edge device.
     * 
     */
    private String deviceId;
    /**
     * @return Host name for the IoT hub associated to the device.
     * 
     */
    private String ioTHostHub;
    /**
     * @return Id for the IoT hub associated to the device.
     * 
     */
    private @Nullable String ioTHostHubId;

    private IoTDeviceInfoResponse() {}
    /**
     * @return Encrypted IoT device/IoT edge device connection string.
     * 
     */
    public Optional authentication() {
        return Optional.ofNullable(this.authentication);
    }
    /**
     * @return ID of the IoT device/edge device.
     * 
     */
    public String deviceId() {
        return this.deviceId;
    }
    /**
     * @return Host name for the IoT hub associated to the device.
     * 
     */
    public String ioTHostHub() {
        return this.ioTHostHub;
    }
    /**
     * @return Id for the IoT hub associated to the device.
     * 
     */
    public Optional ioTHostHubId() {
        return Optional.ofNullable(this.ioTHostHubId);
    }

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

    public static Builder builder(IoTDeviceInfoResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable AuthenticationResponse authentication;
        private String deviceId;
        private String ioTHostHub;
        private @Nullable String ioTHostHubId;
        public Builder() {}
        public Builder(IoTDeviceInfoResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.authentication = defaults.authentication;
    	      this.deviceId = defaults.deviceId;
    	      this.ioTHostHub = defaults.ioTHostHub;
    	      this.ioTHostHubId = defaults.ioTHostHubId;
        }

        @CustomType.Setter
        public Builder authentication(@Nullable AuthenticationResponse authentication) {

            this.authentication = authentication;
            return this;
        }
        @CustomType.Setter
        public Builder deviceId(String deviceId) {
            if (deviceId == null) {
              throw new MissingRequiredPropertyException("IoTDeviceInfoResponse", "deviceId");
            }
            this.deviceId = deviceId;
            return this;
        }
        @CustomType.Setter
        public Builder ioTHostHub(String ioTHostHub) {
            if (ioTHostHub == null) {
              throw new MissingRequiredPropertyException("IoTDeviceInfoResponse", "ioTHostHub");
            }
            this.ioTHostHub = ioTHostHub;
            return this;
        }
        @CustomType.Setter
        public Builder ioTHostHubId(@Nullable String ioTHostHubId) {

            this.ioTHostHubId = ioTHostHubId;
            return this;
        }
        public IoTDeviceInfoResponse build() {
            final var _resultValue = new IoTDeviceInfoResponse();
            _resultValue.authentication = authentication;
            _resultValue.deviceId = deviceId;
            _resultValue.ioTHostHub = ioTHostHub;
            _resultValue.ioTHostHubId = ioTHostHubId;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy