
commonMain.aws.sdk.kotlin.services.guardduty.model.Destination.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.guardduty.model
/**
* Contains information about the publishing destination, including the ID, type, and status.
*/
class Destination private constructor(builder: Builder) {
/**
* The unique ID of the publishing destination.
*/
val destinationId: kotlin.String? = builder.destinationId
/**
* The type of resource used for the publishing destination. Currently, only Amazon S3 buckets are supported.
*/
val destinationType: aws.sdk.kotlin.services.guardduty.model.DestinationType? = builder.destinationType
/**
* The status of the publishing destination.
*/
val status: aws.sdk.kotlin.services.guardduty.model.PublishingStatus? = builder.status
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.guardduty.model.Destination = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Destination(")
append("destinationId=$destinationId,")
append("destinationType=$destinationType,")
append("status=$status)")
}
override fun hashCode(): kotlin.Int {
var result = destinationId?.hashCode() ?: 0
result = 31 * result + (destinationType?.hashCode() ?: 0)
result = 31 * result + (status?.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 Destination
if (destinationId != other.destinationId) return false
if (destinationType != other.destinationType) return false
if (status != other.status) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.guardduty.model.Destination = Builder(this).apply(block).build()
class Builder {
/**
* The unique ID of the publishing destination.
*/
var destinationId: kotlin.String? = null
/**
* The type of resource used for the publishing destination. Currently, only Amazon S3 buckets are supported.
*/
var destinationType: aws.sdk.kotlin.services.guardduty.model.DestinationType? = null
/**
* The status of the publishing destination.
*/
var status: aws.sdk.kotlin.services.guardduty.model.PublishingStatus? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.guardduty.model.Destination) : this() {
this.destinationId = x.destinationId
this.destinationType = x.destinationType
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.guardduty.model.Destination = Destination(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy