commonMain.aws.sdk.kotlin.services.partnercentralselling.model.StartEngagementByAcceptingInvitationTaskRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of partnercentralselling-jvm Show documentation
Show all versions of partnercentralselling-jvm Show documentation
The AWS SDK for Kotlin client for PartnerCentral Selling
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.partnercentralselling.model
import aws.smithy.kotlin.runtime.SdkDsl
public class StartEngagementByAcceptingInvitationTaskRequest private constructor(builder: Builder) {
/**
* Specifies the catalog related to the task. Use `AWS` for production engagements and `Sandbox` for testing scenarios.
*/
public val catalog: kotlin.String? = builder.catalog
/**
* A unique, case-sensitive identifier provided by the client that helps to ensure the idempotency of the request. This can be a random or meaningful string but must be unique for each request.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* Specifies the unique identifier of the `EngagementInvitation` to be accepted. Providing the correct identifier helps ensure that the correct engagement is processed.
*/
public val identifier: kotlin.String? = builder.identifier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.partnercentralselling.model.StartEngagementByAcceptingInvitationTaskRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartEngagementByAcceptingInvitationTaskRequest(")
append("catalog=$catalog,")
append("clientToken=$clientToken,")
append("identifier=$identifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = catalog?.hashCode() ?: 0
result = 31 * result + (clientToken?.hashCode() ?: 0)
result = 31 * result + (identifier?.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 StartEngagementByAcceptingInvitationTaskRequest
if (catalog != other.catalog) return false
if (clientToken != other.clientToken) return false
if (identifier != other.identifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.partnercentralselling.model.StartEngagementByAcceptingInvitationTaskRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies the catalog related to the task. Use `AWS` for production engagements and `Sandbox` for testing scenarios.
*/
public var catalog: kotlin.String? = null
/**
* A unique, case-sensitive identifier provided by the client that helps to ensure the idempotency of the request. This can be a random or meaningful string but must be unique for each request.
*/
public var clientToken: kotlin.String? = null
/**
* Specifies the unique identifier of the `EngagementInvitation` to be accepted. Providing the correct identifier helps ensure that the correct engagement is processed.
*/
public var identifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.partnercentralselling.model.StartEngagementByAcceptingInvitationTaskRequest) : this() {
this.catalog = x.catalog
this.clientToken = x.clientToken
this.identifier = x.identifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.partnercentralselling.model.StartEngagementByAcceptingInvitationTaskRequest = StartEngagementByAcceptingInvitationTaskRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}