
commonMain.aws.sdk.kotlin.services.codestar.model.ProjectSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codestar.model
/**
* Information about the metadata for a project.
*/
public class ProjectSummary private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the project.
*/
public val projectArn: kotlin.String? = builder.projectArn
/**
* The ID of the project.
*/
public val projectId: kotlin.String? = builder.projectId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codestar.model.ProjectSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProjectSummary(")
append("projectArn=$projectArn,")
append("projectId=$projectId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = projectArn?.hashCode() ?: 0
result = 31 * result + (projectId?.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 (projectArn != other.projectArn) return false
if (projectId != other.projectId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codestar.model.ProjectSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Resource Name (ARN) of the project.
*/
public var projectArn: kotlin.String? = null
/**
* The ID of the project.
*/
public var projectId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codestar.model.ProjectSummary) : this() {
this.projectArn = x.projectArn
this.projectId = x.projectId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codestar.model.ProjectSummary = ProjectSummary(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy