commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.ReplicationTaskAssessmentResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databasemigrationservice-jvm Show documentation
Show all versions of databasemigrationservice-jvm Show documentation
The AWS SDK for Kotlin client for Database Migration Service
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.databasemigrationservice.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* The task assessment report in JSON format.
*/
public class ReplicationTaskAssessmentResult private constructor(builder: Builder) {
/**
* The task assessment results in JSON format.
*
* The response object only contains this field if you provide DescribeReplicationTaskAssessmentResultsMessage$ReplicationTaskArn in the request.
*/
public val assessmentResults: kotlin.String? = builder.assessmentResults
/**
* The file containing the results of the task assessment.
*/
public val assessmentResultsFile: kotlin.String? = builder.assessmentResultsFile
/**
* The status of the task assessment.
*/
public val assessmentStatus: kotlin.String? = builder.assessmentStatus
/**
* The Amazon Resource Name (ARN) of the replication task.
*/
public val replicationTaskArn: kotlin.String? = builder.replicationTaskArn
/**
* The replication task identifier of the task on which the task assessment was run.
*/
public val replicationTaskIdentifier: kotlin.String? = builder.replicationTaskIdentifier
/**
* The date the task assessment was completed.
*/
public val replicationTaskLastAssessmentDate: aws.smithy.kotlin.runtime.time.Instant? = builder.replicationTaskLastAssessmentDate
/**
* The URL of the S3 object containing the task assessment results.
*
* The response object only contains this field if you provide DescribeReplicationTaskAssessmentResultsMessage$ReplicationTaskArn in the request.
*/
public val s3ObjectUrl: kotlin.String? = builder.s3ObjectUrl
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databasemigrationservice.model.ReplicationTaskAssessmentResult = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ReplicationTaskAssessmentResult(")
append("assessmentResults=$assessmentResults,")
append("assessmentResultsFile=$assessmentResultsFile,")
append("assessmentStatus=$assessmentStatus,")
append("replicationTaskArn=$replicationTaskArn,")
append("replicationTaskIdentifier=$replicationTaskIdentifier,")
append("replicationTaskLastAssessmentDate=$replicationTaskLastAssessmentDate,")
append("s3ObjectUrl=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = assessmentResults?.hashCode() ?: 0
result = 31 * result + (assessmentResultsFile?.hashCode() ?: 0)
result = 31 * result + (assessmentStatus?.hashCode() ?: 0)
result = 31 * result + (replicationTaskArn?.hashCode() ?: 0)
result = 31 * result + (replicationTaskIdentifier?.hashCode() ?: 0)
result = 31 * result + (replicationTaskLastAssessmentDate?.hashCode() ?: 0)
result = 31 * result + (s3ObjectUrl?.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 ReplicationTaskAssessmentResult
if (assessmentResults != other.assessmentResults) return false
if (assessmentResultsFile != other.assessmentResultsFile) return false
if (assessmentStatus != other.assessmentStatus) return false
if (replicationTaskArn != other.replicationTaskArn) return false
if (replicationTaskIdentifier != other.replicationTaskIdentifier) return false
if (replicationTaskLastAssessmentDate != other.replicationTaskLastAssessmentDate) return false
if (s3ObjectUrl != other.s3ObjectUrl) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databasemigrationservice.model.ReplicationTaskAssessmentResult = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The task assessment results in JSON format.
*
* The response object only contains this field if you provide DescribeReplicationTaskAssessmentResultsMessage$ReplicationTaskArn in the request.
*/
public var assessmentResults: kotlin.String? = null
/**
* The file containing the results of the task assessment.
*/
public var assessmentResultsFile: kotlin.String? = null
/**
* The status of the task assessment.
*/
public var assessmentStatus: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the replication task.
*/
public var replicationTaskArn: kotlin.String? = null
/**
* The replication task identifier of the task on which the task assessment was run.
*/
public var replicationTaskIdentifier: kotlin.String? = null
/**
* The date the task assessment was completed.
*/
public var replicationTaskLastAssessmentDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The URL of the S3 object containing the task assessment results.
*
* The response object only contains this field if you provide DescribeReplicationTaskAssessmentResultsMessage$ReplicationTaskArn in the request.
*/
public var s3ObjectUrl: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.ReplicationTaskAssessmentResult) : this() {
this.assessmentResults = x.assessmentResults
this.assessmentResultsFile = x.assessmentResultsFile
this.assessmentStatus = x.assessmentStatus
this.replicationTaskArn = x.replicationTaskArn
this.replicationTaskIdentifier = x.replicationTaskIdentifier
this.replicationTaskLastAssessmentDate = x.replicationTaskLastAssessmentDate
this.s3ObjectUrl = x.s3ObjectUrl
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databasemigrationservice.model.ReplicationTaskAssessmentResult = ReplicationTaskAssessmentResult(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy