commonMain.aws.sdk.kotlin.services.neptune.model.Event.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neptune-jvm Show documentation
Show all versions of neptune-jvm Show documentation
The AWS SDK for Kotlin client for Neptune
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.neptune.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* This data type is used as a response element in the DescribeEvents action.
*/
public class Event private constructor(builder: Builder) {
/**
* Specifies the date and time of the event.
*/
public val date: aws.smithy.kotlin.runtime.time.Instant? = builder.date
/**
* Specifies the category for the event.
*/
public val eventCategories: List? = builder.eventCategories
/**
* Provides the text of this event.
*/
public val message: kotlin.String? = builder.message
/**
* The Amazon Resource Name (ARN) for the event.
*/
public val sourceArn: kotlin.String? = builder.sourceArn
/**
* Provides the identifier for the source of the event.
*/
public val sourceIdentifier: kotlin.String? = builder.sourceIdentifier
/**
* Specifies the source type for this event.
*/
public val sourceType: aws.sdk.kotlin.services.neptune.model.SourceType? = builder.sourceType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptune.model.Event = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Event(")
append("date=$date,")
append("eventCategories=$eventCategories,")
append("message=$message,")
append("sourceArn=$sourceArn,")
append("sourceIdentifier=$sourceIdentifier,")
append("sourceType=$sourceType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = date?.hashCode() ?: 0
result = 31 * result + (eventCategories?.hashCode() ?: 0)
result = 31 * result + (message?.hashCode() ?: 0)
result = 31 * result + (sourceArn?.hashCode() ?: 0)
result = 31 * result + (sourceIdentifier?.hashCode() ?: 0)
result = 31 * result + (sourceType?.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 Event
if (date != other.date) return false
if (eventCategories != other.eventCategories) return false
if (message != other.message) return false
if (sourceArn != other.sourceArn) return false
if (sourceIdentifier != other.sourceIdentifier) return false
if (sourceType != other.sourceType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.neptune.model.Event = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies the date and time of the event.
*/
public var date: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Specifies the category for the event.
*/
public var eventCategories: List? = null
/**
* Provides the text of this event.
*/
public var message: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) for the event.
*/
public var sourceArn: kotlin.String? = null
/**
* Provides the identifier for the source of the event.
*/
public var sourceIdentifier: kotlin.String? = null
/**
* Specifies the source type for this event.
*/
public var sourceType: aws.sdk.kotlin.services.neptune.model.SourceType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptune.model.Event) : this() {
this.date = x.date
this.eventCategories = x.eventCategories
this.message = x.message
this.sourceArn = x.sourceArn
this.sourceIdentifier = x.sourceIdentifier
this.sourceType = x.sourceType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptune.model.Event = Event(this)
internal fun correctErrors(): Builder {
return this
}
}
}