commonMain.aws.sdk.kotlin.services.appflow.model.DeleteConnectorProfileRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appflow-jvm Show documentation
Show all versions of appflow-jvm Show documentation
The AWS SDK for Kotlin client for Appflow
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appflow.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DeleteConnectorProfileRequest private constructor(builder: Builder) {
/**
* The name of the connector profile. The name is unique for each `ConnectorProfile` in your account.
*/
public val connectorProfileName: kotlin.String? = builder.connectorProfileName
/**
* Indicates whether Amazon AppFlow should delete the profile, even if it is currently in use in one or more flows.
*/
public val forceDelete: kotlin.Boolean? = builder.forceDelete
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appflow.model.DeleteConnectorProfileRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteConnectorProfileRequest(")
append("connectorProfileName=$connectorProfileName,")
append("forceDelete=$forceDelete")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = connectorProfileName?.hashCode() ?: 0
result = 31 * result + (forceDelete?.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 DeleteConnectorProfileRequest
if (connectorProfileName != other.connectorProfileName) return false
if (forceDelete != other.forceDelete) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appflow.model.DeleteConnectorProfileRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the connector profile. The name is unique for each `ConnectorProfile` in your account.
*/
public var connectorProfileName: kotlin.String? = null
/**
* Indicates whether Amazon AppFlow should delete the profile, even if it is currently in use in one or more flows.
*/
public var forceDelete: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appflow.model.DeleteConnectorProfileRequest) : this() {
this.connectorProfileName = x.connectorProfileName
this.forceDelete = x.forceDelete
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appflow.model.DeleteConnectorProfileRequest = DeleteConnectorProfileRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}