commonMain.aws.sdk.kotlin.services.customerprofiles.model.DeleteWorkflowRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.customerprofiles.model
public class DeleteWorkflowRequest private constructor(builder: Builder) {
/**
* The unique name of the domain.
*/
public val domainName: kotlin.String? = requireNotNull(builder.domainName) { "A non-null value must be provided for domainName" }
/**
* Unique identifier for the workflow.
*/
public val workflowId: kotlin.String? = requireNotNull(builder.workflowId) { "A non-null value must be provided for workflowId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.customerprofiles.model.DeleteWorkflowRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteWorkflowRequest(")
append("domainName=$domainName,")
append("workflowId=$workflowId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = domainName?.hashCode() ?: 0
result = 31 * result + (workflowId?.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 DeleteWorkflowRequest
if (domainName != other.domainName) return false
if (workflowId != other.workflowId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.customerprofiles.model.DeleteWorkflowRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The unique name of the domain.
*/
public var domainName: kotlin.String? = null
/**
* Unique identifier for the workflow.
*/
public var workflowId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.customerprofiles.model.DeleteWorkflowRequest) : this() {
this.domainName = x.domainName
this.workflowId = x.workflowId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.customerprofiles.model.DeleteWorkflowRequest = DeleteWorkflowRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy