com.pulumi.azure.hpc.outputs.CacheDirectoryLdap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.hpc.outputs;
import com.pulumi.azure.hpc.outputs.CacheDirectoryLdapBind;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class CacheDirectoryLdap {
/**
* @return The base distinguished name (DN) for the LDAP domain.
*
*/
private String baseDn;
/**
* @return A `bind` block as defined above.
*
*/
private @Nullable CacheDirectoryLdapBind bind;
/**
* @return The URI of the CA certificate to validate the LDAP secure connection.
*
*/
private @Nullable String certificateValidationUri;
/**
* @return Whether the certificate should be automatically downloaded. This can be set to `true` only when `certificate_validation_uri` is provided.
*
*/
private @Nullable Boolean downloadCertificateAutomatically;
/**
* @return Whether the LDAP connection should be encrypted?
*
*/
private @Nullable Boolean encrypted;
/**
* @return The FQDN or IP address of the LDAP server.
*
*/
private String server;
private CacheDirectoryLdap() {}
/**
* @return The base distinguished name (DN) for the LDAP domain.
*
*/
public String baseDn() {
return this.baseDn;
}
/**
* @return A `bind` block as defined above.
*
*/
public Optional bind() {
return Optional.ofNullable(this.bind);
}
/**
* @return The URI of the CA certificate to validate the LDAP secure connection.
*
*/
public Optional certificateValidationUri() {
return Optional.ofNullable(this.certificateValidationUri);
}
/**
* @return Whether the certificate should be automatically downloaded. This can be set to `true` only when `certificate_validation_uri` is provided.
*
*/
public Optional downloadCertificateAutomatically() {
return Optional.ofNullable(this.downloadCertificateAutomatically);
}
/**
* @return Whether the LDAP connection should be encrypted?
*
*/
public Optional encrypted() {
return Optional.ofNullable(this.encrypted);
}
/**
* @return The FQDN or IP address of the LDAP server.
*
*/
public String server() {
return this.server;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CacheDirectoryLdap defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String baseDn;
private @Nullable CacheDirectoryLdapBind bind;
private @Nullable String certificateValidationUri;
private @Nullable Boolean downloadCertificateAutomatically;
private @Nullable Boolean encrypted;
private String server;
public Builder() {}
public Builder(CacheDirectoryLdap defaults) {
Objects.requireNonNull(defaults);
this.baseDn = defaults.baseDn;
this.bind = defaults.bind;
this.certificateValidationUri = defaults.certificateValidationUri;
this.downloadCertificateAutomatically = defaults.downloadCertificateAutomatically;
this.encrypted = defaults.encrypted;
this.server = defaults.server;
}
@CustomType.Setter
public Builder baseDn(String baseDn) {
if (baseDn == null) {
throw new MissingRequiredPropertyException("CacheDirectoryLdap", "baseDn");
}
this.baseDn = baseDn;
return this;
}
@CustomType.Setter
public Builder bind(@Nullable CacheDirectoryLdapBind bind) {
this.bind = bind;
return this;
}
@CustomType.Setter
public Builder certificateValidationUri(@Nullable String certificateValidationUri) {
this.certificateValidationUri = certificateValidationUri;
return this;
}
@CustomType.Setter
public Builder downloadCertificateAutomatically(@Nullable Boolean downloadCertificateAutomatically) {
this.downloadCertificateAutomatically = downloadCertificateAutomatically;
return this;
}
@CustomType.Setter
public Builder encrypted(@Nullable Boolean encrypted) {
this.encrypted = encrypted;
return this;
}
@CustomType.Setter
public Builder server(String server) {
if (server == null) {
throw new MissingRequiredPropertyException("CacheDirectoryLdap", "server");
}
this.server = server;
return this;
}
public CacheDirectoryLdap build() {
final var _resultValue = new CacheDirectoryLdap();
_resultValue.baseDn = baseDn;
_resultValue.bind = bind;
_resultValue.certificateValidationUri = certificateValidationUri;
_resultValue.downloadCertificateAutomatically = downloadCertificateAutomatically;
_resultValue.encrypted = encrypted;
_resultValue.server = server;
return _resultValue;
}
}
}