
commonMain.aws.sdk.kotlin.services.ssm.model.TargetPreview.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about the resources that would be included in the actual runbook execution, if it were to be run.
*/
public class TargetPreview private constructor(builder: Builder) {
/**
* The number of resources of a certain type included in an execution preview.
*/
public val count: kotlin.Int = builder.count
/**
* A type of resource that was included in the execution preview.
*/
public val targetType: kotlin.String? = builder.targetType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.TargetPreview = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TargetPreview(")
append("count=$count,")
append("targetType=$targetType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = count
result = 31 * result + (targetType?.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 TargetPreview
if (count != other.count) return false
if (targetType != other.targetType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.TargetPreview = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The number of resources of a certain type included in an execution preview.
*/
public var count: kotlin.Int = 0
/**
* A type of resource that was included in the execution preview.
*/
public var targetType: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.TargetPreview) : this() {
this.count = x.count
this.targetType = x.targetType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.TargetPreview = TargetPreview(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy