commonMain.aws.sdk.kotlin.services.cleanrooms.model.CollaborationPrivacyBudgetSummary.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* A summary of the collaboration privacy budgets. This summary includes the collaboration information, creation information, epsilon provided, and utility in terms of aggregations.
*/
public class CollaborationPrivacyBudgetSummary private constructor(builder: Builder) {
/**
* The includes epsilon provided and utility in terms of aggregations.
*/
public val budget: aws.sdk.kotlin.services.cleanrooms.model.PrivacyBudget? = builder.budget
/**
* The ARN of the collaboration that includes this privacy budget.
*/
public val collaborationArn: kotlin.String = requireNotNull(builder.collaborationArn) { "A non-null value must be provided for collaborationArn" }
/**
* The unique identifier of the collaboration that includes this privacy budget.
*/
public val collaborationId: kotlin.String = requireNotNull(builder.collaborationId) { "A non-null value must be provided for collaborationId" }
/**
* The time at which the privacy budget was created.
*/
public val createTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.createTime) { "A non-null value must be provided for createTime" }
/**
* The unique identifier of the account that created this privacy budget.
*/
public val creatorAccountId: kotlin.String = requireNotNull(builder.creatorAccountId) { "A non-null value must be provided for creatorAccountId" }
/**
* The unique identifier of the collaboration privacy budget.
*/
public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
/**
* The ARN of the collaboration privacy budget template.
*/
public val privacyBudgetTemplateArn: kotlin.String = requireNotNull(builder.privacyBudgetTemplateArn) { "A non-null value must be provided for privacyBudgetTemplateArn" }
/**
* The unique identifier of the collaboration privacy budget template.
*/
public val privacyBudgetTemplateId: kotlin.String = requireNotNull(builder.privacyBudgetTemplateId) { "A non-null value must be provided for privacyBudgetTemplateId" }
/**
* The type of privacy budget template.
*/
public val type: aws.sdk.kotlin.services.cleanrooms.model.PrivacyBudgetType = requireNotNull(builder.type) { "A non-null value must be provided for type" }
/**
* The most recent time at which the privacy budget was updated.
*/
public val updateTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.updateTime) { "A non-null value must be provided for updateTime" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanrooms.model.CollaborationPrivacyBudgetSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CollaborationPrivacyBudgetSummary(")
append("budget=$budget,")
append("collaborationArn=$collaborationArn,")
append("collaborationId=$collaborationId,")
append("createTime=$createTime,")
append("creatorAccountId=$creatorAccountId,")
append("id=$id,")
append("privacyBudgetTemplateArn=$privacyBudgetTemplateArn,")
append("privacyBudgetTemplateId=$privacyBudgetTemplateId,")
append("type=$type,")
append("updateTime=$updateTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = budget?.hashCode() ?: 0
result = 31 * result + (collaborationArn.hashCode())
result = 31 * result + (collaborationId.hashCode())
result = 31 * result + (createTime.hashCode())
result = 31 * result + (creatorAccountId.hashCode())
result = 31 * result + (id.hashCode())
result = 31 * result + (privacyBudgetTemplateArn.hashCode())
result = 31 * result + (privacyBudgetTemplateId.hashCode())
result = 31 * result + (type.hashCode())
result = 31 * result + (updateTime.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 CollaborationPrivacyBudgetSummary
if (budget != other.budget) return false
if (collaborationArn != other.collaborationArn) return false
if (collaborationId != other.collaborationId) return false
if (createTime != other.createTime) return false
if (creatorAccountId != other.creatorAccountId) return false
if (id != other.id) return false
if (privacyBudgetTemplateArn != other.privacyBudgetTemplateArn) return false
if (privacyBudgetTemplateId != other.privacyBudgetTemplateId) return false
if (type != other.type) return false
if (updateTime != other.updateTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanrooms.model.CollaborationPrivacyBudgetSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The includes epsilon provided and utility in terms of aggregations.
*/
public var budget: aws.sdk.kotlin.services.cleanrooms.model.PrivacyBudget? = null
/**
* The ARN of the collaboration that includes this privacy budget.
*/
public var collaborationArn: kotlin.String? = null
/**
* The unique identifier of the collaboration that includes this privacy budget.
*/
public var collaborationId: kotlin.String? = null
/**
* The time at which the privacy budget was created.
*/
public var createTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The unique identifier of the account that created this privacy budget.
*/
public var creatorAccountId: kotlin.String? = null
/**
* The unique identifier of the collaboration privacy budget.
*/
public var id: kotlin.String? = null
/**
* The ARN of the collaboration privacy budget template.
*/
public var privacyBudgetTemplateArn: kotlin.String? = null
/**
* The unique identifier of the collaboration privacy budget template.
*/
public var privacyBudgetTemplateId: kotlin.String? = null
/**
* The type of privacy budget template.
*/
public var type: aws.sdk.kotlin.services.cleanrooms.model.PrivacyBudgetType? = null
/**
* The most recent time at which the privacy budget was updated.
*/
public var updateTime: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.CollaborationPrivacyBudgetSummary) : this() {
this.budget = x.budget
this.collaborationArn = x.collaborationArn
this.collaborationId = x.collaborationId
this.createTime = x.createTime
this.creatorAccountId = x.creatorAccountId
this.id = x.id
this.privacyBudgetTemplateArn = x.privacyBudgetTemplateArn
this.privacyBudgetTemplateId = x.privacyBudgetTemplateId
this.type = x.type
this.updateTime = x.updateTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.CollaborationPrivacyBudgetSummary = CollaborationPrivacyBudgetSummary(this)
internal fun correctErrors(): Builder {
if (collaborationArn == null) collaborationArn = ""
if (collaborationId == null) collaborationId = ""
if (createTime == null) createTime = Instant.fromEpochSeconds(0)
if (creatorAccountId == null) creatorAccountId = ""
if (id == null) id = ""
if (privacyBudgetTemplateArn == null) privacyBudgetTemplateArn = ""
if (privacyBudgetTemplateId == null) privacyBudgetTemplateId = ""
if (type == null) type = PrivacyBudgetType.SdkUnknown("no value provided")
if (updateTime == null) updateTime = Instant.fromEpochSeconds(0)
return this
}
}
}