commonMain.aws.sdk.kotlin.services.fms.model.FailedItem.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fms.model
/**
* Details of a resource that failed when trying to update it's association to a resource set.
*/
public class FailedItem private constructor(builder: Builder) {
/**
* The reason the resource's association could not be updated.
*/
public val reason: aws.sdk.kotlin.services.fms.model.FailedItemReason? = builder.reason
/**
* The univeral resource indicator (URI) of the resource that failed.
*/
public val uri: kotlin.String? = builder.uri
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fms.model.FailedItem = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FailedItem(")
append("reason=$reason,")
append("uri=$uri")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = reason?.hashCode() ?: 0
result = 31 * result + (uri?.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 FailedItem
if (reason != other.reason) return false
if (uri != other.uri) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fms.model.FailedItem = Builder(this).apply(block).build()
public class Builder {
/**
* The reason the resource's association could not be updated.
*/
public var reason: aws.sdk.kotlin.services.fms.model.FailedItemReason? = null
/**
* The univeral resource indicator (URI) of the resource that failed.
*/
public var uri: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fms.model.FailedItem) : this() {
this.reason = x.reason
this.uri = x.uri
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fms.model.FailedItem = FailedItem(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy