commonMain.aws.sdk.kotlin.services.route53recoveryreadiness.model.ResourceResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of route53recoveryreadiness-jvm Show documentation
Show all versions of route53recoveryreadiness-jvm Show documentation
The AWS SDK for Kotlin client for Route53 Recovery Readiness
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.route53recoveryreadiness.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* The result of a successful Resource request, with status for an individual resource.
*/
public class ResourceResult private constructor(builder: Builder) {
/**
* The component id of the resource.
*/
public val componentId: kotlin.String? = builder.componentId
/**
* The time (UTC) that the resource was last checked for readiness, in ISO-8601 format.
*/
public val lastCheckedTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.lastCheckedTimestamp
/**
* The readiness of a resource.
*/
public val readiness: aws.sdk.kotlin.services.route53recoveryreadiness.model.Readiness? = builder.readiness
/**
* The Amazon Resource Name (ARN) of the resource.
*/
public val resourceArn: kotlin.String? = builder.resourceArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53recoveryreadiness.model.ResourceResult = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ResourceResult(")
append("componentId=$componentId,")
append("lastCheckedTimestamp=$lastCheckedTimestamp,")
append("readiness=$readiness,")
append("resourceArn=$resourceArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = componentId?.hashCode() ?: 0
result = 31 * result + (lastCheckedTimestamp?.hashCode() ?: 0)
result = 31 * result + (readiness?.hashCode() ?: 0)
result = 31 * result + (resourceArn?.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 ResourceResult
if (componentId != other.componentId) return false
if (lastCheckedTimestamp != other.lastCheckedTimestamp) return false
if (readiness != other.readiness) return false
if (resourceArn != other.resourceArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53recoveryreadiness.model.ResourceResult = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The component id of the resource.
*/
public var componentId: kotlin.String? = null
/**
* The time (UTC) that the resource was last checked for readiness, in ISO-8601 format.
*/
public var lastCheckedTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The readiness of a resource.
*/
public var readiness: aws.sdk.kotlin.services.route53recoveryreadiness.model.Readiness? = null
/**
* The Amazon Resource Name (ARN) of the resource.
*/
public var resourceArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53recoveryreadiness.model.ResourceResult) : this() {
this.componentId = x.componentId
this.lastCheckedTimestamp = x.lastCheckedTimestamp
this.readiness = x.readiness
this.resourceArn = x.resourceArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53recoveryreadiness.model.ResourceResult = ResourceResult(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy