
com.pulumi.azurenative.iotoperationsmq.outputs.BrokerAuthenticatorMethodCustomResponse 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.BrokerAuthenticatorCustomAuthResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class BrokerAuthenticatorMethodCustomResponse {
/**
* @return Custom Broker Authentication Method.
*
*/
private @Nullable BrokerAuthenticatorCustomAuthResponse auth;
/**
* @return CA cert config map to use.
*
*/
private @Nullable String caCertConfigMap;
/**
* @return Endpoint to connect to.
*
*/
private String endpoint;
/**
* @return Configuration Headers to use.
*
*/
private @Nullable Map headers;
private BrokerAuthenticatorMethodCustomResponse() {}
/**
* @return Custom Broker Authentication Method.
*
*/
public Optional auth() {
return Optional.ofNullable(this.auth);
}
/**
* @return CA cert config map to use.
*
*/
public Optional caCertConfigMap() {
return Optional.ofNullable(this.caCertConfigMap);
}
/**
* @return Endpoint to connect to.
*
*/
public String endpoint() {
return this.endpoint;
}
/**
* @return Configuration Headers to use.
*
*/
public Map headers() {
return this.headers == null ? Map.of() : this.headers;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BrokerAuthenticatorMethodCustomResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable BrokerAuthenticatorCustomAuthResponse auth;
private @Nullable String caCertConfigMap;
private String endpoint;
private @Nullable Map headers;
public Builder() {}
public Builder(BrokerAuthenticatorMethodCustomResponse defaults) {
Objects.requireNonNull(defaults);
this.auth = defaults.auth;
this.caCertConfigMap = defaults.caCertConfigMap;
this.endpoint = defaults.endpoint;
this.headers = defaults.headers;
}
@CustomType.Setter
public Builder auth(@Nullable BrokerAuthenticatorCustomAuthResponse auth) {
this.auth = auth;
return this;
}
@CustomType.Setter
public Builder caCertConfigMap(@Nullable String caCertConfigMap) {
this.caCertConfigMap = caCertConfigMap;
return this;
}
@CustomType.Setter
public Builder endpoint(String endpoint) {
if (endpoint == null) {
throw new MissingRequiredPropertyException("BrokerAuthenticatorMethodCustomResponse", "endpoint");
}
this.endpoint = endpoint;
return this;
}
@CustomType.Setter
public Builder headers(@Nullable Map headers) {
this.headers = headers;
return this;
}
public BrokerAuthenticatorMethodCustomResponse build() {
final var _resultValue = new BrokerAuthenticatorMethodCustomResponse();
_resultValue.auth = auth;
_resultValue.caCertConfigMap = caCertConfigMap;
_resultValue.endpoint = endpoint;
_resultValue.headers = headers;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy