com.pulumi.azure.iot.inputs.IoTHubEnrichmentArgs 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.String;
import java.util.List;
import java.util.Objects;
public final class IoTHubEnrichmentArgs extends com.pulumi.resources.ResourceArgs {
public static final IoTHubEnrichmentArgs Empty = new IoTHubEnrichmentArgs();
/**
* The list of endpoints which will be enriched.
*
*/
@Import(name="endpointNames", required=true)
private Output> endpointNames;
/**
* @return The list of endpoints which will be enriched.
*
*/
public Output> endpointNames() {
return this.endpointNames;
}
/**
* The key of the enrichment.
*
*/
@Import(name="key", required=true)
private Output key;
/**
* @return The key of the enrichment.
*
*/
public Output key() {
return this.key;
}
/**
* The value of the enrichment. Value can be any static string, the name of the IoT Hub sending the message (use `$iothubname`) or information from the device twin (ex: `$twin.tags.latitude`)
*
*/
@Import(name="value", required=true)
private Output value;
/**
* @return The value of the enrichment. Value can be any static string, the name of the IoT Hub sending the message (use `$iothubname`) or information from the device twin (ex: `$twin.tags.latitude`)
*
*/
public Output value() {
return this.value;
}
private IoTHubEnrichmentArgs() {}
private IoTHubEnrichmentArgs(IoTHubEnrichmentArgs $) {
this.endpointNames = $.endpointNames;
this.key = $.key;
this.value = $.value;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(IoTHubEnrichmentArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private IoTHubEnrichmentArgs $;
public Builder() {
$ = new IoTHubEnrichmentArgs();
}
public Builder(IoTHubEnrichmentArgs defaults) {
$ = new IoTHubEnrichmentArgs(Objects.requireNonNull(defaults));
}
/**
* @param endpointNames The list of endpoints which will be enriched.
*
* @return builder
*
*/
public Builder endpointNames(Output> endpointNames) {
$.endpointNames = endpointNames;
return this;
}
/**
* @param endpointNames The list of endpoints which will be enriched.
*
* @return builder
*
*/
public Builder endpointNames(List endpointNames) {
return endpointNames(Output.of(endpointNames));
}
/**
* @param endpointNames The list of endpoints which will be enriched.
*
* @return builder
*
*/
public Builder endpointNames(String... endpointNames) {
return endpointNames(List.of(endpointNames));
}
/**
* @param key The key of the enrichment.
*
* @return builder
*
*/
public Builder key(Output key) {
$.key = key;
return this;
}
/**
* @param key The key of the enrichment.
*
* @return builder
*
*/
public Builder key(String key) {
return key(Output.of(key));
}
/**
* @param value The value of the enrichment. Value can be any static string, the name of the IoT Hub sending the message (use `$iothubname`) or information from the device twin (ex: `$twin.tags.latitude`)
*
* @return builder
*
*/
public Builder value(Output value) {
$.value = value;
return this;
}
/**
* @param value The value of the enrichment. Value can be any static string, the name of the IoT Hub sending the message (use `$iothubname`) or information from the device twin (ex: `$twin.tags.latitude`)
*
* @return builder
*
*/
public Builder value(String value) {
return value(Output.of(value));
}
public IoTHubEnrichmentArgs build() {
if ($.endpointNames == null) {
throw new MissingRequiredPropertyException("IoTHubEnrichmentArgs", "endpointNames");
}
if ($.key == null) {
throw new MissingRequiredPropertyException("IoTHubEnrichmentArgs", "key");
}
if ($.value == null) {
throw new MissingRequiredPropertyException("IoTHubEnrichmentArgs", "value");
}
return $;
}
}
}