commonMain.aws.sdk.kotlin.services.cleanrooms.model.UpdateConfiguredAudienceModelAssociationRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cleanrooms-jvm Show documentation
Show all versions of cleanrooms-jvm Show documentation
The AWS SDK for Kotlin client for CleanRooms
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cleanrooms.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateConfiguredAudienceModelAssociationRequest private constructor(builder: Builder) {
/**
* A unique identifier for the configured audience model association that you want to update.
*/
public val configuredAudienceModelAssociationIdentifier: kotlin.String? = builder.configuredAudienceModelAssociationIdentifier
/**
* A new description for the configured audience model association.
*/
public val description: kotlin.String? = builder.description
/**
* A unique identifier of the membership that contains the configured audience model association that you want to update.
*/
public val membershipIdentifier: kotlin.String? = builder.membershipIdentifier
/**
* A new name for the configured audience model association.
*/
public val name: kotlin.String? = builder.name
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanrooms.model.UpdateConfiguredAudienceModelAssociationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateConfiguredAudienceModelAssociationRequest(")
append("configuredAudienceModelAssociationIdentifier=$configuredAudienceModelAssociationIdentifier,")
append("description=$description,")
append("membershipIdentifier=$membershipIdentifier,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = configuredAudienceModelAssociationIdentifier?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (membershipIdentifier?.hashCode() ?: 0)
result = 31 * result + (name?.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 UpdateConfiguredAudienceModelAssociationRequest
if (configuredAudienceModelAssociationIdentifier != other.configuredAudienceModelAssociationIdentifier) return false
if (description != other.description) return false
if (membershipIdentifier != other.membershipIdentifier) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanrooms.model.UpdateConfiguredAudienceModelAssociationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique identifier for the configured audience model association that you want to update.
*/
public var configuredAudienceModelAssociationIdentifier: kotlin.String? = null
/**
* A new description for the configured audience model association.
*/
public var description: kotlin.String? = null
/**
* A unique identifier of the membership that contains the configured audience model association that you want to update.
*/
public var membershipIdentifier: kotlin.String? = null
/**
* A new name for the configured audience model association.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.UpdateConfiguredAudienceModelAssociationRequest) : this() {
this.configuredAudienceModelAssociationIdentifier = x.configuredAudienceModelAssociationIdentifier
this.description = x.description
this.membershipIdentifier = x.membershipIdentifier
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.UpdateConfiguredAudienceModelAssociationRequest = UpdateConfiguredAudienceModelAssociationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}