commonMain.aws.sdk.kotlin.services.eventbridge.model.DescribeReplayResponse.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
import aws.smithy.kotlin.runtime.time.Instant
public class DescribeReplayResponse private constructor(builder: Builder) {
/**
* The description of the replay.
*/
public val description: kotlin.String? = builder.description
/**
* A `ReplayDestination` object that contains details about the replay.
*/
public val destination: aws.sdk.kotlin.services.eventbridge.model.ReplayDestination? = builder.destination
/**
* The time stamp for the last event that was replayed from the archive.
*/
public val eventEndTime: aws.smithy.kotlin.runtime.time.Instant? = builder.eventEndTime
/**
* The time that the event was last replayed.
*/
public val eventLastReplayedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.eventLastReplayedTime
/**
* The ARN of the archive events were replayed from.
*/
public val eventSourceArn: kotlin.String? = builder.eventSourceArn
/**
* The time stamp of the first event that was last replayed from the archive.
*/
public val eventStartTime: aws.smithy.kotlin.runtime.time.Instant? = builder.eventStartTime
/**
* The ARN of the replay.
*/
public val replayArn: kotlin.String? = builder.replayArn
/**
* A time stamp for the time that the replay stopped.
*/
public val replayEndTime: aws.smithy.kotlin.runtime.time.Instant? = builder.replayEndTime
/**
* The name of the replay.
*/
public val replayName: kotlin.String? = builder.replayName
/**
* A time stamp for the time that the replay started.
*/
public val replayStartTime: aws.smithy.kotlin.runtime.time.Instant? = builder.replayStartTime
/**
* The current state of the replay.
*/
public val state: aws.sdk.kotlin.services.eventbridge.model.ReplayState? = builder.state
/**
* The reason that the replay is in the current state.
*/
public val stateReason: kotlin.String? = builder.stateReason
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eventbridge.model.DescribeReplayResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeReplayResponse(")
append("description=$description,")
append("destination=$destination,")
append("eventEndTime=$eventEndTime,")
append("eventLastReplayedTime=$eventLastReplayedTime,")
append("eventSourceArn=$eventSourceArn,")
append("eventStartTime=$eventStartTime,")
append("replayArn=$replayArn,")
append("replayEndTime=$replayEndTime,")
append("replayName=$replayName,")
append("replayStartTime=$replayStartTime,")
append("state=$state,")
append("stateReason=$stateReason")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (destination?.hashCode() ?: 0)
result = 31 * result + (eventEndTime?.hashCode() ?: 0)
result = 31 * result + (eventLastReplayedTime?.hashCode() ?: 0)
result = 31 * result + (eventSourceArn?.hashCode() ?: 0)
result = 31 * result + (eventStartTime?.hashCode() ?: 0)
result = 31 * result + (replayArn?.hashCode() ?: 0)
result = 31 * result + (replayEndTime?.hashCode() ?: 0)
result = 31 * result + (replayName?.hashCode() ?: 0)
result = 31 * result + (replayStartTime?.hashCode() ?: 0)
result = 31 * result + (state?.hashCode() ?: 0)
result = 31 * result + (stateReason?.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 DescribeReplayResponse
if (description != other.description) return false
if (destination != other.destination) return false
if (eventEndTime != other.eventEndTime) return false
if (eventLastReplayedTime != other.eventLastReplayedTime) return false
if (eventSourceArn != other.eventSourceArn) return false
if (eventStartTime != other.eventStartTime) return false
if (replayArn != other.replayArn) return false
if (replayEndTime != other.replayEndTime) return false
if (replayName != other.replayName) return false
if (replayStartTime != other.replayStartTime) return false
if (state != other.state) return false
if (stateReason != other.stateReason) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eventbridge.model.DescribeReplayResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The description of the replay.
*/
public var description: kotlin.String? = null
/**
* A `ReplayDestination` object that contains details about the replay.
*/
public var destination: aws.sdk.kotlin.services.eventbridge.model.ReplayDestination? = null
/**
* The time stamp for the last event that was replayed from the archive.
*/
public var eventEndTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The time that the event was last replayed.
*/
public var eventLastReplayedTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The ARN of the archive events were replayed from.
*/
public var eventSourceArn: kotlin.String? = null
/**
* The time stamp of the first event that was last replayed from the archive.
*/
public var eventStartTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The ARN of the replay.
*/
public var replayArn: kotlin.String? = null
/**
* A time stamp for the time that the replay stopped.
*/
public var replayEndTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name of the replay.
*/
public var replayName: kotlin.String? = null
/**
* A time stamp for the time that the replay started.
*/
public var replayStartTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The current state of the replay.
*/
public var state: aws.sdk.kotlin.services.eventbridge.model.ReplayState? = null
/**
* The reason that the replay is in the current state.
*/
public var stateReason: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eventbridge.model.DescribeReplayResponse) : this() {
this.description = x.description
this.destination = x.destination
this.eventEndTime = x.eventEndTime
this.eventLastReplayedTime = x.eventLastReplayedTime
this.eventSourceArn = x.eventSourceArn
this.eventStartTime = x.eventStartTime
this.replayArn = x.replayArn
this.replayEndTime = x.replayEndTime
this.replayName = x.replayName
this.replayStartTime = x.replayStartTime
this.state = x.state
this.stateReason = x.stateReason
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eventbridge.model.DescribeReplayResponse = DescribeReplayResponse(this)
/**
* construct an [aws.sdk.kotlin.services.eventbridge.model.ReplayDestination] inside the given [block]
*/
public fun destination(block: aws.sdk.kotlin.services.eventbridge.model.ReplayDestination.Builder.() -> kotlin.Unit) {
this.destination = aws.sdk.kotlin.services.eventbridge.model.ReplayDestination.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}