commonMain.aws.sdk.kotlin.services.cloudwatchevents.model.PutPartnerEventsRequestEntry.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudwatchevents-jvm Show documentation
Show all versions of cloudwatchevents-jvm Show documentation
The AWS SDK for Kotlin client for CloudWatch Events
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudwatchevents.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* The details about an event generated by an SaaS partner.
*/
public class PutPartnerEventsRequestEntry private constructor(builder: Builder) {
/**
* A valid JSON string. There is no other schema imposed. The JSON string may contain fields and nested subobjects.
*/
public val detail: kotlin.String? = builder.detail
/**
* A free-form string used to decide what fields to expect in the event detail.
*/
public val detailType: kotlin.String? = builder.detailType
/**
* Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.
*/
public val resources: List? = builder.resources
/**
* The event source that is generating the entry.
*/
public val source: kotlin.String? = builder.source
/**
* The date and time of the event.
*/
public val time: aws.smithy.kotlin.runtime.time.Instant? = builder.time
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudwatchevents.model.PutPartnerEventsRequestEntry = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutPartnerEventsRequestEntry(")
append("detail=$detail,")
append("detailType=$detailType,")
append("resources=$resources,")
append("source=$source,")
append("time=$time")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = detail?.hashCode() ?: 0
result = 31 * result + (detailType?.hashCode() ?: 0)
result = 31 * result + (resources?.hashCode() ?: 0)
result = 31 * result + (source?.hashCode() ?: 0)
result = 31 * result + (time?.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 PutPartnerEventsRequestEntry
if (detail != other.detail) return false
if (detailType != other.detailType) return false
if (resources != other.resources) return false
if (source != other.source) return false
if (time != other.time) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudwatchevents.model.PutPartnerEventsRequestEntry = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A valid JSON string. There is no other schema imposed. The JSON string may contain fields and nested subobjects.
*/
public var detail: kotlin.String? = null
/**
* A free-form string used to decide what fields to expect in the event detail.
*/
public var detailType: kotlin.String? = null
/**
* Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.
*/
public var resources: List? = null
/**
* The event source that is generating the entry.
*/
public var source: kotlin.String? = null
/**
* The date and time of the event.
*/
public var time: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudwatchevents.model.PutPartnerEventsRequestEntry) : this() {
this.detail = x.detail
this.detailType = x.detailType
this.resources = x.resources
this.source = x.source
this.time = x.time
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudwatchevents.model.PutPartnerEventsRequestEntry = PutPartnerEventsRequestEntry(this)
internal fun correctErrors(): Builder {
return this
}
}
}