commonMain.aws.sdk.kotlin.services.glue.model.InboundIntegration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* A structure for an integration that writes data into a resource.
*/
public class InboundIntegration private constructor(builder: Builder) {
/**
* The time that the integration was created, in UTC.
*/
public val createTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.createTime) { "A non-null value must be provided for createTime" }
/**
* A list of errors associated with the integration.
*/
public val errors: List? = builder.errors
/**
* The ARN of the zero-ETL integration.
*/
public val integrationArn: kotlin.String = requireNotNull(builder.integrationArn) { "A non-null value must be provided for integrationArn" }
/**
* The ARN of the source resource for the integration.
*/
public val sourceArn: kotlin.String = requireNotNull(builder.sourceArn) { "A non-null value must be provided for sourceArn" }
/**
* The possible statuses are:
* + CREATING: The integration is being created.
* + ACTIVE: The integration creation succeeds.
* + MODIFYING: The integration is being modified.
* + FAILED: The integration creation fails.
* + DELETING: The integration is deleted.
* + SYNCING: The integration is synchronizing.
* + NEEDS_ATTENTION: The integration needs attention, such as synchronization.
*/
public val status: aws.sdk.kotlin.services.glue.model.IntegrationStatus = requireNotNull(builder.status) { "A non-null value must be provided for status" }
/**
* The ARN of the target resource for the integration.
*/
public val targetArn: kotlin.String = requireNotNull(builder.targetArn) { "A non-null value must be provided for targetArn" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.InboundIntegration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InboundIntegration(")
append("createTime=$createTime,")
append("errors=$errors,")
append("integrationArn=$integrationArn,")
append("sourceArn=$sourceArn,")
append("status=$status,")
append("targetArn=$targetArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createTime.hashCode()
result = 31 * result + (errors?.hashCode() ?: 0)
result = 31 * result + (integrationArn.hashCode())
result = 31 * result + (sourceArn.hashCode())
result = 31 * result + (status.hashCode())
result = 31 * result + (targetArn.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 InboundIntegration
if (createTime != other.createTime) return false
if (errors != other.errors) return false
if (integrationArn != other.integrationArn) return false
if (sourceArn != other.sourceArn) return false
if (status != other.status) return false
if (targetArn != other.targetArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.InboundIntegration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The time that the integration was created, in UTC.
*/
public var createTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* A list of errors associated with the integration.
*/
public var errors: List? = null
/**
* The ARN of the zero-ETL integration.
*/
public var integrationArn: kotlin.String? = null
/**
* The ARN of the source resource for the integration.
*/
public var sourceArn: kotlin.String? = null
/**
* The possible statuses are:
* + CREATING: The integration is being created.
* + ACTIVE: The integration creation succeeds.
* + MODIFYING: The integration is being modified.
* + FAILED: The integration creation fails.
* + DELETING: The integration is deleted.
* + SYNCING: The integration is synchronizing.
* + NEEDS_ATTENTION: The integration needs attention, such as synchronization.
*/
public var status: aws.sdk.kotlin.services.glue.model.IntegrationStatus? = null
/**
* The ARN of the target resource for the integration.
*/
public var targetArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.InboundIntegration) : this() {
this.createTime = x.createTime
this.errors = x.errors
this.integrationArn = x.integrationArn
this.sourceArn = x.sourceArn
this.status = x.status
this.targetArn = x.targetArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.InboundIntegration = InboundIntegration(this)
internal fun correctErrors(): Builder {
if (createTime == null) createTime = Instant.fromEpochSeconds(0)
if (integrationArn == null) integrationArn = ""
if (sourceArn == null) sourceArn = ""
if (status == null) status = IntegrationStatus.SdkUnknown("no value provided")
if (targetArn == null) targetArn = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy