
commonMain.aws.sdk.kotlin.services.macie.model.FailedS3Resource.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.macie.model
/**
* (Discontinued) Includes details about the failed S3 resources.
*/
public class FailedS3Resource private constructor(builder: Builder) {
/**
* (Discontinued) The status code of a failed item.
*/
public val errorCode: kotlin.String? = builder.errorCode
/**
* (Discontinued) The error message of a failed item.
*/
public val errorMessage: kotlin.String? = builder.errorMessage
/**
* (Discontinued) The failed S3 resources.
*/
public val failedItem: aws.sdk.kotlin.services.macie.model.S3Resource? = builder.failedItem
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.macie.model.FailedS3Resource = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FailedS3Resource(")
append("errorCode=$errorCode,")
append("errorMessage=$errorMessage,")
append("failedItem=$failedItem")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = errorCode?.hashCode() ?: 0
result = 31 * result + (errorMessage?.hashCode() ?: 0)
result = 31 * result + (failedItem?.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 FailedS3Resource
if (errorCode != other.errorCode) return false
if (errorMessage != other.errorMessage) return false
if (failedItem != other.failedItem) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.macie.model.FailedS3Resource = Builder(this).apply(block).build()
public class Builder {
/**
* (Discontinued) The status code of a failed item.
*/
public var errorCode: kotlin.String? = null
/**
* (Discontinued) The error message of a failed item.
*/
public var errorMessage: kotlin.String? = null
/**
* (Discontinued) The failed S3 resources.
*/
public var failedItem: aws.sdk.kotlin.services.macie.model.S3Resource? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.macie.model.FailedS3Resource) : this() {
this.errorCode = x.errorCode
this.errorMessage = x.errorMessage
this.failedItem = x.failedItem
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.macie.model.FailedS3Resource = FailedS3Resource(this)
/**
* construct an [aws.sdk.kotlin.services.macie.model.S3Resource] inside the given [block]
*/
public fun failedItem(block: aws.sdk.kotlin.services.macie.model.S3Resource.Builder.() -> kotlin.Unit) {
this.failedItem = aws.sdk.kotlin.services.macie.model.S3Resource.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy