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

commonMain.aws.sdk.kotlin.services.partnercentralselling.model.GetAwsOpportunitySummaryRequest.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

public class GetAwsOpportunitySummaryRequest private constructor(builder: Builder) {
    /**
     * Specifies the catalog in which the AWS Opportunity is located. Accepted values include `AWS` for production opportunities or `Sandbox` for testing purposes. The catalog determines which environment the opportunity data is pulled from.
     */
    public val catalog: kotlin.String? = builder.catalog
    /**
     * The unique identifier for the related partner opportunity. Use this field to correlate an AWS opportunity with its corresponding partner opportunity.
     */
    public val relatedOpportunityIdentifier: kotlin.String? = builder.relatedOpportunityIdentifier

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

    override fun toString(): kotlin.String = buildString {
        append("GetAwsOpportunitySummaryRequest(")
        append("catalog=$catalog,")
        append("relatedOpportunityIdentifier=$relatedOpportunityIdentifier")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = catalog?.hashCode() ?: 0
        result = 31 * result + (relatedOpportunityIdentifier?.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 GetAwsOpportunitySummaryRequest

        if (catalog != other.catalog) return false
        if (relatedOpportunityIdentifier != other.relatedOpportunityIdentifier) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Specifies the catalog in which the AWS Opportunity is located. Accepted values include `AWS` for production opportunities or `Sandbox` for testing purposes. The catalog determines which environment the opportunity data is pulled from.
         */
        public var catalog: kotlin.String? = null
        /**
         * The unique identifier for the related partner opportunity. Use this field to correlate an AWS opportunity with its corresponding partner opportunity.
         */
        public var relatedOpportunityIdentifier: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.partnercentralselling.model.GetAwsOpportunitySummaryRequest) : this() {
            this.catalog = x.catalog
            this.relatedOpportunityIdentifier = x.relatedOpportunityIdentifier
        }

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

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy