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

com.pulumi.azurenative.devices.IotDpsResourceArgs 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.devices;

import com.pulumi.azurenative.devices.inputs.IotDpsPropertiesDescriptionArgs;
import com.pulumi.azurenative.devices.inputs.IotDpsSkuInfoArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final IotDpsResourceArgs Empty = new IotDpsResourceArgs();

    /**
     * The resource location.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The resource location.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Service specific properties for a provisioning service
     * 
     */
    @Import(name="properties", required=true)
    private Output properties;

    /**
     * @return Service specific properties for a provisioning service
     * 
     */
    public Output properties() {
        return this.properties;
    }

    /**
     * Name of provisioning service to create or update.
     * 
     */
    @Import(name="provisioningServiceName")
    private @Nullable Output provisioningServiceName;

    /**
     * @return Name of provisioning service to create or update.
     * 
     */
    public Optional> provisioningServiceName() {
        return Optional.ofNullable(this.provisioningServiceName);
    }

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

    /**
     * @return Resource group identifier.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The resource group of the resource.
     * 
     */
    @Import(name="resourcegroup")
    private @Nullable Output resourcegroup;

    /**
     * @return The resource group of the resource.
     * 
     */
    public Optional> resourcegroup() {
        return Optional.ofNullable(this.resourcegroup);
    }

    /**
     * Sku info for a provisioning Service.
     * 
     */
    @Import(name="sku", required=true)
    private Output sku;

    /**
     * @return Sku info for a provisioning Service.
     * 
     */
    public Output sku() {
        return this.sku;
    }

    /**
     * The subscription id of the resource.
     * 
     */
    @Import(name="subscriptionid")
    private @Nullable Output subscriptionid;

    /**
     * @return The subscription id of the resource.
     * 
     */
    public Optional> subscriptionid() {
        return Optional.ofNullable(this.subscriptionid);
    }

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

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

    private IotDpsResourceArgs() {}

    private IotDpsResourceArgs(IotDpsResourceArgs $) {
        this.location = $.location;
        this.properties = $.properties;
        this.provisioningServiceName = $.provisioningServiceName;
        this.resourceGroupName = $.resourceGroupName;
        this.resourcegroup = $.resourcegroup;
        this.sku = $.sku;
        this.subscriptionid = $.subscriptionid;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private IotDpsResourceArgs $;

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

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

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

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

        /**
         * @param properties Service specific properties for a provisioning service
         * 
         * @return builder
         * 
         */
        public Builder properties(Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties Service specific properties for a provisioning service
         * 
         * @return builder
         * 
         */
        public Builder properties(IotDpsPropertiesDescriptionArgs properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param provisioningServiceName Name of provisioning service to create or update.
         * 
         * @return builder
         * 
         */
        public Builder provisioningServiceName(@Nullable Output provisioningServiceName) {
            $.provisioningServiceName = provisioningServiceName;
            return this;
        }

        /**
         * @param provisioningServiceName Name of provisioning service to create or update.
         * 
         * @return builder
         * 
         */
        public Builder provisioningServiceName(String provisioningServiceName) {
            return provisioningServiceName(Output.of(provisioningServiceName));
        }

        /**
         * @param resourceGroupName Resource group identifier.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Resource group identifier.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param resourcegroup The resource group of the resource.
         * 
         * @return builder
         * 
         */
        public Builder resourcegroup(@Nullable Output resourcegroup) {
            $.resourcegroup = resourcegroup;
            return this;
        }

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

        /**
         * @param sku Sku info for a provisioning Service.
         * 
         * @return builder
         * 
         */
        public Builder sku(Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku Sku info for a provisioning Service.
         * 
         * @return builder
         * 
         */
        public Builder sku(IotDpsSkuInfoArgs sku) {
            return sku(Output.of(sku));
        }

        /**
         * @param subscriptionid The subscription id of the resource.
         * 
         * @return builder
         * 
         */
        public Builder subscriptionid(@Nullable Output subscriptionid) {
            $.subscriptionid = subscriptionid;
            return this;
        }

        /**
         * @param subscriptionid The subscription id of the resource.
         * 
         * @return builder
         * 
         */
        public Builder subscriptionid(String subscriptionid) {
            return subscriptionid(Output.of(subscriptionid));
        }

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

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

        public IotDpsResourceArgs build() {
            if ($.properties == null) {
                throw new MissingRequiredPropertyException("IotDpsResourceArgs", "properties");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("IotDpsResourceArgs", "resourceGroupName");
            }
            if ($.sku == null) {
                throw new MissingRequiredPropertyException("IotDpsResourceArgs", "sku");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy