
commonMain.aws.sdk.kotlin.services.codestar.model.CreateProjectResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codestar.model
public class CreateProjectResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the created project.
*/
public val arn: kotlin.String? = builder.arn
/**
* A user- or system-generated token that identifies the entity that requested project creation.
*/
public val clientRequestToken: kotlin.String? = builder.clientRequestToken
/**
* The ID of the project.
*/
public val id: kotlin.String? = builder.id
/**
* Reserved for future use.
*/
public val projectTemplateId: kotlin.String? = builder.projectTemplateId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codestar.model.CreateProjectResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateProjectResponse(")
append("arn=$arn,")
append("clientRequestToken=$clientRequestToken,")
append("id=$id,")
append("projectTemplateId=$projectTemplateId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (clientRequestToken?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (projectTemplateId?.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 CreateProjectResponse
if (arn != other.arn) return false
if (clientRequestToken != other.clientRequestToken) return false
if (id != other.id) return false
if (projectTemplateId != other.projectTemplateId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codestar.model.CreateProjectResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Resource Name (ARN) of the created project.
*/
public var arn: kotlin.String? = null
/**
* A user- or system-generated token that identifies the entity that requested project creation.
*/
public var clientRequestToken: kotlin.String? = null
/**
* The ID of the project.
*/
public var id: kotlin.String? = null
/**
* Reserved for future use.
*/
public var projectTemplateId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codestar.model.CreateProjectResponse) : this() {
this.arn = x.arn
this.clientRequestToken = x.clientRequestToken
this.id = x.id
this.projectTemplateId = x.projectTemplateId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codestar.model.CreateProjectResponse = CreateProjectResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy