com.pulumi.aws.iot.outputs.TopicRuleErrorActionRepublish 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.
// *** 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.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class TopicRuleErrorActionRepublish {
/**
* @return The Quality of Service (QoS) level to use when republishing messages. Valid values are 0 or 1. The default value is 0.
*
*/
private @Nullable Integer qos;
/**
* @return The ARN of the IAM role that grants access.
*
*/
private String roleArn;
/**
* @return The name of the MQTT topic the message should be republished to.
*
*/
private String topic;
private TopicRuleErrorActionRepublish() {}
/**
* @return The Quality of Service (QoS) level to use when republishing messages. Valid values are 0 or 1. The default value is 0.
*
*/
public Optional qos() {
return Optional.ofNullable(this.qos);
}
/**
* @return The ARN of the IAM role that grants access.
*
*/
public String roleArn() {
return this.roleArn;
}
/**
* @return The name of the MQTT topic the message should be republished to.
*
*/
public String topic() {
return this.topic;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TopicRuleErrorActionRepublish defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer qos;
private String roleArn;
private String topic;
public Builder() {}
public Builder(TopicRuleErrorActionRepublish defaults) {
Objects.requireNonNull(defaults);
this.qos = defaults.qos;
this.roleArn = defaults.roleArn;
this.topic = defaults.topic;
}
@CustomType.Setter
public Builder qos(@Nullable Integer qos) {
this.qos = qos;
return this;
}
@CustomType.Setter
public Builder roleArn(String roleArn) {
if (roleArn == null) {
throw new MissingRequiredPropertyException("TopicRuleErrorActionRepublish", "roleArn");
}
this.roleArn = roleArn;
return this;
}
@CustomType.Setter
public Builder topic(String topic) {
if (topic == null) {
throw new MissingRequiredPropertyException("TopicRuleErrorActionRepublish", "topic");
}
this.topic = topic;
return this;
}
public TopicRuleErrorActionRepublish build() {
final var _resultValue = new TopicRuleErrorActionRepublish();
_resultValue.qos = qos;
_resultValue.roleArn = roleArn;
_resultValue.topic = topic;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy