commonMain.aws.sdk.kotlin.services.glue.model.ModifyIntegrationResponse.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
public class ModifyIntegrationResponse private constructor(builder: Builder) {
/**
* An optional set of non-secret key–value pairs that contains additional contextual information for encryption.
*/
public val additionalEncryptionContext: Map? = builder.additionalEncryptionContext
/**
* The time when 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" }
/**
* Selects source tables for the integration using Maxwell filter syntax.
*/
public val dataFilter: kotlin.String? = builder.dataFilter
/**
* A description of the integration.
*/
public val description: kotlin.String? = builder.description
/**
* A list of errors associated with the integration modification.
*/
public val errors: List? = builder.errors
/**
* The Amazon Resource Name (ARN) for the integration.
*/
public val integrationArn: kotlin.String = requireNotNull(builder.integrationArn) { "A non-null value must be provided for integrationArn" }
/**
* A unique name for an integration in Glue.
*/
public val integrationName: kotlin.String = requireNotNull(builder.integrationName) { "A non-null value must be provided for integrationName" }
/**
* The ARN of a KMS key used for encrypting the channel.
*/
public val kmsKeyId: kotlin.String? = builder.kmsKeyId
/**
* The ARN of the source for the integration.
*/
public val sourceArn: kotlin.String = requireNotNull(builder.sourceArn) { "A non-null value must be provided for sourceArn" }
/**
* The status of the integration being modified.
*
* 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" }
/**
* Metadata assigned to the resource consisting of a list of key-value pairs.
*/
public val tags: List? = builder.tags
/**
* The ARN of the target 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.ModifyIntegrationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ModifyIntegrationResponse(")
append("additionalEncryptionContext=$additionalEncryptionContext,")
append("createTime=$createTime,")
append("dataFilter=$dataFilter,")
append("description=$description,")
append("errors=$errors,")
append("integrationArn=$integrationArn,")
append("integrationName=$integrationName,")
append("kmsKeyId=$kmsKeyId,")
append("sourceArn=$sourceArn,")
append("status=$status,")
append("tags=$tags,")
append("targetArn=$targetArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = additionalEncryptionContext?.hashCode() ?: 0
result = 31 * result + (createTime.hashCode())
result = 31 * result + (dataFilter?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (errors?.hashCode() ?: 0)
result = 31 * result + (integrationArn.hashCode())
result = 31 * result + (integrationName.hashCode())
result = 31 * result + (kmsKeyId?.hashCode() ?: 0)
result = 31 * result + (sourceArn.hashCode())
result = 31 * result + (status.hashCode())
result = 31 * result + (tags?.hashCode() ?: 0)
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 ModifyIntegrationResponse
if (additionalEncryptionContext != other.additionalEncryptionContext) return false
if (createTime != other.createTime) return false
if (dataFilter != other.dataFilter) return false
if (description != other.description) return false
if (errors != other.errors) return false
if (integrationArn != other.integrationArn) return false
if (integrationName != other.integrationName) return false
if (kmsKeyId != other.kmsKeyId) return false
if (sourceArn != other.sourceArn) return false
if (status != other.status) return false
if (tags != other.tags) return false
if (targetArn != other.targetArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.ModifyIntegrationResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An optional set of non-secret key–value pairs that contains additional contextual information for encryption.
*/
public var additionalEncryptionContext: Map? = null
/**
* The time when the integration was created, in UTC.
*/
public var createTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Selects source tables for the integration using Maxwell filter syntax.
*/
public var dataFilter: kotlin.String? = null
/**
* A description of the integration.
*/
public var description: kotlin.String? = null
/**
* A list of errors associated with the integration modification.
*/
public var errors: List? = null
/**
* The Amazon Resource Name (ARN) for the integration.
*/
public var integrationArn: kotlin.String? = null
/**
* A unique name for an integration in Glue.
*/
public var integrationName: kotlin.String? = null
/**
* The ARN of a KMS key used for encrypting the channel.
*/
public var kmsKeyId: kotlin.String? = null
/**
* The ARN of the source for the integration.
*/
public var sourceArn: kotlin.String? = null
/**
* The status of the integration being modified.
*
* 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
/**
* Metadata assigned to the resource consisting of a list of key-value pairs.
*/
public var tags: List? = null
/**
* The ARN of the target for the integration.
*/
public var targetArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.ModifyIntegrationResponse) : this() {
this.additionalEncryptionContext = x.additionalEncryptionContext
this.createTime = x.createTime
this.dataFilter = x.dataFilter
this.description = x.description
this.errors = x.errors
this.integrationArn = x.integrationArn
this.integrationName = x.integrationName
this.kmsKeyId = x.kmsKeyId
this.sourceArn = x.sourceArn
this.status = x.status
this.tags = x.tags
this.targetArn = x.targetArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.ModifyIntegrationResponse = ModifyIntegrationResponse(this)
internal fun correctErrors(): Builder {
if (createTime == null) createTime = Instant.fromEpochSeconds(0)
if (integrationArn == null) integrationArn = ""
if (integrationName == null) integrationName = ""
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