
commonMain.aws.sdk.kotlin.services.kafka.model.ClusterOperationV2Summary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kafka.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Returns information about a cluster operation.
*/
public class ClusterOperationV2Summary private constructor(builder: Builder) {
/**
* ARN of the cluster.
*/
public val clusterArn: kotlin.String? = builder.clusterArn
/**
* Type of the backend cluster.
*/
public val clusterType: aws.sdk.kotlin.services.kafka.model.ClusterType? = builder.clusterType
/**
* The time at which the operation finished.
*/
public val endTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endTime
/**
* ARN of the cluster operation.
*/
public val operationArn: kotlin.String? = builder.operationArn
/**
* State of the cluster operation.
*/
public val operationState: kotlin.String? = builder.operationState
/**
* Type of the cluster operation.
*/
public val operationType: kotlin.String? = builder.operationType
/**
* The time at which operation was started.
*/
public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kafka.model.ClusterOperationV2Summary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ClusterOperationV2Summary(")
append("clusterArn=$clusterArn,")
append("clusterType=$clusterType,")
append("endTime=$endTime,")
append("operationArn=$operationArn,")
append("operationState=$operationState,")
append("operationType=$operationType,")
append("startTime=$startTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clusterArn?.hashCode() ?: 0
result = 31 * result + (clusterType?.hashCode() ?: 0)
result = 31 * result + (endTime?.hashCode() ?: 0)
result = 31 * result + (operationArn?.hashCode() ?: 0)
result = 31 * result + (operationState?.hashCode() ?: 0)
result = 31 * result + (operationType?.hashCode() ?: 0)
result = 31 * result + (startTime?.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 ClusterOperationV2Summary
if (clusterArn != other.clusterArn) return false
if (clusterType != other.clusterType) return false
if (endTime != other.endTime) return false
if (operationArn != other.operationArn) return false
if (operationState != other.operationState) return false
if (operationType != other.operationType) return false
if (startTime != other.startTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kafka.model.ClusterOperationV2Summary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* ARN of the cluster.
*/
public var clusterArn: kotlin.String? = null
/**
* Type of the backend cluster.
*/
public var clusterType: aws.sdk.kotlin.services.kafka.model.ClusterType? = null
/**
* The time at which the operation finished.
*/
public var endTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* ARN of the cluster operation.
*/
public var operationArn: kotlin.String? = null
/**
* State of the cluster operation.
*/
public var operationState: kotlin.String? = null
/**
* Type of the cluster operation.
*/
public var operationType: kotlin.String? = null
/**
* The time at which operation was started.
*/
public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kafka.model.ClusterOperationV2Summary) : this() {
this.clusterArn = x.clusterArn
this.clusterType = x.clusterType
this.endTime = x.endTime
this.operationArn = x.operationArn
this.operationState = x.operationState
this.operationType = x.operationType
this.startTime = x.startTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kafka.model.ClusterOperationV2Summary = ClusterOperationV2Summary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy