commonMain.aws.sdk.kotlin.services.resiliencehub.model.UpdateRecommendationStatusItem.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of resiliencehub-jvm Show documentation
Show all versions of resiliencehub-jvm Show documentation
The AWS SDK for Kotlin client for resiliencehub
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.resiliencehub.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Defines the operational recommendation item that needs a status update.
*/
public class UpdateRecommendationStatusItem private constructor(builder: Builder) {
/**
* Resource identifier of the operational recommendation item.
*/
public val resourceId: kotlin.String? = builder.resourceId
/**
* Identifier of the target Amazon Web Services account.
*/
public val targetAccountId: kotlin.String? = builder.targetAccountId
/**
* Identifier of the target Amazon Web Services Region.
*/
public val targetRegion: kotlin.String? = builder.targetRegion
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.resiliencehub.model.UpdateRecommendationStatusItem = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateRecommendationStatusItem(")
append("resourceId=$resourceId,")
append("targetAccountId=$targetAccountId,")
append("targetRegion=$targetRegion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = resourceId?.hashCode() ?: 0
result = 31 * result + (targetAccountId?.hashCode() ?: 0)
result = 31 * result + (targetRegion?.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 UpdateRecommendationStatusItem
if (resourceId != other.resourceId) return false
if (targetAccountId != other.targetAccountId) return false
if (targetRegion != other.targetRegion) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.resiliencehub.model.UpdateRecommendationStatusItem = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Resource identifier of the operational recommendation item.
*/
public var resourceId: kotlin.String? = null
/**
* Identifier of the target Amazon Web Services account.
*/
public var targetAccountId: kotlin.String? = null
/**
* Identifier of the target Amazon Web Services Region.
*/
public var targetRegion: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.resiliencehub.model.UpdateRecommendationStatusItem) : this() {
this.resourceId = x.resourceId
this.targetAccountId = x.targetAccountId
this.targetRegion = x.targetRegion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.resiliencehub.model.UpdateRecommendationStatusItem = UpdateRecommendationStatusItem(this)
internal fun correctErrors(): Builder {
return this
}
}
}