commonMain.aws.sdk.kotlin.services.appfabric.model.IngestionSummary.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appfabric-jvm Show documentation
Show all versions of appfabric-jvm Show documentation
The AWS SDK for Kotlin client for AppFabric
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appfabric.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains a summary of an ingestion.
*/
public class IngestionSummary private constructor(builder: Builder) {
/**
* The name of the application.
*/
public val app: kotlin.String = requireNotNull(builder.app) { "A non-null value must be provided for app" }
/**
* The Amazon Resource Name (ARN) of the ingestion.
*/
public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
/**
* The status of the ingestion.
*/
public val state: aws.sdk.kotlin.services.appfabric.model.IngestionState = requireNotNull(builder.state) { "A non-null value must be provided for state" }
/**
* The ID of the application tenant.
*/
public val tenantId: kotlin.String = requireNotNull(builder.tenantId) { "A non-null value must be provided for tenantId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appfabric.model.IngestionSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("IngestionSummary(")
append("app=$app,")
append("arn=$arn,")
append("state=$state,")
append("tenantId=$tenantId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = app.hashCode()
result = 31 * result + (arn.hashCode())
result = 31 * result + (state.hashCode())
result = 31 * result + (tenantId.hashCode())
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 IngestionSummary
if (app != other.app) return false
if (arn != other.arn) return false
if (state != other.state) return false
if (tenantId != other.tenantId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appfabric.model.IngestionSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the application.
*/
public var app: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the ingestion.
*/
public var arn: kotlin.String? = null
/**
* The status of the ingestion.
*/
public var state: aws.sdk.kotlin.services.appfabric.model.IngestionState? = null
/**
* The ID of the application tenant.
*/
public var tenantId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appfabric.model.IngestionSummary) : this() {
this.app = x.app
this.arn = x.arn
this.state = x.state
this.tenantId = x.tenantId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appfabric.model.IngestionSummary = IngestionSummary(this)
internal fun correctErrors(): Builder {
if (app == null) app = ""
if (arn == null) arn = ""
if (state == null) state = IngestionState.SdkUnknown("no value provided")
if (tenantId == null) tenantId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy