
commonMain.aws.sdk.kotlin.services.neptunedata.model.ExecuteFastResetRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.neptunedata.model
import aws.smithy.kotlin.runtime.SdkDsl
public class ExecuteFastResetRequest private constructor(builder: Builder) {
/**
* The fast reset action. One of the following values:
* + **`initiateDatabaseReset`** – This action generates a unique token needed to actually perform the fast reset.
* + **`performDatabaseReset`** – This action uses the token generated by the `initiateDatabaseReset` action to actually perform the fast reset.
*/
public val action: aws.sdk.kotlin.services.neptunedata.model.Action? = builder.action
/**
* The fast-reset token to initiate the reset.
*/
public val token: kotlin.String? = builder.token
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptunedata.model.ExecuteFastResetRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ExecuteFastResetRequest(")
append("action=$action,")
append("token=$token")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = action?.hashCode() ?: 0
result = 31 * result + (token?.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 ExecuteFastResetRequest
if (action != other.action) return false
if (token != other.token) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.neptunedata.model.ExecuteFastResetRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The fast reset action. One of the following values:
* + **`initiateDatabaseReset`** – This action generates a unique token needed to actually perform the fast reset.
* + **`performDatabaseReset`** – This action uses the token generated by the `initiateDatabaseReset` action to actually perform the fast reset.
*/
public var action: aws.sdk.kotlin.services.neptunedata.model.Action? = null
/**
* The fast-reset token to initiate the reset.
*/
public var token: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptunedata.model.ExecuteFastResetRequest) : this() {
this.action = x.action
this.token = x.token
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptunedata.model.ExecuteFastResetRequest = ExecuteFastResetRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy