
commonMain.aws.sdk.kotlin.services.opensearch.model.SnapshotOptions.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
/**
* The time, in UTC format, when OpenSearch Service takes a daily automated snapshot of the specified domain. Default is `0` hours.
*/
public class SnapshotOptions private constructor(builder: Builder) {
/**
* The time, in UTC format, when OpenSearch Service takes a daily automated snapshot of the specified domain. Default is `0` hours.
*/
public val automatedSnapshotStartHour: kotlin.Int? = builder.automatedSnapshotStartHour
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.SnapshotOptions = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SnapshotOptions(")
append("automatedSnapshotStartHour=$automatedSnapshotStartHour")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = automatedSnapshotStartHour ?: 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 SnapshotOptions
if (automatedSnapshotStartHour != other.automatedSnapshotStartHour) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.SnapshotOptions = Builder(this).apply(block).build()
public class Builder {
/**
* The time, in UTC format, when OpenSearch Service takes a daily automated snapshot of the specified domain. Default is `0` hours.
*/
public var automatedSnapshotStartHour: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.SnapshotOptions) : this() {
this.automatedSnapshotStartHour = x.automatedSnapshotStartHour
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.SnapshotOptions = SnapshotOptions(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy