commonMain.aws.sdk.kotlin.services.cleanrooms.model.GetCollaborationAnalysisTemplateRequest.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 GetCollaborationAnalysisTemplateRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) associated with the analysis template within a collaboration.
*/
public val analysisTemplateArn: kotlin.String = requireNotNull(builder.analysisTemplateArn) { "A non-null value must be provided for analysisTemplateArn" }
/**
* A unique identifier for the collaboration that the analysis templates belong to. Currently accepts collaboration ID.
*/
public val collaborationIdentifier: kotlin.String = requireNotNull(builder.collaborationIdentifier) { "A non-null value must be provided for collaborationIdentifier" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanrooms.model.GetCollaborationAnalysisTemplateRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetCollaborationAnalysisTemplateRequest(")
append("analysisTemplateArn=$analysisTemplateArn,")
append("collaborationIdentifier=$collaborationIdentifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = analysisTemplateArn.hashCode()
result = 31 * result + (collaborationIdentifier.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 GetCollaborationAnalysisTemplateRequest
if (analysisTemplateArn != other.analysisTemplateArn) return false
if (collaborationIdentifier != other.collaborationIdentifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanrooms.model.GetCollaborationAnalysisTemplateRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) associated with the analysis template within a collaboration.
*/
public var analysisTemplateArn: kotlin.String? = null
/**
* A unique identifier for the collaboration that the analysis templates belong to. Currently accepts collaboration ID.
*/
public var collaborationIdentifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.GetCollaborationAnalysisTemplateRequest) : this() {
this.analysisTemplateArn = x.analysisTemplateArn
this.collaborationIdentifier = x.collaborationIdentifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.GetCollaborationAnalysisTemplateRequest = GetCollaborationAnalysisTemplateRequest(this)
internal fun correctErrors(): Builder {
if (analysisTemplateArn == null) analysisTemplateArn = ""
if (collaborationIdentifier == null) collaborationIdentifier = ""
return this
}
}
}