com.pulumi.aws.elasticsearch.outputs.DomainAdvancedSecurityOptionsMasterUserOptions 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.aws.elasticsearch.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DomainAdvancedSecurityOptionsMasterUserOptions {
/**
* @return ARN for the main user. Only specify if `internal_user_database_enabled` is not set or set to `false`.
*
*/
private @Nullable String masterUserArn;
/**
* @return Main user's username, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if `internal_user_database_enabled` is set to `true`.
*
*/
private @Nullable String masterUserName;
/**
* @return Main user's password, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if `internal_user_database_enabled` is set to `true`.
*
*/
private @Nullable String masterUserPassword;
private DomainAdvancedSecurityOptionsMasterUserOptions() {}
/**
* @return ARN for the main user. Only specify if `internal_user_database_enabled` is not set or set to `false`.
*
*/
public Optional masterUserArn() {
return Optional.ofNullable(this.masterUserArn);
}
/**
* @return Main user's username, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if `internal_user_database_enabled` is set to `true`.
*
*/
public Optional masterUserName() {
return Optional.ofNullable(this.masterUserName);
}
/**
* @return Main user's password, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if `internal_user_database_enabled` is set to `true`.
*
*/
public Optional masterUserPassword() {
return Optional.ofNullable(this.masterUserPassword);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DomainAdvancedSecurityOptionsMasterUserOptions defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String masterUserArn;
private @Nullable String masterUserName;
private @Nullable String masterUserPassword;
public Builder() {}
public Builder(DomainAdvancedSecurityOptionsMasterUserOptions defaults) {
Objects.requireNonNull(defaults);
this.masterUserArn = defaults.masterUserArn;
this.masterUserName = defaults.masterUserName;
this.masterUserPassword = defaults.masterUserPassword;
}
@CustomType.Setter
public Builder masterUserArn(@Nullable String masterUserArn) {
this.masterUserArn = masterUserArn;
return this;
}
@CustomType.Setter
public Builder masterUserName(@Nullable String masterUserName) {
this.masterUserName = masterUserName;
return this;
}
@CustomType.Setter
public Builder masterUserPassword(@Nullable String masterUserPassword) {
this.masterUserPassword = masterUserPassword;
return this;
}
public DomainAdvancedSecurityOptionsMasterUserOptions build() {
final var _resultValue = new DomainAdvancedSecurityOptionsMasterUserOptions();
_resultValue.masterUserArn = masterUserArn;
_resultValue.masterUserName = masterUserName;
_resultValue.masterUserPassword = masterUserPassword;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy