
commonMain.aws.sdk.kotlin.services.lightsail.model.GetRelationalDatabaseMasterUserPasswordRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lightsail.model
public class GetRelationalDatabaseMasterUserPasswordRequest private constructor(builder: Builder) {
/**
* The password version to return.
*
* Specifying `CURRENT` or `PREVIOUS` returns the current or previous passwords respectively. Specifying `PENDING` returns the newest version of the password that will rotate to `CURRENT`. After the `PENDING` password rotates to `CURRENT`, the `PENDING` password is no longer available.
*
* Default: `CURRENT`
*/
public val passwordVersion: aws.sdk.kotlin.services.lightsail.model.RelationalDatabasePasswordVersion? = builder.passwordVersion
/**
* The name of your database for which to get the master user password.
*/
public val relationalDatabaseName: kotlin.String? = builder.relationalDatabaseName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.GetRelationalDatabaseMasterUserPasswordRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetRelationalDatabaseMasterUserPasswordRequest(")
append("passwordVersion=$passwordVersion,")
append("relationalDatabaseName=$relationalDatabaseName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = passwordVersion?.hashCode() ?: 0
result = 31 * result + (relationalDatabaseName?.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 GetRelationalDatabaseMasterUserPasswordRequest
if (passwordVersion != other.passwordVersion) return false
if (relationalDatabaseName != other.relationalDatabaseName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.GetRelationalDatabaseMasterUserPasswordRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The password version to return.
*
* Specifying `CURRENT` or `PREVIOUS` returns the current or previous passwords respectively. Specifying `PENDING` returns the newest version of the password that will rotate to `CURRENT`. After the `PENDING` password rotates to `CURRENT`, the `PENDING` password is no longer available.
*
* Default: `CURRENT`
*/
public var passwordVersion: aws.sdk.kotlin.services.lightsail.model.RelationalDatabasePasswordVersion? = null
/**
* The name of your database for which to get the master user password.
*/
public var relationalDatabaseName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lightsail.model.GetRelationalDatabaseMasterUserPasswordRequest) : this() {
this.passwordVersion = x.passwordVersion
this.relationalDatabaseName = x.relationalDatabaseName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lightsail.model.GetRelationalDatabaseMasterUserPasswordRequest = GetRelationalDatabaseMasterUserPasswordRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy