
commonMain.aws.sdk.kotlin.services.ssm.model.DescribeDocumentRequest.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
public class DescribeDocumentRequest private constructor(builder: Builder) {
/**
* The document version for which you want information. Can be a specific version or the default version.
*/
public val documentVersion: kotlin.String? = builder.documentVersion
/**
* The name of the SSM document.
*/
public val name: kotlin.String? = builder.name
/**
* An optional field specifying the version of the artifact associated with the document. For example, 12.6. This value is unique across all versions of a document, and can't be changed.
*/
public val versionName: kotlin.String? = builder.versionName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.DescribeDocumentRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeDocumentRequest(")
append("documentVersion=$documentVersion,")
append("name=$name,")
append("versionName=$versionName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = documentVersion?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (versionName?.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 DescribeDocumentRequest
if (documentVersion != other.documentVersion) return false
if (name != other.name) return false
if (versionName != other.versionName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.DescribeDocumentRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The document version for which you want information. Can be a specific version or the default version.
*/
public var documentVersion: kotlin.String? = null
/**
* The name of the SSM document.
*/
public var name: kotlin.String? = null
/**
* An optional field specifying the version of the artifact associated with the document. For example, 12.6. This value is unique across all versions of a document, and can't be changed.
*/
public var versionName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.DescribeDocumentRequest) : this() {
this.documentVersion = x.documentVersion
this.name = x.name
this.versionName = x.versionName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.DescribeDocumentRequest = DescribeDocumentRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy