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

com.pulumi.azure.iot.IotHubDeviceUpdateInstanceArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.iot;

import com.pulumi.azure.iot.inputs.IotHubDeviceUpdateInstanceDiagnosticStorageAccountArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final IotHubDeviceUpdateInstanceArgs Empty = new IotHubDeviceUpdateInstanceArgs();

    /**
     * Specifies the ID of the IoT Hub Device Update Account where the IoT Hub Device Update Instance exists. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="deviceUpdateAccountId", required=true)
    private Output deviceUpdateAccountId;

    /**
     * @return Specifies the ID of the IoT Hub Device Update Account where the IoT Hub Device Update Instance exists. Changing this forces a new resource to be created.
     * 
     */
    public Output deviceUpdateAccountId() {
        return this.deviceUpdateAccountId;
    }

    /**
     * Whether the diagnostic log collection is enabled. Possible values are `true` and `false`. Defaults to `false`.
     * 
     */
    @Import(name="diagnosticEnabled")
    private @Nullable Output diagnosticEnabled;

    /**
     * @return Whether the diagnostic log collection is enabled. Possible values are `true` and `false`. Defaults to `false`.
     * 
     */
    public Optional> diagnosticEnabled() {
        return Optional.ofNullable(this.diagnosticEnabled);
    }

    /**
     * A `diagnostic_storage_account` block as defined below.
     * 
     */
    @Import(name="diagnosticStorageAccount")
    private @Nullable Output diagnosticStorageAccount;

    /**
     * @return A `diagnostic_storage_account` block as defined below.
     * 
     */
    public Optional> diagnosticStorageAccount() {
        return Optional.ofNullable(this.diagnosticStorageAccount);
    }

    /**
     * Specifies the ID of the IoT Hub associated with the IoT Hub Device Update Instance. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="iothubId", required=true)
    private Output iothubId;

    /**
     * @return Specifies the ID of the IoT Hub associated with the IoT Hub Device Update Instance. Changing this forces a new resource to be created.
     * 
     */
    public Output iothubId() {
        return this.iothubId;
    }

    /**
     * Specifies the name which should be used for this IoT Hub Device Update Instance. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Specifies the name which should be used for this IoT Hub Device Update Instance. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * A mapping of tags which should be assigned to the IoT Hub Device Update Instance.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags which should be assigned to the IoT Hub Device Update Instance.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private IotHubDeviceUpdateInstanceArgs() {}

    private IotHubDeviceUpdateInstanceArgs(IotHubDeviceUpdateInstanceArgs $) {
        this.deviceUpdateAccountId = $.deviceUpdateAccountId;
        this.diagnosticEnabled = $.diagnosticEnabled;
        this.diagnosticStorageAccount = $.diagnosticStorageAccount;
        this.iothubId = $.iothubId;
        this.name = $.name;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private IotHubDeviceUpdateInstanceArgs $;

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

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

        /**
         * @param deviceUpdateAccountId Specifies the ID of the IoT Hub Device Update Account where the IoT Hub Device Update Instance exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder deviceUpdateAccountId(Output deviceUpdateAccountId) {
            $.deviceUpdateAccountId = deviceUpdateAccountId;
            return this;
        }

        /**
         * @param deviceUpdateAccountId Specifies the ID of the IoT Hub Device Update Account where the IoT Hub Device Update Instance exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder deviceUpdateAccountId(String deviceUpdateAccountId) {
            return deviceUpdateAccountId(Output.of(deviceUpdateAccountId));
        }

        /**
         * @param diagnosticEnabled Whether the diagnostic log collection is enabled. Possible values are `true` and `false`. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder diagnosticEnabled(@Nullable Output diagnosticEnabled) {
            $.diagnosticEnabled = diagnosticEnabled;
            return this;
        }

        /**
         * @param diagnosticEnabled Whether the diagnostic log collection is enabled. Possible values are `true` and `false`. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder diagnosticEnabled(Boolean diagnosticEnabled) {
            return diagnosticEnabled(Output.of(diagnosticEnabled));
        }

        /**
         * @param diagnosticStorageAccount A `diagnostic_storage_account` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder diagnosticStorageAccount(@Nullable Output diagnosticStorageAccount) {
            $.diagnosticStorageAccount = diagnosticStorageAccount;
            return this;
        }

        /**
         * @param diagnosticStorageAccount A `diagnostic_storage_account` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder diagnosticStorageAccount(IotHubDeviceUpdateInstanceDiagnosticStorageAccountArgs diagnosticStorageAccount) {
            return diagnosticStorageAccount(Output.of(diagnosticStorageAccount));
        }

        /**
         * @param iothubId Specifies the ID of the IoT Hub associated with the IoT Hub Device Update Instance. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder iothubId(Output iothubId) {
            $.iothubId = iothubId;
            return this;
        }

        /**
         * @param iothubId Specifies the ID of the IoT Hub associated with the IoT Hub Device Update Instance. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder iothubId(String iothubId) {
            return iothubId(Output.of(iothubId));
        }

        /**
         * @param name Specifies the name which should be used for this IoT Hub Device Update Instance. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies the name which should be used for this IoT Hub Device Update Instance. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param tags A mapping of tags which should be assigned to the IoT Hub Device Update Instance.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags which should be assigned to the IoT Hub Device Update Instance.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public IotHubDeviceUpdateInstanceArgs build() {
            if ($.deviceUpdateAccountId == null) {
                throw new MissingRequiredPropertyException("IotHubDeviceUpdateInstanceArgs", "deviceUpdateAccountId");
            }
            if ($.iothubId == null) {
                throw new MissingRequiredPropertyException("IotHubDeviceUpdateInstanceArgs", "iothubId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy