
commonMain.aws.sdk.kotlin.services.ssm.model.DocumentDefaultVersionDescription.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
/**
* A default version of a document.
*/
public class DocumentDefaultVersionDescription private constructor(builder: Builder) {
/**
* The default version of the document.
*/
public val defaultVersion: kotlin.String? = builder.defaultVersion
/**
* The default version of the artifact associated with the document.
*/
public val defaultVersionName: kotlin.String? = builder.defaultVersionName
/**
* The name of the document.
*/
public val name: kotlin.String? = builder.name
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.DocumentDefaultVersionDescription = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DocumentDefaultVersionDescription(")
append("defaultVersion=$defaultVersion,")
append("defaultVersionName=$defaultVersionName,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = defaultVersion?.hashCode() ?: 0
result = 31 * result + (defaultVersionName?.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 DocumentDefaultVersionDescription
if (defaultVersion != other.defaultVersion) return false
if (defaultVersionName != other.defaultVersionName) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.DocumentDefaultVersionDescription = Builder(this).apply(block).build()
public class Builder {
/**
* The default version of the document.
*/
public var defaultVersion: kotlin.String? = null
/**
* The default version of the artifact associated with the document.
*/
public var defaultVersionName: kotlin.String? = null
/**
* The name of the document.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.DocumentDefaultVersionDescription) : this() {
this.defaultVersion = x.defaultVersion
this.defaultVersionName = x.defaultVersionName
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.DocumentDefaultVersionDescription = DocumentDefaultVersionDescription(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy