commonMain.aws.sdk.kotlin.services.cleanrooms.model.CreateAnalysisTemplateRequest.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 CreateAnalysisTemplateRequest private constructor(builder: Builder) {
/**
* The parameters of the analysis template.
*/
public val analysisParameters: List? = builder.analysisParameters
/**
* The description of the analysis template.
*/
public val description: kotlin.String? = builder.description
/**
* The format of the analysis template.
*/
public val format: aws.sdk.kotlin.services.cleanrooms.model.AnalysisFormat = requireNotNull(builder.format) { "A non-null value must be provided for format" }
/**
* The identifier for a membership resource.
*/
public val membershipIdentifier: kotlin.String = requireNotNull(builder.membershipIdentifier) { "A non-null value must be provided for membershipIdentifier" }
/**
* The name of the analysis template.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* The information in the analysis template. Currently supports `text`, the query text for the analysis template.
*/
public val source: aws.sdk.kotlin.services.cleanrooms.model.AnalysisSource? = builder.source
/**
* An optional label that you can assign to a resource when you create it. Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to this resource.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanrooms.model.CreateAnalysisTemplateRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateAnalysisTemplateRequest(")
append("analysisParameters=*** Sensitive Data Redacted ***,")
append("description=$description,")
append("format=$format,")
append("membershipIdentifier=$membershipIdentifier,")
append("name=$name,")
append("source=*** Sensitive Data Redacted ***,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = analysisParameters?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (format.hashCode())
result = 31 * result + (membershipIdentifier.hashCode())
result = 31 * result + (name.hashCode())
result = 31 * result + (source?.hashCode() ?: 0)
result = 31 * result + (tags?.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 CreateAnalysisTemplateRequest
if (analysisParameters != other.analysisParameters) return false
if (description != other.description) return false
if (format != other.format) return false
if (membershipIdentifier != other.membershipIdentifier) return false
if (name != other.name) return false
if (source != other.source) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanrooms.model.CreateAnalysisTemplateRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The parameters of the analysis template.
*/
public var analysisParameters: List? = null
/**
* The description of the analysis template.
*/
public var description: kotlin.String? = null
/**
* The format of the analysis template.
*/
public var format: aws.sdk.kotlin.services.cleanrooms.model.AnalysisFormat? = null
/**
* The identifier for a membership resource.
*/
public var membershipIdentifier: kotlin.String? = null
/**
* The name of the analysis template.
*/
public var name: kotlin.String? = null
/**
* The information in the analysis template. Currently supports `text`, the query text for the analysis template.
*/
public var source: aws.sdk.kotlin.services.cleanrooms.model.AnalysisSource? = null
/**
* An optional label that you can assign to a resource when you create it. Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to this resource.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.CreateAnalysisTemplateRequest) : this() {
this.analysisParameters = x.analysisParameters
this.description = x.description
this.format = x.format
this.membershipIdentifier = x.membershipIdentifier
this.name = x.name
this.source = x.source
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.CreateAnalysisTemplateRequest = CreateAnalysisTemplateRequest(this)
internal fun correctErrors(): Builder {
if (format == null) format = AnalysisFormat.SdkUnknown("no value provided")
if (membershipIdentifier == null) membershipIdentifier = ""
if (name == null) name = ""
return this
}
}
}