commonMain.aws.sdk.kotlin.services.cloudwatchlogs.model.DeleteDestinationRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudwatchlogs Show documentation
Show all versions of cloudwatchlogs Show documentation
The AWS Kotlin client for CloudWatch Logs
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudwatchlogs.model
public class DeleteDestinationRequest private constructor(builder: Builder) {
/**
* The name of the destination.
*/
public val destinationName: kotlin.String? = builder.destinationName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudwatchlogs.model.DeleteDestinationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteDestinationRequest(")
append("destinationName=$destinationName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = destinationName?.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 DeleteDestinationRequest
if (destinationName != other.destinationName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudwatchlogs.model.DeleteDestinationRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The name of the destination.
*/
public var destinationName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudwatchlogs.model.DeleteDestinationRequest) : this() {
this.destinationName = x.destinationName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudwatchlogs.model.DeleteDestinationRequest = DeleteDestinationRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy