commonMain.aws.sdk.kotlin.services.eventbridge.model.RemoveTargetsResultEntry.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eventbridge-jvm Show documentation
Show all versions of eventbridge-jvm Show documentation
The AWS SDK for Kotlin client for EventBridge
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.eventbridge.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Represents a target that failed to be removed from a rule.
*/
public class RemoveTargetsResultEntry private constructor(builder: Builder) {
/**
* The error code that indicates why the target removal failed. If the value is `ConcurrentModificationException`, too many requests were made at the same time.
*/
public val errorCode: kotlin.String? = builder.errorCode
/**
* The error message that explains why the target removal failed.
*/
public val errorMessage: kotlin.String? = builder.errorMessage
/**
* The ID of the target.
*/
public val targetId: kotlin.String? = builder.targetId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eventbridge.model.RemoveTargetsResultEntry = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RemoveTargetsResultEntry(")
append("errorCode=$errorCode,")
append("errorMessage=$errorMessage,")
append("targetId=$targetId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = errorCode?.hashCode() ?: 0
result = 31 * result + (errorMessage?.hashCode() ?: 0)
result = 31 * result + (targetId?.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 RemoveTargetsResultEntry
if (errorCode != other.errorCode) return false
if (errorMessage != other.errorMessage) return false
if (targetId != other.targetId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eventbridge.model.RemoveTargetsResultEntry = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The error code that indicates why the target removal failed. If the value is `ConcurrentModificationException`, too many requests were made at the same time.
*/
public var errorCode: kotlin.String? = null
/**
* The error message that explains why the target removal failed.
*/
public var errorMessage: kotlin.String? = null
/**
* The ID of the target.
*/
public var targetId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eventbridge.model.RemoveTargetsResultEntry) : this() {
this.errorCode = x.errorCode
this.errorMessage = x.errorMessage
this.targetId = x.targetId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eventbridge.model.RemoveTargetsResultEntry = RemoveTargetsResultEntry(this)
internal fun correctErrors(): Builder {
return this
}
}
}