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

com.pulumi.azurenative.deviceupdate.InstanceArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.deviceupdate;

import com.pulumi.azurenative.deviceupdate.inputs.DiagnosticStoragePropertiesArgs;
import com.pulumi.azurenative.deviceupdate.inputs.IotHubSettingsArgs;
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.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final InstanceArgs Empty = new InstanceArgs();

    /**
     * Account name.
     * 
     */
    @Import(name="accountName", required=true)
    private Output accountName;

    /**
     * @return Account name.
     * 
     */
    public Output accountName() {
        return this.accountName;
    }

    /**
     * Customer-initiated diagnostic log collection storage properties
     * 
     */
    @Import(name="diagnosticStorageProperties")
    private @Nullable Output diagnosticStorageProperties;

    /**
     * @return Customer-initiated diagnostic log collection storage properties
     * 
     */
    public Optional> diagnosticStorageProperties() {
        return Optional.ofNullable(this.diagnosticStorageProperties);
    }

    /**
     * Enables or Disables the diagnostic logs collection
     * 
     */
    @Import(name="enableDiagnostics")
    private @Nullable Output enableDiagnostics;

    /**
     * @return Enables or Disables the diagnostic logs collection
     * 
     */
    public Optional> enableDiagnostics() {
        return Optional.ofNullable(this.enableDiagnostics);
    }

    /**
     * Instance name.
     * 
     */
    @Import(name="instanceName")
    private @Nullable Output instanceName;

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

    /**
     * List of IoT Hubs associated with the account.
     * 
     */
    @Import(name="iotHubs")
    private @Nullable Output> iotHubs;

    /**
     * @return List of IoT Hubs associated with the account.
     * 
     */
    public Optional>> iotHubs() {
        return Optional.ofNullable(this.iotHubs);
    }

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

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

    /**
     * @return The resource group name.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

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

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

    private InstanceArgs() {}

    private InstanceArgs(InstanceArgs $) {
        this.accountName = $.accountName;
        this.diagnosticStorageProperties = $.diagnosticStorageProperties;
        this.enableDiagnostics = $.enableDiagnostics;
        this.instanceName = $.instanceName;
        this.iotHubs = $.iotHubs;
        this.location = $.location;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private InstanceArgs $;

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

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

        /**
         * @param accountName Account name.
         * 
         * @return builder
         * 
         */
        public Builder accountName(Output accountName) {
            $.accountName = accountName;
            return this;
        }

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

        /**
         * @param diagnosticStorageProperties Customer-initiated diagnostic log collection storage properties
         * 
         * @return builder
         * 
         */
        public Builder diagnosticStorageProperties(@Nullable Output diagnosticStorageProperties) {
            $.diagnosticStorageProperties = diagnosticStorageProperties;
            return this;
        }

        /**
         * @param diagnosticStorageProperties Customer-initiated diagnostic log collection storage properties
         * 
         * @return builder
         * 
         */
        public Builder diagnosticStorageProperties(DiagnosticStoragePropertiesArgs diagnosticStorageProperties) {
            return diagnosticStorageProperties(Output.of(diagnosticStorageProperties));
        }

        /**
         * @param enableDiagnostics Enables or Disables the diagnostic logs collection
         * 
         * @return builder
         * 
         */
        public Builder enableDiagnostics(@Nullable Output enableDiagnostics) {
            $.enableDiagnostics = enableDiagnostics;
            return this;
        }

        /**
         * @param enableDiagnostics Enables or Disables the diagnostic logs collection
         * 
         * @return builder
         * 
         */
        public Builder enableDiagnostics(Boolean enableDiagnostics) {
            return enableDiagnostics(Output.of(enableDiagnostics));
        }

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

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

        /**
         * @param iotHubs List of IoT Hubs associated with the account.
         * 
         * @return builder
         * 
         */
        public Builder iotHubs(@Nullable Output> iotHubs) {
            $.iotHubs = iotHubs;
            return this;
        }

        /**
         * @param iotHubs List of IoT Hubs associated with the account.
         * 
         * @return builder
         * 
         */
        public Builder iotHubs(List iotHubs) {
            return iotHubs(Output.of(iotHubs));
        }

        /**
         * @param iotHubs List of IoT Hubs associated with the account.
         * 
         * @return builder
         * 
         */
        public Builder iotHubs(IotHubSettingsArgs... iotHubs) {
            return iotHubs(List.of(iotHubs));
        }

        /**
         * @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 resourceGroupName The resource group name.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

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

        /**
         * @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 InstanceArgs build() {
            if ($.accountName == null) {
                throw new MissingRequiredPropertyException("InstanceArgs", "accountName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("InstanceArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy