commonMain.aws.sdk.kotlin.services.cloudwatchlogs.model.Entity.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudwatchlogs-jvm Show documentation
Show all versions of cloudwatchlogs-jvm Show documentation
The AWS SDK for Kotlin client for CloudWatch Logs
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudwatchlogs.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Reserved for internal use.
*/
public class Entity private constructor(builder: Builder) {
/**
* Reserved for internal use.
*/
public val attributes: Map? = builder.attributes
/**
* Reserved for internal use.
*/
public val keyAttributes: Map? = builder.keyAttributes
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudwatchlogs.model.Entity = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Entity(")
append("attributes=$attributes,")
append("keyAttributes=$keyAttributes")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = attributes?.hashCode() ?: 0
result = 31 * result + (keyAttributes?.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 Entity
if (attributes != other.attributes) return false
if (keyAttributes != other.keyAttributes) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudwatchlogs.model.Entity = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Reserved for internal use.
*/
public var attributes: Map? = null
/**
* Reserved for internal use.
*/
public var keyAttributes: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudwatchlogs.model.Entity) : this() {
this.attributes = x.attributes
this.keyAttributes = x.keyAttributes
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudwatchlogs.model.Entity = Entity(this)
internal fun correctErrors(): Builder {
return this
}
}
}