
commonMain.aws.sdk.kotlin.services.customerprofiles.model.DeleteProfileKeyRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.customerprofiles.model
public class DeleteProfileKeyRequest private constructor(builder: Builder) {
/**
* The unique name of the domain.
*/
public val domainName: kotlin.String? = requireNotNull(builder.domainName) { "A non-null value must be provided for domainName" }
/**
* A searchable identifier of a customer profile.
*/
public val keyName: kotlin.String? = builder.keyName
/**
* The unique identifier of a customer profile.
*/
public val profileId: kotlin.String? = builder.profileId
/**
* A list of key values.
*/
public val values: List? = builder.values
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.customerprofiles.model.DeleteProfileKeyRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteProfileKeyRequest(")
append("domainName=$domainName,")
append("keyName=$keyName,")
append("profileId=$profileId,")
append("values=$values")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = domainName?.hashCode() ?: 0
result = 31 * result + (keyName?.hashCode() ?: 0)
result = 31 * result + (profileId?.hashCode() ?: 0)
result = 31 * result + (values?.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 DeleteProfileKeyRequest
if (domainName != other.domainName) return false
if (keyName != other.keyName) return false
if (profileId != other.profileId) return false
if (values != other.values) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.customerprofiles.model.DeleteProfileKeyRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The unique name of the domain.
*/
public var domainName: kotlin.String? = null
/**
* A searchable identifier of a customer profile.
*/
public var keyName: kotlin.String? = null
/**
* The unique identifier of a customer profile.
*/
public var profileId: kotlin.String? = null
/**
* A list of key values.
*/
public var values: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.customerprofiles.model.DeleteProfileKeyRequest) : this() {
this.domainName = x.domainName
this.keyName = x.keyName
this.profileId = x.profileId
this.values = x.values
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.customerprofiles.model.DeleteProfileKeyRequest = DeleteProfileKeyRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy