
commonMain.aws.sdk.kotlin.services.ssm.model.UpdateDocumentMetadataRequest.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 UpdateDocumentMetadataRequest private constructor(builder: Builder) {
/**
* The change template review details to update.
*/
public val documentReviews: aws.sdk.kotlin.services.ssm.model.DocumentReviews? = builder.documentReviews
/**
* The version of a change template in which to update approval metadata.
*/
public val documentVersion: kotlin.String? = builder.documentVersion
/**
* The name of the change template for which a version's metadata is to be updated.
*/
public val name: kotlin.String? = builder.name
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.UpdateDocumentMetadataRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateDocumentMetadataRequest(")
append("documentReviews=$documentReviews,")
append("documentVersion=$documentVersion,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = documentReviews?.hashCode() ?: 0
result = 31 * result + (documentVersion?.hashCode() ?: 0)
result = 31 * result + (name?.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 UpdateDocumentMetadataRequest
if (documentReviews != other.documentReviews) return false
if (documentVersion != other.documentVersion) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.UpdateDocumentMetadataRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The change template review details to update.
*/
public var documentReviews: aws.sdk.kotlin.services.ssm.model.DocumentReviews? = null
/**
* The version of a change template in which to update approval metadata.
*/
public var documentVersion: kotlin.String? = null
/**
* The name of the change template for which a version's metadata is to be updated.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.UpdateDocumentMetadataRequest) : this() {
this.documentReviews = x.documentReviews
this.documentVersion = x.documentVersion
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.UpdateDocumentMetadataRequest = UpdateDocumentMetadataRequest(this)
/**
* construct an [aws.sdk.kotlin.services.ssm.model.DocumentReviews] inside the given [block]
*/
public fun documentReviews(block: aws.sdk.kotlin.services.ssm.model.DocumentReviews.Builder.() -> kotlin.Unit) {
this.documentReviews = aws.sdk.kotlin.services.ssm.model.DocumentReviews.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy