
commonMain.aws.sdk.kotlin.services.osis.model.PipelineSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.osis.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Summary information for an OpenSearch Ingestion pipeline.
*/
public class PipelineSummary private constructor(builder: Builder) {
/**
* The date and time when the pipeline was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The date and time when the pipeline was last updated.
*/
public val lastUpdatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedAt
/**
* The maximum pipeline capacity, in Ingestion Compute Units (ICUs).
*/
public val maxUnits: kotlin.Int? = builder.maxUnits
/**
* The minimum pipeline capacity, in Ingestion Compute Units (ICUs).
*/
public val minUnits: kotlin.Int? = builder.minUnits
/**
* The Amazon Resource Name (ARN) of the pipeline.
*/
public val pipelineArn: kotlin.String? = builder.pipelineArn
/**
* The name of the pipeline.
*/
public val pipelineName: kotlin.String? = builder.pipelineName
/**
* The current status of the pipeline.
*/
public val status: aws.sdk.kotlin.services.osis.model.PipelineStatus? = builder.status
/**
* Information about a pipeline's current status.
*/
public val statusReason: aws.sdk.kotlin.services.osis.model.PipelineStatusReason? = builder.statusReason
/**
* A list of tags associated with the given pipeline.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.osis.model.PipelineSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PipelineSummary(")
append("createdAt=$createdAt,")
append("lastUpdatedAt=$lastUpdatedAt,")
append("maxUnits=$maxUnits,")
append("minUnits=$minUnits,")
append("pipelineArn=$pipelineArn,")
append("pipelineName=$pipelineName,")
append("status=$status,")
append("statusReason=$statusReason,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdAt?.hashCode() ?: 0
result = 31 * result + (lastUpdatedAt?.hashCode() ?: 0)
result = 31 * result + (maxUnits ?: 0)
result = 31 * result + (minUnits ?: 0)
result = 31 * result + (pipelineArn?.hashCode() ?: 0)
result = 31 * result + (pipelineName?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (statusReason?.hashCode() ?: 0)
result = 31 * result + (tags?.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 PipelineSummary
if (createdAt != other.createdAt) return false
if (lastUpdatedAt != other.lastUpdatedAt) return false
if (maxUnits != other.maxUnits) return false
if (minUnits != other.minUnits) return false
if (pipelineArn != other.pipelineArn) return false
if (pipelineName != other.pipelineName) return false
if (status != other.status) return false
if (statusReason != other.statusReason) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.osis.model.PipelineSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The date and time when the pipeline was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The date and time when the pipeline was last updated.
*/
public var lastUpdatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The maximum pipeline capacity, in Ingestion Compute Units (ICUs).
*/
public var maxUnits: kotlin.Int? = null
/**
* The minimum pipeline capacity, in Ingestion Compute Units (ICUs).
*/
public var minUnits: kotlin.Int? = null
/**
* The Amazon Resource Name (ARN) of the pipeline.
*/
public var pipelineArn: kotlin.String? = null
/**
* The name of the pipeline.
*/
public var pipelineName: kotlin.String? = null
/**
* The current status of the pipeline.
*/
public var status: aws.sdk.kotlin.services.osis.model.PipelineStatus? = null
/**
* Information about a pipeline's current status.
*/
public var statusReason: aws.sdk.kotlin.services.osis.model.PipelineStatusReason? = null
/**
* A list of tags associated with the given pipeline.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.osis.model.PipelineSummary) : this() {
this.createdAt = x.createdAt
this.lastUpdatedAt = x.lastUpdatedAt
this.maxUnits = x.maxUnits
this.minUnits = x.minUnits
this.pipelineArn = x.pipelineArn
this.pipelineName = x.pipelineName
this.status = x.status
this.statusReason = x.statusReason
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.osis.model.PipelineSummary = PipelineSummary(this)
/**
* construct an [aws.sdk.kotlin.services.osis.model.PipelineStatusReason] inside the given [block]
*/
public fun statusReason(block: aws.sdk.kotlin.services.osis.model.PipelineStatusReason.Builder.() -> kotlin.Unit) {
this.statusReason = aws.sdk.kotlin.services.osis.model.PipelineStatusReason.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy