commonMain.aws.sdk.kotlin.services.datazone.model.CreateProjectRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datazone-jvm Show documentation
Show all versions of datazone-jvm Show documentation
The AWS SDK for Kotlin client for DataZone
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datazone.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateProjectRequest private constructor(builder: Builder) {
/**
* The description of the Amazon DataZone project.
*/
public val description: kotlin.String? = builder.description
/**
* The ID of the Amazon DataZone domain in which this project is created.
*/
public val domainIdentifier: kotlin.String? = builder.domainIdentifier
/**
* The ID of the domain unit. This parameter is not required and if it is not specified, then the project is created at the root domain unit level.
*/
public val domainUnitId: kotlin.String? = builder.domainUnitId
/**
* The glossary terms that can be used in this Amazon DataZone project.
*/
public val glossaryTerms: List? = builder.glossaryTerms
/**
* The name of the Amazon DataZone project.
*/
public val name: kotlin.String? = builder.name
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.CreateProjectRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateProjectRequest(")
append("description=*** Sensitive Data Redacted ***,")
append("domainIdentifier=$domainIdentifier,")
append("domainUnitId=$domainUnitId,")
append("glossaryTerms=$glossaryTerms,")
append("name=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (domainIdentifier?.hashCode() ?: 0)
result = 31 * result + (domainUnitId?.hashCode() ?: 0)
result = 31 * result + (glossaryTerms?.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 CreateProjectRequest
if (description != other.description) return false
if (domainIdentifier != other.domainIdentifier) return false
if (domainUnitId != other.domainUnitId) return false
if (glossaryTerms != other.glossaryTerms) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.CreateProjectRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The description of the Amazon DataZone project.
*/
public var description: kotlin.String? = null
/**
* The ID of the Amazon DataZone domain in which this project is created.
*/
public var domainIdentifier: kotlin.String? = null
/**
* The ID of the domain unit. This parameter is not required and if it is not specified, then the project is created at the root domain unit level.
*/
public var domainUnitId: kotlin.String? = null
/**
* The glossary terms that can be used in this Amazon DataZone project.
*/
public var glossaryTerms: List? = null
/**
* The name of the Amazon DataZone project.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.CreateProjectRequest) : this() {
this.description = x.description
this.domainIdentifier = x.domainIdentifier
this.domainUnitId = x.domainUnitId
this.glossaryTerms = x.glossaryTerms
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.CreateProjectRequest = CreateProjectRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy