commonMain.aws.sdk.kotlin.services.codepipeline.model.ArtifactDetail.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codepipeline-jvm Show documentation
Show all versions of codepipeline-jvm Show documentation
The AWS SDK for Kotlin client for CodePipeline
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codepipeline.model
/**
* Artifact details for the action execution, such as the artifact location.
*/
public class ArtifactDetail private constructor(builder: Builder) {
/**
* The artifact object name for the action execution.
*/
public val name: kotlin.String? = builder.name
/**
* The Amazon S3 artifact location for the action execution.
*/
public val s3Location: aws.sdk.kotlin.services.codepipeline.model.S3Location? = builder.s3Location
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codepipeline.model.ArtifactDetail = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ArtifactDetail(")
append("name=$name,")
append("s3Location=$s3Location")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = name?.hashCode() ?: 0
result = 31 * result + (s3Location?.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 ArtifactDetail
if (name != other.name) return false
if (s3Location != other.s3Location) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codepipeline.model.ArtifactDetail = Builder(this).apply(block).build()
public class Builder {
/**
* The artifact object name for the action execution.
*/
public var name: kotlin.String? = null
/**
* The Amazon S3 artifact location for the action execution.
*/
public var s3Location: aws.sdk.kotlin.services.codepipeline.model.S3Location? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.ArtifactDetail) : this() {
this.name = x.name
this.s3Location = x.s3Location
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codepipeline.model.ArtifactDetail = ArtifactDetail(this)
/**
* construct an [aws.sdk.kotlin.services.codepipeline.model.S3Location] inside the given [block]
*/
public fun s3Location(block: aws.sdk.kotlin.services.codepipeline.model.S3Location.Builder.() -> kotlin.Unit) {
this.s3Location = aws.sdk.kotlin.services.codepipeline.model.S3Location.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy