
commonMain.aws.sdk.kotlin.services.opensearch.model.MasterUserOptions.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
/**
* Credentials for the master user for a domain.
*/
public class MasterUserOptions private constructor(builder: Builder) {
/**
* Amazon Resource Name (ARN) for the master user. Only specify if `InternalUserDatabaseEnabled` is `false`.
*/
public val masterUserArn: kotlin.String? = builder.masterUserArn
/**
* User name for the master user. Only specify if `InternalUserDatabaseEnabled` is `true`.
*/
public val masterUserName: kotlin.String? = builder.masterUserName
/**
* Password for the master user. Only specify if `InternalUserDatabaseEnabled` is `true`.
*/
public val masterUserPassword: kotlin.String? = builder.masterUserPassword
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.MasterUserOptions = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MasterUserOptions(")
append("masterUserArn=$masterUserArn,")
append("masterUserName=*** Sensitive Data Redacted ***,")
append("masterUserPassword=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = masterUserArn?.hashCode() ?: 0
result = 31 * result + (masterUserName?.hashCode() ?: 0)
result = 31 * result + (masterUserPassword?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as MasterUserOptions
if (masterUserArn != other.masterUserArn) return false
if (masterUserName != other.masterUserName) return false
if (masterUserPassword != other.masterUserPassword) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.MasterUserOptions = Builder(this).apply(block).build()
public class Builder {
/**
* Amazon Resource Name (ARN) for the master user. Only specify if `InternalUserDatabaseEnabled` is `false`.
*/
public var masterUserArn: kotlin.String? = null
/**
* User name for the master user. Only specify if `InternalUserDatabaseEnabled` is `true`.
*/
public var masterUserName: kotlin.String? = null
/**
* Password for the master user. Only specify if `InternalUserDatabaseEnabled` is `true`.
*/
public var masterUserPassword: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.MasterUserOptions) : this() {
this.masterUserArn = x.masterUserArn
this.masterUserName = x.masterUserName
this.masterUserPassword = x.masterUserPassword
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.MasterUserOptions = MasterUserOptions(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy