
com.pulumi.azurenative.iotoperations.inputs.DataFlowEndpointAuthenticationSaslArgs 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.iotoperations.inputs;
import com.pulumi.azurenative.iotoperations.enums.DataFlowEndpointAuthenticationSaslType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
/**
* DataFlowEndpoint Authentication Sasl properties
*
*/
public final class DataFlowEndpointAuthenticationSaslArgs extends com.pulumi.resources.ResourceArgs {
public static final DataFlowEndpointAuthenticationSaslArgs Empty = new DataFlowEndpointAuthenticationSaslArgs();
/**
* Type of SASL authentication. Can be PLAIN, SCRAM-SHA-256, or SCRAM-SHA-512.
*
*/
@Import(name="saslType", required=true)
private Output> saslType;
/**
* @return Type of SASL authentication. Can be PLAIN, SCRAM-SHA-256, or SCRAM-SHA-512.
*
*/
public Output> saslType() {
return this.saslType;
}
/**
* Token secret name.
*
*/
@Import(name="tokenSecretRef", required=true)
private Output tokenSecretRef;
/**
* @return Token secret name.
*
*/
public Output tokenSecretRef() {
return this.tokenSecretRef;
}
private DataFlowEndpointAuthenticationSaslArgs() {}
private DataFlowEndpointAuthenticationSaslArgs(DataFlowEndpointAuthenticationSaslArgs $) {
this.saslType = $.saslType;
this.tokenSecretRef = $.tokenSecretRef;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DataFlowEndpointAuthenticationSaslArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private DataFlowEndpointAuthenticationSaslArgs $;
public Builder() {
$ = new DataFlowEndpointAuthenticationSaslArgs();
}
public Builder(DataFlowEndpointAuthenticationSaslArgs defaults) {
$ = new DataFlowEndpointAuthenticationSaslArgs(Objects.requireNonNull(defaults));
}
/**
* @param saslType Type of SASL authentication. Can be PLAIN, SCRAM-SHA-256, or SCRAM-SHA-512.
*
* @return builder
*
*/
public Builder saslType(Output> saslType) {
$.saslType = saslType;
return this;
}
/**
* @param saslType Type of SASL authentication. Can be PLAIN, SCRAM-SHA-256, or SCRAM-SHA-512.
*
* @return builder
*
*/
public Builder saslType(Either saslType) {
return saslType(Output.of(saslType));
}
/**
* @param saslType Type of SASL authentication. Can be PLAIN, SCRAM-SHA-256, or SCRAM-SHA-512.
*
* @return builder
*
*/
public Builder saslType(String saslType) {
return saslType(Either.ofLeft(saslType));
}
/**
* @param saslType Type of SASL authentication. Can be PLAIN, SCRAM-SHA-256, or SCRAM-SHA-512.
*
* @return builder
*
*/
public Builder saslType(DataFlowEndpointAuthenticationSaslType saslType) {
return saslType(Either.ofRight(saslType));
}
/**
* @param tokenSecretRef Token secret name.
*
* @return builder
*
*/
public Builder tokenSecretRef(Output tokenSecretRef) {
$.tokenSecretRef = tokenSecretRef;
return this;
}
/**
* @param tokenSecretRef Token secret name.
*
* @return builder
*
*/
public Builder tokenSecretRef(String tokenSecretRef) {
return tokenSecretRef(Output.of(tokenSecretRef));
}
public DataFlowEndpointAuthenticationSaslArgs build() {
if ($.saslType == null) {
throw new MissingRequiredPropertyException("DataFlowEndpointAuthenticationSaslArgs", "saslType");
}
if ($.tokenSecretRef == null) {
throw new MissingRequiredPropertyException("DataFlowEndpointAuthenticationSaslArgs", "tokenSecretRef");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy