commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.CollectorHealthCheck.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
/**
* Describes the last Fleet Advisor collector health check.
*/
public class CollectorHealthCheck private constructor(builder: Builder) {
/**
* The status of the Fleet Advisor collector.
*/
public val collectorStatus: aws.sdk.kotlin.services.databasemigrationservice.model.CollectorStatus? = builder.collectorStatus
/**
* Whether the local collector can access its Amazon S3 bucket.
*/
public val localCollectorS3Access: kotlin.Boolean? = builder.localCollectorS3Access
/**
* Whether the role that you provided when creating the Fleet Advisor collector has sufficient permissions to access the Fleet Advisor web collector.
*/
public val webCollectorGrantedRoleBasedAccess: kotlin.Boolean? = builder.webCollectorGrantedRoleBasedAccess
/**
* Whether the web collector can access its Amazon S3 bucket.
*/
public val webCollectorS3Access: kotlin.Boolean? = builder.webCollectorS3Access
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databasemigrationservice.model.CollectorHealthCheck = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CollectorHealthCheck(")
append("collectorStatus=$collectorStatus,")
append("localCollectorS3Access=$localCollectorS3Access,")
append("webCollectorGrantedRoleBasedAccess=$webCollectorGrantedRoleBasedAccess,")
append("webCollectorS3Access=$webCollectorS3Access")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = collectorStatus?.hashCode() ?: 0
result = 31 * result + (localCollectorS3Access?.hashCode() ?: 0)
result = 31 * result + (webCollectorGrantedRoleBasedAccess?.hashCode() ?: 0)
result = 31 * result + (webCollectorS3Access?.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 CollectorHealthCheck
if (collectorStatus != other.collectorStatus) return false
if (localCollectorS3Access != other.localCollectorS3Access) return false
if (webCollectorGrantedRoleBasedAccess != other.webCollectorGrantedRoleBasedAccess) return false
if (webCollectorS3Access != other.webCollectorS3Access) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databasemigrationservice.model.CollectorHealthCheck = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The status of the Fleet Advisor collector.
*/
public var collectorStatus: aws.sdk.kotlin.services.databasemigrationservice.model.CollectorStatus? = null
/**
* Whether the local collector can access its Amazon S3 bucket.
*/
public var localCollectorS3Access: kotlin.Boolean? = null
/**
* Whether the role that you provided when creating the Fleet Advisor collector has sufficient permissions to access the Fleet Advisor web collector.
*/
public var webCollectorGrantedRoleBasedAccess: kotlin.Boolean? = null
/**
* Whether the web collector can access its Amazon S3 bucket.
*/
public var webCollectorS3Access: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.CollectorHealthCheck) : this() {
this.collectorStatus = x.collectorStatus
this.localCollectorS3Access = x.localCollectorS3Access
this.webCollectorGrantedRoleBasedAccess = x.webCollectorGrantedRoleBasedAccess
this.webCollectorS3Access = x.webCollectorS3Access
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databasemigrationservice.model.CollectorHealthCheck = CollectorHealthCheck(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy