All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.partnercentralselling.model.ExpectedCustomerSpend.kt Maven / Gradle / Ivy

There is a newer version: 1.3.79
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.partnercentralselling.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Provides an estimate of the revenue that the partner is expected to generate from the opportunity. This information helps partners assess the financial value of the project.
 */
public class ExpectedCustomerSpend private constructor(builder: Builder) {
    /**
     * Represents the estimated monthly revenue that the partner expects to earn from the opportunity. This helps in forecasting financial returns.
     */
    public val amount: kotlin.String = requireNotNull(builder.amount) { "A non-null value must be provided for amount" }
    /**
     * Indicates the currency in which the revenue estimate is provided. This helps in understanding the financial impact across different markets.
     */
    public val currencyCode: aws.sdk.kotlin.services.partnercentralselling.model.CurrencyCode = requireNotNull(builder.currencyCode) { "A non-null value must be provided for currencyCode" }
    /**
     * Indicates how frequently the customer is expected to spend the projected amount. This can include values such as `Monthly`, `Quarterly`, or `Annually`. The default value is `Monthly`, representing recurring monthly spend.
     */
    public val frequency: aws.sdk.kotlin.services.partnercentralselling.model.PaymentFrequency = requireNotNull(builder.frequency) { "A non-null value must be provided for frequency" }
    /**
     * Specifies the name of the partner company that is expected to generate revenue from the opportunity. This field helps track the partner’s involvement in the opportunity.
     */
    public val targetCompany: kotlin.String = requireNotNull(builder.targetCompany) { "A non-null value must be provided for targetCompany" }

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.partnercentralselling.model.ExpectedCustomerSpend = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("ExpectedCustomerSpend(")
        append("amount=$amount,")
        append("currencyCode=*** Sensitive Data Redacted ***,")
        append("frequency=$frequency,")
        append("targetCompany=$targetCompany")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = amount.hashCode()
        result = 31 * result + (currencyCode.hashCode())
        result = 31 * result + (frequency.hashCode())
        result = 31 * result + (targetCompany.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 ExpectedCustomerSpend

        if (amount != other.amount) return false
        if (currencyCode != other.currencyCode) return false
        if (frequency != other.frequency) return false
        if (targetCompany != other.targetCompany) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.partnercentralselling.model.ExpectedCustomerSpend = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * Represents the estimated monthly revenue that the partner expects to earn from the opportunity. This helps in forecasting financial returns.
         */
        public var amount: kotlin.String? = null
        /**
         * Indicates the currency in which the revenue estimate is provided. This helps in understanding the financial impact across different markets.
         */
        public var currencyCode: aws.sdk.kotlin.services.partnercentralselling.model.CurrencyCode? = null
        /**
         * Indicates how frequently the customer is expected to spend the projected amount. This can include values such as `Monthly`, `Quarterly`, or `Annually`. The default value is `Monthly`, representing recurring monthly spend.
         */
        public var frequency: aws.sdk.kotlin.services.partnercentralselling.model.PaymentFrequency? = null
        /**
         * Specifies the name of the partner company that is expected to generate revenue from the opportunity. This field helps track the partner’s involvement in the opportunity.
         */
        public var targetCompany: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.partnercentralselling.model.ExpectedCustomerSpend) : this() {
            this.amount = x.amount
            this.currencyCode = x.currencyCode
            this.frequency = x.frequency
            this.targetCompany = x.targetCompany
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.partnercentralselling.model.ExpectedCustomerSpend = ExpectedCustomerSpend(this)

        internal fun correctErrors(): Builder {
            if (amount == null) amount = ""
            if (currencyCode == null) currencyCode = CurrencyCode.SdkUnknown("no value provided")
            if (frequency == null) frequency = PaymentFrequency.SdkUnknown("no value provided")
            if (targetCompany == null) targetCompany = ""
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy