
com.pulumi.azurenative.iotoperationsmq.outputs.KafkaRemoteBrokerAuthenticationPropertiesResponse Maven / Gradle / Ivy
// *** 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.azurenative.iotoperationsmq.outputs.KafkaRemoteBrokerAuthenticationTypesResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class KafkaRemoteBrokerAuthenticationPropertiesResponse {
/**
* @return The type of authentication to use for Kafka remote broker.
*
*/
private @Nullable KafkaRemoteBrokerAuthenticationTypesResponse authType;
/**
* @return If authentication is enabled for Kafka remote broker.
*
*/
private Boolean enabled;
private KafkaRemoteBrokerAuthenticationPropertiesResponse() {}
/**
* @return The type of authentication to use for Kafka remote broker.
*
*/
public Optional authType() {
return Optional.ofNullable(this.authType);
}
/**
* @return If authentication is enabled for Kafka remote broker.
*
*/
public Boolean enabled() {
return this.enabled;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(KafkaRemoteBrokerAuthenticationPropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable KafkaRemoteBrokerAuthenticationTypesResponse authType;
private Boolean enabled;
public Builder() {}
public Builder(KafkaRemoteBrokerAuthenticationPropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.authType = defaults.authType;
this.enabled = defaults.enabled;
}
@CustomType.Setter
public Builder authType(@Nullable KafkaRemoteBrokerAuthenticationTypesResponse authType) {
this.authType = authType;
return this;
}
@CustomType.Setter
public Builder enabled(Boolean enabled) {
if (enabled == null) {
throw new MissingRequiredPropertyException("KafkaRemoteBrokerAuthenticationPropertiesResponse", "enabled");
}
this.enabled = enabled;
return this;
}
public KafkaRemoteBrokerAuthenticationPropertiesResponse build() {
final var _resultValue = new KafkaRemoteBrokerAuthenticationPropertiesResponse();
_resultValue.authType = authType;
_resultValue.enabled = enabled;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy