com.pulumi.aws.iot.outputs.TopicRuleErrorActionKafka Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
The 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.aws.iot.outputs;
import com.pulumi.aws.iot.outputs.TopicRuleErrorActionKafkaHeader;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class TopicRuleErrorActionKafka {
/**
* @return Properties of the Apache Kafka producer client. For more info, see the [AWS documentation](https://docs.aws.amazon.com/iot/latest/developerguide/apache-kafka-rule-action.html).
*
*/
private Map clientProperties;
/**
* @return The ARN of Kafka action's VPC `aws.iot.TopicRuleDestination`.
*
*/
private String destinationArn;
/**
* @return The list of Kafka headers that you specify. Nested arguments below.
*
*/
private @Nullable List headers;
/**
* @return The Kafka message key.
*
*/
private @Nullable String key;
/**
* @return The Kafka message partition.
*
*/
private @Nullable String partition;
/**
* @return The Kafka topic for messages to be sent to the Kafka broker.
*
*/
private String topic;
private TopicRuleErrorActionKafka() {}
/**
* @return Properties of the Apache Kafka producer client. For more info, see the [AWS documentation](https://docs.aws.amazon.com/iot/latest/developerguide/apache-kafka-rule-action.html).
*
*/
public Map clientProperties() {
return this.clientProperties;
}
/**
* @return The ARN of Kafka action's VPC `aws.iot.TopicRuleDestination`.
*
*/
public String destinationArn() {
return this.destinationArn;
}
/**
* @return The list of Kafka headers that you specify. Nested arguments below.
*
*/
public List headers() {
return this.headers == null ? List.of() : this.headers;
}
/**
* @return The Kafka message key.
*
*/
public Optional key() {
return Optional.ofNullable(this.key);
}
/**
* @return The Kafka message partition.
*
*/
public Optional partition() {
return Optional.ofNullable(this.partition);
}
/**
* @return The Kafka topic for messages to be sent to the Kafka broker.
*
*/
public String topic() {
return this.topic;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TopicRuleErrorActionKafka defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Map clientProperties;
private String destinationArn;
private @Nullable List headers;
private @Nullable String key;
private @Nullable String partition;
private String topic;
public Builder() {}
public Builder(TopicRuleErrorActionKafka defaults) {
Objects.requireNonNull(defaults);
this.clientProperties = defaults.clientProperties;
this.destinationArn = defaults.destinationArn;
this.headers = defaults.headers;
this.key = defaults.key;
this.partition = defaults.partition;
this.topic = defaults.topic;
}
@CustomType.Setter
public Builder clientProperties(Map clientProperties) {
if (clientProperties == null) {
throw new MissingRequiredPropertyException("TopicRuleErrorActionKafka", "clientProperties");
}
this.clientProperties = clientProperties;
return this;
}
@CustomType.Setter
public Builder destinationArn(String destinationArn) {
if (destinationArn == null) {
throw new MissingRequiredPropertyException("TopicRuleErrorActionKafka", "destinationArn");
}
this.destinationArn = destinationArn;
return this;
}
@CustomType.Setter
public Builder headers(@Nullable List headers) {
this.headers = headers;
return this;
}
public Builder headers(TopicRuleErrorActionKafkaHeader... headers) {
return headers(List.of(headers));
}
@CustomType.Setter
public Builder key(@Nullable String key) {
this.key = key;
return this;
}
@CustomType.Setter
public Builder partition(@Nullable String partition) {
this.partition = partition;
return this;
}
@CustomType.Setter
public Builder topic(String topic) {
if (topic == null) {
throw new MissingRequiredPropertyException("TopicRuleErrorActionKafka", "topic");
}
this.topic = topic;
return this;
}
public TopicRuleErrorActionKafka build() {
final var _resultValue = new TopicRuleErrorActionKafka();
_resultValue.clientProperties = clientProperties;
_resultValue.destinationArn = destinationArn;
_resultValue.headers = headers;
_resultValue.key = key;
_resultValue.partition = partition;
_resultValue.topic = topic;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy