
commonMain.aws.sdk.kotlin.services.cloudwatchlogs.model.CreateDeliveryRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudwatchlogs.model
public class CreateDeliveryRequest private constructor(builder: Builder) {
/**
* The ARN of the delivery destination to use for this delivery.
*/
public val deliveryDestinationArn: kotlin.String? = builder.deliveryDestinationArn
/**
* The name of the delivery source to use for this delivery.
*/
public val deliverySourceName: kotlin.String? = builder.deliverySourceName
/**
* An optional list of key-value pairs to associate with the resource.
*
* For more information about tagging, see [Tagging Amazon Web Services resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html)
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudwatchlogs.model.CreateDeliveryRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateDeliveryRequest(")
append("deliveryDestinationArn=$deliveryDestinationArn,")
append("deliverySourceName=$deliverySourceName,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deliveryDestinationArn?.hashCode() ?: 0
result = 31 * result + (deliverySourceName?.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 CreateDeliveryRequest
if (deliveryDestinationArn != other.deliveryDestinationArn) return false
if (deliverySourceName != other.deliverySourceName) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudwatchlogs.model.CreateDeliveryRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The ARN of the delivery destination to use for this delivery.
*/
public var deliveryDestinationArn: kotlin.String? = null
/**
* The name of the delivery source to use for this delivery.
*/
public var deliverySourceName: kotlin.String? = null
/**
* An optional list of key-value pairs to associate with the resource.
*
* For more information about tagging, see [Tagging Amazon Web Services resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html)
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudwatchlogs.model.CreateDeliveryRequest) : this() {
this.deliveryDestinationArn = x.deliveryDestinationArn
this.deliverySourceName = x.deliverySourceName
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudwatchlogs.model.CreateDeliveryRequest = CreateDeliveryRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy