
com.pulumi.azurenative.iotoperationsmq.outputs.KafkaToMqttRoutesResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure 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.azurenative.iotoperationsmq.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 KafkaToMqttRoutesResponse {
/**
* @return The consumer group id to use.
*
*/
private @Nullable String consumerGroupId;
/**
* @return The kafka topic to pull from.
*
*/
private String kafkaTopic;
/**
* @return The mqtt topic to publish to.
*
*/
private String mqttTopic;
/**
* @return The name of the route.
*
*/
private String name;
/**
* @return The qos to use for mqtt.
*
*/
private @Nullable Integer qos;
private KafkaToMqttRoutesResponse() {}
/**
* @return The consumer group id to use.
*
*/
public Optional consumerGroupId() {
return Optional.ofNullable(this.consumerGroupId);
}
/**
* @return The kafka topic to pull from.
*
*/
public String kafkaTopic() {
return this.kafkaTopic;
}
/**
* @return The mqtt topic to publish to.
*
*/
public String mqttTopic() {
return this.mqttTopic;
}
/**
* @return The name of the route.
*
*/
public String name() {
return this.name;
}
/**
* @return The qos to use for mqtt.
*
*/
public Optional qos() {
return Optional.ofNullable(this.qos);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(KafkaToMqttRoutesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String consumerGroupId;
private String kafkaTopic;
private String mqttTopic;
private String name;
private @Nullable Integer qos;
public Builder() {}
public Builder(KafkaToMqttRoutesResponse defaults) {
Objects.requireNonNull(defaults);
this.consumerGroupId = defaults.consumerGroupId;
this.kafkaTopic = defaults.kafkaTopic;
this.mqttTopic = defaults.mqttTopic;
this.name = defaults.name;
this.qos = defaults.qos;
}
@CustomType.Setter
public Builder consumerGroupId(@Nullable String consumerGroupId) {
this.consumerGroupId = consumerGroupId;
return this;
}
@CustomType.Setter
public Builder kafkaTopic(String kafkaTopic) {
if (kafkaTopic == null) {
throw new MissingRequiredPropertyException("KafkaToMqttRoutesResponse", "kafkaTopic");
}
this.kafkaTopic = kafkaTopic;
return this;
}
@CustomType.Setter
public Builder mqttTopic(String mqttTopic) {
if (mqttTopic == null) {
throw new MissingRequiredPropertyException("KafkaToMqttRoutesResponse", "mqttTopic");
}
this.mqttTopic = mqttTopic;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("KafkaToMqttRoutesResponse", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder qos(@Nullable Integer qos) {
this.qos = qos;
return this;
}
public KafkaToMqttRoutesResponse build() {
final var _resultValue = new KafkaToMqttRoutesResponse();
_resultValue.consumerGroupId = consumerGroupId;
_resultValue.kafkaTopic = kafkaTopic;
_resultValue.mqttTopic = mqttTopic;
_resultValue.name = name;
_resultValue.qos = qos;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy