commonMain.aws.sdk.kotlin.services.datazone.model.UpdateProjectRequest.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 UpdateProjectRequest private constructor(builder: Builder) {
/**
* The description to be updated as part of the `UpdateProject` action.
*/
public val description: kotlin.String? = builder.description
/**
* The identifier of the Amazon DataZone domain in which a project is to be updated.
*/
public val domainIdentifier: kotlin.String? = builder.domainIdentifier
/**
* The glossary terms to be updated as part of the `UpdateProject` action.
*/
public val glossaryTerms: List? = builder.glossaryTerms
/**
* The identifier of the project that is to be updated.
*/
public val identifier: kotlin.String? = builder.identifier
/**
* The name to be updated as part of the `UpdateProject` action.
*/
public val name: kotlin.String? = builder.name
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.UpdateProjectRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateProjectRequest(")
append("description=*** Sensitive Data Redacted ***,")
append("domainIdentifier=$domainIdentifier,")
append("glossaryTerms=$glossaryTerms,")
append("identifier=$identifier,")
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 + (glossaryTerms?.hashCode() ?: 0)
result = 31 * result + (identifier?.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 UpdateProjectRequest
if (description != other.description) return false
if (domainIdentifier != other.domainIdentifier) return false
if (glossaryTerms != other.glossaryTerms) return false
if (identifier != other.identifier) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.UpdateProjectRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The description to be updated as part of the `UpdateProject` action.
*/
public var description: kotlin.String? = null
/**
* The identifier of the Amazon DataZone domain in which a project is to be updated.
*/
public var domainIdentifier: kotlin.String? = null
/**
* The glossary terms to be updated as part of the `UpdateProject` action.
*/
public var glossaryTerms: List? = null
/**
* The identifier of the project that is to be updated.
*/
public var identifier: kotlin.String? = null
/**
* The name to be updated as part of the `UpdateProject` action.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.UpdateProjectRequest) : this() {
this.description = x.description
this.domainIdentifier = x.domainIdentifier
this.glossaryTerms = x.glossaryTerms
this.identifier = x.identifier
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.UpdateProjectRequest = UpdateProjectRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy