commonMain.aws.sdk.kotlin.services.finspace.model.CreateKxChangesetResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finspace-jvm Show documentation
Show all versions of finspace-jvm Show documentation
The AWS SDK for Kotlin client for finspace
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.finspace.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class CreateKxChangesetResponse private constructor(builder: Builder) {
/**
* A list of change requests.
*/
public val changeRequests: List? = builder.changeRequests
/**
* A unique identifier for the changeset.
*/
public val changesetId: kotlin.String? = builder.changesetId
/**
* The timestamp at which the changeset was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
*/
public val createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTimestamp
/**
* The name of the kdb database.
*/
public val databaseName: kotlin.String? = builder.databaseName
/**
* A unique identifier for the kdb environment.
*/
public val environmentId: kotlin.String? = builder.environmentId
/**
* The details of the error that you receive when creating a changeset. It consists of the type of error and the error message.
*/
public val errorInfo: aws.sdk.kotlin.services.finspace.model.ErrorInfo? = builder.errorInfo
/**
* The timestamp at which the changeset was updated in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
*/
public val lastModifiedTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedTimestamp
/**
* Status of the changeset creation process.
* + Pending – Changeset creation is pending.
* + Processing – Changeset creation is running.
* + Failed – Changeset creation has failed.
* + Complete – Changeset creation has succeeded.
*/
public val status: aws.sdk.kotlin.services.finspace.model.ChangesetStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.finspace.model.CreateKxChangesetResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateKxChangesetResponse(")
append("changeRequests=$changeRequests,")
append("changesetId=$changesetId,")
append("createdTimestamp=$createdTimestamp,")
append("databaseName=$databaseName,")
append("environmentId=$environmentId,")
append("errorInfo=$errorInfo,")
append("lastModifiedTimestamp=$lastModifiedTimestamp,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = changeRequests?.hashCode() ?: 0
result = 31 * result + (changesetId?.hashCode() ?: 0)
result = 31 * result + (createdTimestamp?.hashCode() ?: 0)
result = 31 * result + (databaseName?.hashCode() ?: 0)
result = 31 * result + (environmentId?.hashCode() ?: 0)
result = 31 * result + (errorInfo?.hashCode() ?: 0)
result = 31 * result + (lastModifiedTimestamp?.hashCode() ?: 0)
result = 31 * result + (status?.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 CreateKxChangesetResponse
if (changeRequests != other.changeRequests) return false
if (changesetId != other.changesetId) return false
if (createdTimestamp != other.createdTimestamp) return false
if (databaseName != other.databaseName) return false
if (environmentId != other.environmentId) return false
if (errorInfo != other.errorInfo) return false
if (lastModifiedTimestamp != other.lastModifiedTimestamp) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.finspace.model.CreateKxChangesetResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of change requests.
*/
public var changeRequests: List? = null
/**
* A unique identifier for the changeset.
*/
public var changesetId: kotlin.String? = null
/**
* The timestamp at which the changeset was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
*/
public var createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name of the kdb database.
*/
public var databaseName: kotlin.String? = null
/**
* A unique identifier for the kdb environment.
*/
public var environmentId: kotlin.String? = null
/**
* The details of the error that you receive when creating a changeset. It consists of the type of error and the error message.
*/
public var errorInfo: aws.sdk.kotlin.services.finspace.model.ErrorInfo? = null
/**
* The timestamp at which the changeset was updated in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
*/
public var lastModifiedTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Status of the changeset creation process.
* + Pending – Changeset creation is pending.
* + Processing – Changeset creation is running.
* + Failed – Changeset creation has failed.
* + Complete – Changeset creation has succeeded.
*/
public var status: aws.sdk.kotlin.services.finspace.model.ChangesetStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.finspace.model.CreateKxChangesetResponse) : this() {
this.changeRequests = x.changeRequests
this.changesetId = x.changesetId
this.createdTimestamp = x.createdTimestamp
this.databaseName = x.databaseName
this.environmentId = x.environmentId
this.errorInfo = x.errorInfo
this.lastModifiedTimestamp = x.lastModifiedTimestamp
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.finspace.model.CreateKxChangesetResponse = CreateKxChangesetResponse(this)
/**
* construct an [aws.sdk.kotlin.services.finspace.model.ErrorInfo] inside the given [block]
*/
public fun errorInfo(block: aws.sdk.kotlin.services.finspace.model.ErrorInfo.Builder.() -> kotlin.Unit) {
this.errorInfo = aws.sdk.kotlin.services.finspace.model.ErrorInfo.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy