commonMain.aws.sdk.kotlin.services.neptunegraph.model.ResetGraphRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.neptunegraph.model
import aws.smithy.kotlin.runtime.SdkDsl
public class ResetGraphRequest private constructor(builder: Builder) {
/**
* ID of the graph to reset.
*/
public val graphIdentifier: kotlin.String? = builder.graphIdentifier
/**
* Determines whether a final graph snapshot is created before the graph data is deleted. If set to `true`, no graph snapshot is created. If set to `false`, a graph snapshot is created before the data is deleted.
*/
public val skipSnapshot: kotlin.Boolean? = builder.skipSnapshot
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptunegraph.model.ResetGraphRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ResetGraphRequest(")
append("graphIdentifier=$graphIdentifier,")
append("skipSnapshot=$skipSnapshot")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = graphIdentifier?.hashCode() ?: 0
result = 31 * result + (skipSnapshot?.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 ResetGraphRequest
if (graphIdentifier != other.graphIdentifier) return false
if (skipSnapshot != other.skipSnapshot) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.neptunegraph.model.ResetGraphRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* ID of the graph to reset.
*/
public var graphIdentifier: kotlin.String? = null
/**
* Determines whether a final graph snapshot is created before the graph data is deleted. If set to `true`, no graph snapshot is created. If set to `false`, a graph snapshot is created before the data is deleted.
*/
public var skipSnapshot: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptunegraph.model.ResetGraphRequest) : this() {
this.graphIdentifier = x.graphIdentifier
this.skipSnapshot = x.skipSnapshot
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptunegraph.model.ResetGraphRequest = ResetGraphRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}