
commonMain.aws.sdk.kotlin.services.iot.model.DescribeEventConfigurationsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
import aws.smithy.kotlin.runtime.time.Instant
public class DescribeEventConfigurationsResponse private constructor(builder: Builder) {
/**
* The creation date of the event configuration.
*/
public val creationDate: aws.smithy.kotlin.runtime.time.Instant? = builder.creationDate
/**
* The event configurations.
*/
public val eventConfigurations: Map? = builder.eventConfigurations
/**
* The date the event configurations were last modified.
*/
public val lastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedDate
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.DescribeEventConfigurationsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeEventConfigurationsResponse(")
append("creationDate=$creationDate,")
append("eventConfigurations=$eventConfigurations,")
append("lastModifiedDate=$lastModifiedDate")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = creationDate?.hashCode() ?: 0
result = 31 * result + (eventConfigurations?.hashCode() ?: 0)
result = 31 * result + (lastModifiedDate?.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 DescribeEventConfigurationsResponse
if (creationDate != other.creationDate) return false
if (eventConfigurations != other.eventConfigurations) return false
if (lastModifiedDate != other.lastModifiedDate) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.DescribeEventConfigurationsResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The creation date of the event configuration.
*/
public var creationDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The event configurations.
*/
public var eventConfigurations: Map? = null
/**
* The date the event configurations were last modified.
*/
public var lastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.DescribeEventConfigurationsResponse) : this() {
this.creationDate = x.creationDate
this.eventConfigurations = x.eventConfigurations
this.lastModifiedDate = x.lastModifiedDate
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.DescribeEventConfigurationsResponse = DescribeEventConfigurationsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy