commonMain.aws.sdk.kotlin.services.redshift.model.ModifyIntegrationRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redshift-jvm Show documentation
Show all versions of redshift-jvm Show documentation
The AWS SDK for Kotlin client for Redshift
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.redshift.model
import aws.smithy.kotlin.runtime.SdkDsl
public class ModifyIntegrationRequest private constructor(builder: Builder) {
/**
* A new description for the integration.
*/
public val description: kotlin.String? = builder.description
/**
* The unique identifier of the integration to modify.
*/
public val integrationArn: kotlin.String? = builder.integrationArn
/**
* A new name for the integration.
*/
public val integrationName: kotlin.String? = builder.integrationName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshift.model.ModifyIntegrationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ModifyIntegrationRequest(")
append("description=$description,")
append("integrationArn=$integrationArn,")
append("integrationName=$integrationName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (integrationArn?.hashCode() ?: 0)
result = 31 * result + (integrationName?.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 ModifyIntegrationRequest
if (description != other.description) return false
if (integrationArn != other.integrationArn) return false
if (integrationName != other.integrationName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshift.model.ModifyIntegrationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A new description for the integration.
*/
public var description: kotlin.String? = null
/**
* The unique identifier of the integration to modify.
*/
public var integrationArn: kotlin.String? = null
/**
* A new name for the integration.
*/
public var integrationName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshift.model.ModifyIntegrationRequest) : this() {
this.description = x.description
this.integrationArn = x.integrationArn
this.integrationName = x.integrationName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshift.model.ModifyIntegrationRequest = ModifyIntegrationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}