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

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

/**
 * An object that contains an `Address` object's subset of fields.
 */
public class AddressSummary private constructor(builder: Builder) {
    /**
     * Specifies the end `Customer`'s city associated with the `Opportunity`.
     */
    public val city: kotlin.String? = builder.city
    /**
     * Specifies the end `Customer`'s country associated with the `Opportunity`.
     */
    public val countryCode: aws.sdk.kotlin.services.partnercentralselling.model.CountryCode? = builder.countryCode
    /**
     * Specifies the end `Customer`'s postal code associated with the `Opportunity`.
     */
    public val postalCode: kotlin.String? = builder.postalCode
    /**
     * Specifies the end `Customer`'s state or region associated with the `Opportunity`.
     *
     * Valid values: `Alabama | Alaska | American Samoa | Arizona | Arkansas | California | Colorado | Connecticut | Delaware | Dist. of Columbia | Federated States of Micronesia | Florida | Georgia | Guam | Hawaii | Idaho | Illinois | Indiana | Iowa | Kansas | Kentucky | Louisiana | Maine | Marshall Islands | Maryland | Massachusetts | Michigan | Minnesota | Mississippi | Missouri | Montana | Nebraska | Nevada | New Hampshire | New Jersey | New Mexico | New York | North Carolina | North Dakota | Northern Mariana Islands | Ohio | Oklahoma | Oregon | Palau | Pennsylvania | Puerto Rico | Rhode Island | South Carolina | South Dakota | Tennessee | Texas | Utah | Vermont | Virginia | Virgin Islands | Washington | West Virginia | Wisconsin | Wyoming | APO/AE | AFO/FPO | FPO, AP`
     */
    public val stateOrRegion: kotlin.String? = builder.stateOrRegion

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

    override fun toString(): kotlin.String = buildString {
        append("AddressSummary(")
        append("city=*** Sensitive Data Redacted ***,")
        append("countryCode=*** Sensitive Data Redacted ***,")
        append("postalCode=*** Sensitive Data Redacted ***,")
        append("stateOrRegion=*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = city?.hashCode() ?: 0
        result = 31 * result + (countryCode?.hashCode() ?: 0)
        result = 31 * result + (postalCode?.hashCode() ?: 0)
        result = 31 * result + (stateOrRegion?.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 AddressSummary

        if (city != other.city) return false
        if (countryCode != other.countryCode) return false
        if (postalCode != other.postalCode) return false
        if (stateOrRegion != other.stateOrRegion) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Specifies the end `Customer`'s city associated with the `Opportunity`.
         */
        public var city: kotlin.String? = null
        /**
         * Specifies the end `Customer`'s country associated with the `Opportunity`.
         */
        public var countryCode: aws.sdk.kotlin.services.partnercentralselling.model.CountryCode? = null
        /**
         * Specifies the end `Customer`'s postal code associated with the `Opportunity`.
         */
        public var postalCode: kotlin.String? = null
        /**
         * Specifies the end `Customer`'s state or region associated with the `Opportunity`.
         *
         * Valid values: `Alabama | Alaska | American Samoa | Arizona | Arkansas | California | Colorado | Connecticut | Delaware | Dist. of Columbia | Federated States of Micronesia | Florida | Georgia | Guam | Hawaii | Idaho | Illinois | Indiana | Iowa | Kansas | Kentucky | Louisiana | Maine | Marshall Islands | Maryland | Massachusetts | Michigan | Minnesota | Mississippi | Missouri | Montana | Nebraska | Nevada | New Hampshire | New Jersey | New Mexico | New York | North Carolina | North Dakota | Northern Mariana Islands | Ohio | Oklahoma | Oregon | Palau | Pennsylvania | Puerto Rico | Rhode Island | South Carolina | South Dakota | Tennessee | Texas | Utah | Vermont | Virginia | Virgin Islands | Washington | West Virginia | Wisconsin | Wyoming | APO/AE | AFO/FPO | FPO, AP`
         */
        public var stateOrRegion: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.partnercentralselling.model.AddressSummary) : this() {
            this.city = x.city
            this.countryCode = x.countryCode
            this.postalCode = x.postalCode
            this.stateOrRegion = x.stateOrRegion
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy