commonMain.aws.sdk.kotlin.services.partnercentralselling.model.StartEngagementFromOpportunityTaskResponse.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
import aws.smithy.kotlin.runtime.time.Instant
public class StartEngagementFromOpportunityTaskResponse private constructor(builder: Builder) {
/**
* If the task fails, this field contains a detailed message describing the failure and possible recovery steps.
*/
public val message: kotlin.String? = builder.message
/**
* Returns the original opportunity identifier passed in the request, which is the unique identifier for the opportunity created in the partner’s system.
*/
public val opportunityId: kotlin.String? = builder.opportunityId
/**
* Indicates the reason for task failure using an enumerated code.
*/
public val reasonCode: aws.sdk.kotlin.services.partnercentralselling.model.ReasonCode? = builder.reasonCode
/**
* The timestamp indicating when the task was initiated. The format follows RFC 3339 section 5.6.
*/
public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
/**
* The Amazon Resource Name (ARN) of the task, used for tracking and managing the task within AWS.
*/
public val taskArn: kotlin.String? = builder.taskArn
/**
* The unique identifier of the task, used to track the task’s progress. This value follows a specific pattern: `^oit-[0-9a-z]{13}$`.
*/
public val taskId: kotlin.String? = builder.taskId
/**
* Indicates the current status of the task. Valid values include `IN_PROGRESS`, `COMPLETE`, and `FAILED`.
*/
public val taskStatus: aws.sdk.kotlin.services.partnercentralselling.model.TaskStatus? = builder.taskStatus
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.partnercentralselling.model.StartEngagementFromOpportunityTaskResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartEngagementFromOpportunityTaskResponse(")
append("message=$message,")
append("opportunityId=$opportunityId,")
append("reasonCode=$reasonCode,")
append("startTime=$startTime,")
append("taskArn=$taskArn,")
append("taskId=$taskId,")
append("taskStatus=$taskStatus")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = message?.hashCode() ?: 0
result = 31 * result + (opportunityId?.hashCode() ?: 0)
result = 31 * result + (reasonCode?.hashCode() ?: 0)
result = 31 * result + (startTime?.hashCode() ?: 0)
result = 31 * result + (taskArn?.hashCode() ?: 0)
result = 31 * result + (taskId?.hashCode() ?: 0)
result = 31 * result + (taskStatus?.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 StartEngagementFromOpportunityTaskResponse
if (message != other.message) return false
if (opportunityId != other.opportunityId) return false
if (reasonCode != other.reasonCode) return false
if (startTime != other.startTime) return false
if (taskArn != other.taskArn) return false
if (taskId != other.taskId) return false
if (taskStatus != other.taskStatus) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.partnercentralselling.model.StartEngagementFromOpportunityTaskResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* If the task fails, this field contains a detailed message describing the failure and possible recovery steps.
*/
public var message: kotlin.String? = null
/**
* Returns the original opportunity identifier passed in the request, which is the unique identifier for the opportunity created in the partner’s system.
*/
public var opportunityId: kotlin.String? = null
/**
* Indicates the reason for task failure using an enumerated code.
*/
public var reasonCode: aws.sdk.kotlin.services.partnercentralselling.model.ReasonCode? = null
/**
* The timestamp indicating when the task was initiated. The format follows RFC 3339 section 5.6.
*/
public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The Amazon Resource Name (ARN) of the task, used for tracking and managing the task within AWS.
*/
public var taskArn: kotlin.String? = null
/**
* The unique identifier of the task, used to track the task’s progress. This value follows a specific pattern: `^oit-[0-9a-z]{13}$`.
*/
public var taskId: kotlin.String? = null
/**
* Indicates the current status of the task. Valid values include `IN_PROGRESS`, `COMPLETE`, and `FAILED`.
*/
public var taskStatus: aws.sdk.kotlin.services.partnercentralselling.model.TaskStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.partnercentralselling.model.StartEngagementFromOpportunityTaskResponse) : this() {
this.message = x.message
this.opportunityId = x.opportunityId
this.reasonCode = x.reasonCode
this.startTime = x.startTime
this.taskArn = x.taskArn
this.taskId = x.taskId
this.taskStatus = x.taskStatus
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.partnercentralselling.model.StartEngagementFromOpportunityTaskResponse = StartEngagementFromOpportunityTaskResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}