commonMain.aws.sdk.kotlin.services.eventbridge.model.UpdateArchiveRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eventbridge-jvm Show documentation
Show all versions of eventbridge-jvm Show documentation
The AWS SDK for Kotlin client for EventBridge
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.eventbridge.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateArchiveRequest private constructor(builder: Builder) {
/**
* The name of the archive to update.
*/
public val archiveName: kotlin.String? = builder.archiveName
/**
* The description for the archive.
*/
public val description: kotlin.String? = builder.description
/**
* The event pattern to use to filter events sent to the archive.
*/
public val eventPattern: kotlin.String? = builder.eventPattern
/**
* The number of days to retain events in the archive.
*/
public val retentionDays: kotlin.Int? = builder.retentionDays
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eventbridge.model.UpdateArchiveRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateArchiveRequest(")
append("archiveName=$archiveName,")
append("description=$description,")
append("eventPattern=$eventPattern,")
append("retentionDays=$retentionDays")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = archiveName?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (eventPattern?.hashCode() ?: 0)
result = 31 * result + (retentionDays ?: 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 UpdateArchiveRequest
if (archiveName != other.archiveName) return false
if (description != other.description) return false
if (eventPattern != other.eventPattern) return false
if (retentionDays != other.retentionDays) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eventbridge.model.UpdateArchiveRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the archive to update.
*/
public var archiveName: kotlin.String? = null
/**
* The description for the archive.
*/
public var description: kotlin.String? = null
/**
* The event pattern to use to filter events sent to the archive.
*/
public var eventPattern: kotlin.String? = null
/**
* The number of days to retain events in the archive.
*/
public var retentionDays: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eventbridge.model.UpdateArchiveRequest) : this() {
this.archiveName = x.archiveName
this.description = x.description
this.eventPattern = x.eventPattern
this.retentionDays = x.retentionDays
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eventbridge.model.UpdateArchiveRequest = UpdateArchiveRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}