
commonMain.aws.sdk.kotlin.services.ssm.model.DocumentVersionInfo.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* Version information about the document.
*/
public class DocumentVersionInfo private constructor(builder: Builder) {
/**
* The date the document was created.
*/
public val createdDate: aws.smithy.kotlin.runtime.time.Instant? = builder.createdDate
/**
* The friendly name of the SSM document. This value can differ for each version of the document. If you want to update this value, see UpdateDocument.
*/
public val displayName: kotlin.String? = builder.displayName
/**
* The document format, either JSON or YAML.
*/
public val documentFormat: aws.sdk.kotlin.services.ssm.model.DocumentFormat? = builder.documentFormat
/**
* The document version.
*/
public val documentVersion: kotlin.String? = builder.documentVersion
/**
* An identifier for the default version of the document.
*/
public val isDefaultVersion: kotlin.Boolean = builder.isDefaultVersion
/**
* The document name.
*/
public val name: kotlin.String? = builder.name
/**
* The current status of the approval review for the latest version of the document.
*/
public val reviewStatus: aws.sdk.kotlin.services.ssm.model.ReviewStatus? = builder.reviewStatus
/**
* The status of the SSM document, such as `Creating`, `Active`, `Failed`, and `Deleting`.
*/
public val status: aws.sdk.kotlin.services.ssm.model.DocumentStatus? = builder.status
/**
* A message returned by Amazon Web Services Systems Manager that explains the `Status` value. For example, a `Failed` status might be explained by the `StatusInformation` message, "The specified S3 bucket doesn't exist. Verify that the URL of the S3 bucket is correct."
*/
public val statusInformation: kotlin.String? = builder.statusInformation
/**
* 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.DocumentVersionInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DocumentVersionInfo(")
append("createdDate=$createdDate,")
append("displayName=$displayName,")
append("documentFormat=$documentFormat,")
append("documentVersion=$documentVersion,")
append("isDefaultVersion=$isDefaultVersion,")
append("name=$name,")
append("reviewStatus=$reviewStatus,")
append("status=$status,")
append("statusInformation=$statusInformation,")
append("versionName=$versionName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdDate?.hashCode() ?: 0
result = 31 * result + (displayName?.hashCode() ?: 0)
result = 31 * result + (documentFormat?.hashCode() ?: 0)
result = 31 * result + (documentVersion?.hashCode() ?: 0)
result = 31 * result + (isDefaultVersion.hashCode())
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (reviewStatus?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (statusInformation?.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 DocumentVersionInfo
if (createdDate != other.createdDate) return false
if (displayName != other.displayName) return false
if (documentFormat != other.documentFormat) return false
if (documentVersion != other.documentVersion) return false
if (isDefaultVersion != other.isDefaultVersion) return false
if (name != other.name) return false
if (reviewStatus != other.reviewStatus) return false
if (status != other.status) return false
if (statusInformation != other.statusInformation) return false
if (versionName != other.versionName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.DocumentVersionInfo = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The date the document was created.
*/
public var createdDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The friendly name of the SSM document. This value can differ for each version of the document. If you want to update this value, see UpdateDocument.
*/
public var displayName: kotlin.String? = null
/**
* The document format, either JSON or YAML.
*/
public var documentFormat: aws.sdk.kotlin.services.ssm.model.DocumentFormat? = null
/**
* The document version.
*/
public var documentVersion: kotlin.String? = null
/**
* An identifier for the default version of the document.
*/
public var isDefaultVersion: kotlin.Boolean = false
/**
* The document name.
*/
public var name: kotlin.String? = null
/**
* The current status of the approval review for the latest version of the document.
*/
public var reviewStatus: aws.sdk.kotlin.services.ssm.model.ReviewStatus? = null
/**
* The status of the SSM document, such as `Creating`, `Active`, `Failed`, and `Deleting`.
*/
public var status: aws.sdk.kotlin.services.ssm.model.DocumentStatus? = null
/**
* A message returned by Amazon Web Services Systems Manager that explains the `Status` value. For example, a `Failed` status might be explained by the `StatusInformation` message, "The specified S3 bucket doesn't exist. Verify that the URL of the S3 bucket is correct."
*/
public var statusInformation: kotlin.String? = null
/**
* 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.DocumentVersionInfo) : this() {
this.createdDate = x.createdDate
this.displayName = x.displayName
this.documentFormat = x.documentFormat
this.documentVersion = x.documentVersion
this.isDefaultVersion = x.isDefaultVersion
this.name = x.name
this.reviewStatus = x.reviewStatus
this.status = x.status
this.statusInformation = x.statusInformation
this.versionName = x.versionName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.DocumentVersionInfo = DocumentVersionInfo(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy