commonMain.aws.sdk.kotlin.services.partnercentralselling.model.ProjectDetails.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
/**
* Contains details about the project associated with the Engagement Invitation, including the business problem and expected outcomes.
*/
public class ProjectDetails private constructor(builder: Builder) {
/**
* Describes the business problem that the project aims to solve. This information is crucial for understanding the project’s goals and objectives.
*/
public val businessProblem: kotlin.String = requireNotNull(builder.businessProblem) { "A non-null value must be provided for businessProblem" }
/**
* Contains revenue estimates for the partner related to the project. This field provides an idea of the financial potential of the opportunity for the partner.
*/
public val expectedCustomerSpend: List = requireNotNull(builder.expectedCustomerSpend) { "A non-null value must be provided for expectedCustomerSpend" }
/**
* Specifies the estimated date of project completion. This field helps track the project timeline and manage expectations.
*/
public val targetCompletionDate: kotlin.String = requireNotNull(builder.targetCompletionDate) { "A non-null value must be provided for targetCompletionDate" }
/**
* Specifies the title of the project. This title helps partners quickly identify and understand the focus of the project.
*/
public val title: kotlin.String = requireNotNull(builder.title) { "A non-null value must be provided for title" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.partnercentralselling.model.ProjectDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProjectDetails(")
append("businessProblem=*** Sensitive Data Redacted ***,")
append("expectedCustomerSpend=$expectedCustomerSpend,")
append("targetCompletionDate=$targetCompletionDate,")
append("title=$title")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = businessProblem.hashCode()
result = 31 * result + (expectedCustomerSpend.hashCode())
result = 31 * result + (targetCompletionDate.hashCode())
result = 31 * result + (title.hashCode())
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 ProjectDetails
if (businessProblem != other.businessProblem) return false
if (expectedCustomerSpend != other.expectedCustomerSpend) return false
if (targetCompletionDate != other.targetCompletionDate) return false
if (title != other.title) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.partnercentralselling.model.ProjectDetails = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Describes the business problem that the project aims to solve. This information is crucial for understanding the project’s goals and objectives.
*/
public var businessProblem: kotlin.String? = null
/**
* Contains revenue estimates for the partner related to the project. This field provides an idea of the financial potential of the opportunity for the partner.
*/
public var expectedCustomerSpend: List? = null
/**
* Specifies the estimated date of project completion. This field helps track the project timeline and manage expectations.
*/
public var targetCompletionDate: kotlin.String? = null
/**
* Specifies the title of the project. This title helps partners quickly identify and understand the focus of the project.
*/
public var title: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.partnercentralselling.model.ProjectDetails) : this() {
this.businessProblem = x.businessProblem
this.expectedCustomerSpend = x.expectedCustomerSpend
this.targetCompletionDate = x.targetCompletionDate
this.title = x.title
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.partnercentralselling.model.ProjectDetails = ProjectDetails(this)
internal fun correctErrors(): Builder {
if (businessProblem == null) businessProblem = ""
if (expectedCustomerSpend == null) expectedCustomerSpend = emptyList()
if (targetCompletionDate == null) targetCompletionDate = ""
if (title == null) title = ""
return this
}
}
}