commonMain.aws.sdk.kotlin.services.cloudwatchevents.model.CreateApiDestinationResponse.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
public class CreateApiDestinationResponse private constructor(builder: Builder) {
/**
* The ARN of the API destination that was created by the request.
*/
public val apiDestinationArn: kotlin.String? = builder.apiDestinationArn
/**
* The state of the API destination that was created by the request.
*/
public val apiDestinationState: aws.sdk.kotlin.services.cloudwatchevents.model.ApiDestinationState? = builder.apiDestinationState
/**
* A time stamp indicating the time that the API destination was created.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* A time stamp indicating the time that the API destination was last modified.
*/
public val lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedTime
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudwatchevents.model.CreateApiDestinationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateApiDestinationResponse(")
append("apiDestinationArn=$apiDestinationArn,")
append("apiDestinationState=$apiDestinationState,")
append("creationTime=$creationTime,")
append("lastModifiedTime=$lastModifiedTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = apiDestinationArn?.hashCode() ?: 0
result = 31 * result + (apiDestinationState?.hashCode() ?: 0)
result = 31 * result + (creationTime?.hashCode() ?: 0)
result = 31 * result + (lastModifiedTime?.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 CreateApiDestinationResponse
if (apiDestinationArn != other.apiDestinationArn) return false
if (apiDestinationState != other.apiDestinationState) return false
if (creationTime != other.creationTime) return false
if (lastModifiedTime != other.lastModifiedTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudwatchevents.model.CreateApiDestinationResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ARN of the API destination that was created by the request.
*/
public var apiDestinationArn: kotlin.String? = null
/**
* The state of the API destination that was created by the request.
*/
public var apiDestinationState: aws.sdk.kotlin.services.cloudwatchevents.model.ApiDestinationState? = null
/**
* A time stamp indicating the time that the API destination was created.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* A time stamp indicating the time that the API destination was last modified.
*/
public var lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudwatchevents.model.CreateApiDestinationResponse) : this() {
this.apiDestinationArn = x.apiDestinationArn
this.apiDestinationState = x.apiDestinationState
this.creationTime = x.creationTime
this.lastModifiedTime = x.lastModifiedTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudwatchevents.model.CreateApiDestinationResponse = CreateApiDestinationResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}