
commonMain.aws.sdk.kotlin.services.wellarchitected.model.WorkloadDiscoveryConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
/**
* Discovery configuration associated to the workload.
*/
public class WorkloadDiscoveryConfig private constructor(builder: Builder) {
/**
* Discovery integration status in respect to Trusted Advisor for the workload.
*/
public val trustedAdvisorIntegrationStatus: aws.sdk.kotlin.services.wellarchitected.model.TrustedAdvisorIntegrationStatus? = builder.trustedAdvisorIntegrationStatus
/**
* The mode to use for identifying resources associated with the workload.
*
* You can specify `WORKLOAD_METADATA`, `APP_REGISTRY`, or both.
*/
public val workloadResourceDefinition: List? = builder.workloadResourceDefinition
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.WorkloadDiscoveryConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("WorkloadDiscoveryConfig(")
append("trustedAdvisorIntegrationStatus=$trustedAdvisorIntegrationStatus,")
append("workloadResourceDefinition=$workloadResourceDefinition")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = trustedAdvisorIntegrationStatus?.hashCode() ?: 0
result = 31 * result + (workloadResourceDefinition?.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 WorkloadDiscoveryConfig
if (trustedAdvisorIntegrationStatus != other.trustedAdvisorIntegrationStatus) return false
if (workloadResourceDefinition != other.workloadResourceDefinition) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.WorkloadDiscoveryConfig = Builder(this).apply(block).build()
public class Builder {
/**
* Discovery integration status in respect to Trusted Advisor for the workload.
*/
public var trustedAdvisorIntegrationStatus: aws.sdk.kotlin.services.wellarchitected.model.TrustedAdvisorIntegrationStatus? = null
/**
* The mode to use for identifying resources associated with the workload.
*
* You can specify `WORKLOAD_METADATA`, `APP_REGISTRY`, or both.
*/
public var workloadResourceDefinition: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.WorkloadDiscoveryConfig) : this() {
this.trustedAdvisorIntegrationStatus = x.trustedAdvisorIntegrationStatus
this.workloadResourceDefinition = x.workloadResourceDefinition
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.WorkloadDiscoveryConfig = WorkloadDiscoveryConfig(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy