
commonMain.aws.sdk.kotlin.services.cloudwatchlogs.model.Delivery.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudwatchlogs.model
/**
* This structure contains information about one *delivery* in your account.
*
* A delivery is a connection between a logical *delivery source* and a logical *delivery destination*.
*
* For more information, see [CreateDelivery](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html).
*
* You can't update an existing delivery. You can only create and delete deliveries.
*/
public class Delivery private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) that uniquely identifies this delivery.
*/
public val arn: kotlin.String? = builder.arn
/**
* The ARN of the delivery destination that is associated with this delivery.
*/
public val deliveryDestinationArn: kotlin.String? = builder.deliveryDestinationArn
/**
* Displays whether the delivery destination associated with this delivery is CloudWatch Logs, Amazon S3, or Kinesis Data Firehose.
*/
public val deliveryDestinationType: aws.sdk.kotlin.services.cloudwatchlogs.model.DeliveryDestinationType? = builder.deliveryDestinationType
/**
* The name of the delivery source that is associated with this delivery.
*/
public val deliverySourceName: kotlin.String? = builder.deliverySourceName
/**
* The unique ID that identifies this delivery in your account.
*/
public val id: kotlin.String? = builder.id
/**
* The tags that have been assigned to this delivery.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudwatchlogs.model.Delivery = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Delivery(")
append("arn=$arn,")
append("deliveryDestinationArn=$deliveryDestinationArn,")
append("deliveryDestinationType=$deliveryDestinationType,")
append("deliverySourceName=$deliverySourceName,")
append("id=$id,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (deliveryDestinationArn?.hashCode() ?: 0)
result = 31 * result + (deliveryDestinationType?.hashCode() ?: 0)
result = 31 * result + (deliverySourceName?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (tags?.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 Delivery
if (arn != other.arn) return false
if (deliveryDestinationArn != other.deliveryDestinationArn) return false
if (deliveryDestinationType != other.deliveryDestinationType) return false
if (deliverySourceName != other.deliverySourceName) return false
if (id != other.id) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudwatchlogs.model.Delivery = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Resource Name (ARN) that uniquely identifies this delivery.
*/
public var arn: kotlin.String? = null
/**
* The ARN of the delivery destination that is associated with this delivery.
*/
public var deliveryDestinationArn: kotlin.String? = null
/**
* Displays whether the delivery destination associated with this delivery is CloudWatch Logs, Amazon S3, or Kinesis Data Firehose.
*/
public var deliveryDestinationType: aws.sdk.kotlin.services.cloudwatchlogs.model.DeliveryDestinationType? = null
/**
* The name of the delivery source that is associated with this delivery.
*/
public var deliverySourceName: kotlin.String? = null
/**
* The unique ID that identifies this delivery in your account.
*/
public var id: kotlin.String? = null
/**
* The tags that have been assigned to this delivery.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudwatchlogs.model.Delivery) : this() {
this.arn = x.arn
this.deliveryDestinationArn = x.deliveryDestinationArn
this.deliveryDestinationType = x.deliveryDestinationType
this.deliverySourceName = x.deliverySourceName
this.id = x.id
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudwatchlogs.model.Delivery = Delivery(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy