com.pulumi.azure.iot.inputs.IotHubDpsSkuArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
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.
// *** 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.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
public final class IotHubDpsSkuArgs extends com.pulumi.resources.ResourceArgs {
public static final IotHubDpsSkuArgs Empty = new IotHubDpsSkuArgs();
/**
* The number of provisioned IoT Device Provisioning Service units.
*
*/
@Import(name="capacity", required=true)
private Output capacity;
/**
* @return The number of provisioned IoT Device Provisioning Service units.
*
*/
public Output capacity() {
return this.capacity;
}
/**
* The name of the sku. Currently can only be set to `S1`.
*
*/
@Import(name="name", required=true)
private Output name;
/**
* @return The name of the sku. Currently can only be set to `S1`.
*
*/
public Output name() {
return this.name;
}
private IotHubDpsSkuArgs() {}
private IotHubDpsSkuArgs(IotHubDpsSkuArgs $) {
this.capacity = $.capacity;
this.name = $.name;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(IotHubDpsSkuArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private IotHubDpsSkuArgs $;
public Builder() {
$ = new IotHubDpsSkuArgs();
}
public Builder(IotHubDpsSkuArgs defaults) {
$ = new IotHubDpsSkuArgs(Objects.requireNonNull(defaults));
}
/**
* @param capacity The number of provisioned IoT Device Provisioning Service units.
*
* @return builder
*
*/
public Builder capacity(Output capacity) {
$.capacity = capacity;
return this;
}
/**
* @param capacity The number of provisioned IoT Device Provisioning Service units.
*
* @return builder
*
*/
public Builder capacity(Integer capacity) {
return capacity(Output.of(capacity));
}
/**
* @param name The name of the sku. Currently can only be set to `S1`.
*
* @return builder
*
*/
public Builder name(Output name) {
$.name = name;
return this;
}
/**
* @param name The name of the sku. Currently can only be set to `S1`.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
public IotHubDpsSkuArgs build() {
if ($.capacity == null) {
throw new MissingRequiredPropertyException("IotHubDpsSkuArgs", "capacity");
}
if ($.name == null) {
throw new MissingRequiredPropertyException("IotHubDpsSkuArgs", "name");
}
return $;
}
}
}