commonMain.aws.sdk.kotlin.services.cloudwatchlogs.model.GetDeliveryDestinationPolicyRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudwatchlogs.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetDeliveryDestinationPolicyRequest private constructor(builder: Builder) {
/**
* The name of the delivery destination that you want to retrieve the policy of.
*/
public val deliveryDestinationName: kotlin.String? = builder.deliveryDestinationName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudwatchlogs.model.GetDeliveryDestinationPolicyRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDeliveryDestinationPolicyRequest(")
append("deliveryDestinationName=$deliveryDestinationName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deliveryDestinationName?.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 GetDeliveryDestinationPolicyRequest
if (deliveryDestinationName != other.deliveryDestinationName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudwatchlogs.model.GetDeliveryDestinationPolicyRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the delivery destination that you want to retrieve the policy of.
*/
public var deliveryDestinationName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudwatchlogs.model.GetDeliveryDestinationPolicyRequest) : this() {
this.deliveryDestinationName = x.deliveryDestinationName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudwatchlogs.model.GetDeliveryDestinationPolicyRequest = GetDeliveryDestinationPolicyRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}