commonMain.aws.sdk.kotlin.services.datazone.model.ProjectSummary.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* The details of a Amazon DataZone project.
*/
public class ProjectSummary private constructor(builder: Builder) {
/**
* The timestamp of when a project was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The Amazon DataZone user who created the project.
*/
public val createdBy: kotlin.String = requireNotNull(builder.createdBy) { "A non-null value must be provided for createdBy" }
/**
* The description of a project.
*/
public val description: kotlin.String? = builder.description
/**
* The identifier of a Amazon DataZone domain where the project exists.
*/
public val domainId: kotlin.String = requireNotNull(builder.domainId) { "A non-null value must be provided for domainId" }
/**
* The ID of the domain unit.
*/
public val domainUnitId: kotlin.String? = builder.domainUnitId
/**
* Specifies the error message that is returned if the operation cannot be successfully completed.
*/
public val failureReasons: List? = builder.failureReasons
/**
* The identifier of a project.
*/
public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
/**
* The name of a project.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* The status of the project.
*/
public val projectStatus: aws.sdk.kotlin.services.datazone.model.ProjectStatus? = builder.projectStatus
/**
* The timestamp of when the project was updated.
*/
public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.ProjectSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProjectSummary(")
append("createdAt=$createdAt,")
append("createdBy=$createdBy,")
append("description=*** Sensitive Data Redacted ***,")
append("domainId=$domainId,")
append("domainUnitId=$domainUnitId,")
append("failureReasons=$failureReasons,")
append("id=$id,")
append("name=*** Sensitive Data Redacted ***,")
append("projectStatus=$projectStatus,")
append("updatedAt=$updatedAt")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdAt?.hashCode() ?: 0
result = 31 * result + (createdBy.hashCode())
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (domainId.hashCode())
result = 31 * result + (domainUnitId?.hashCode() ?: 0)
result = 31 * result + (failureReasons?.hashCode() ?: 0)
result = 31 * result + (id.hashCode())
result = 31 * result + (name.hashCode())
result = 31 * result + (projectStatus?.hashCode() ?: 0)
result = 31 * result + (updatedAt?.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 ProjectSummary
if (createdAt != other.createdAt) return false
if (createdBy != other.createdBy) return false
if (description != other.description) return false
if (domainId != other.domainId) return false
if (domainUnitId != other.domainUnitId) return false
if (failureReasons != other.failureReasons) return false
if (id != other.id) return false
if (name != other.name) return false
if (projectStatus != other.projectStatus) return false
if (updatedAt != other.updatedAt) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.ProjectSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The timestamp of when a project was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The Amazon DataZone user who created the project.
*/
public var createdBy: kotlin.String? = null
/**
* The description of a project.
*/
public var description: kotlin.String? = null
/**
* The identifier of a Amazon DataZone domain where the project exists.
*/
public var domainId: kotlin.String? = null
/**
* The ID of the domain unit.
*/
public var domainUnitId: kotlin.String? = null
/**
* Specifies the error message that is returned if the operation cannot be successfully completed.
*/
public var failureReasons: List? = null
/**
* The identifier of a project.
*/
public var id: kotlin.String? = null
/**
* The name of a project.
*/
public var name: kotlin.String? = null
/**
* The status of the project.
*/
public var projectStatus: aws.sdk.kotlin.services.datazone.model.ProjectStatus? = null
/**
* The timestamp of when the project was updated.
*/
public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.ProjectSummary) : this() {
this.createdAt = x.createdAt
this.createdBy = x.createdBy
this.description = x.description
this.domainId = x.domainId
this.domainUnitId = x.domainUnitId
this.failureReasons = x.failureReasons
this.id = x.id
this.name = x.name
this.projectStatus = x.projectStatus
this.updatedAt = x.updatedAt
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.ProjectSummary = ProjectSummary(this)
internal fun correctErrors(): Builder {
if (createdBy == null) createdBy = ""
if (domainId == null) domainId = ""
if (id == null) id = ""
if (name == null) name = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy