commonMain.aws.sdk.kotlin.services.codepipeline.model.ArtifactLocation.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
/**
* Represents information about the location of an artifact.
*/
public class ArtifactLocation private constructor(builder: Builder) {
/**
* The S3 bucket that contains the artifact.
*/
public val s3Location: aws.sdk.kotlin.services.codepipeline.model.S3ArtifactLocation? = builder.s3Location
/**
* The type of artifact in the location.
*/
public val type: aws.sdk.kotlin.services.codepipeline.model.ArtifactLocationType? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codepipeline.model.ArtifactLocation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ArtifactLocation(")
append("s3Location=$s3Location,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = s3Location?.hashCode() ?: 0
result = 31 * result + (type?.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 ArtifactLocation
if (s3Location != other.s3Location) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codepipeline.model.ArtifactLocation = Builder(this).apply(block).build()
public class Builder {
/**
* The S3 bucket that contains the artifact.
*/
public var s3Location: aws.sdk.kotlin.services.codepipeline.model.S3ArtifactLocation? = null
/**
* The type of artifact in the location.
*/
public var type: aws.sdk.kotlin.services.codepipeline.model.ArtifactLocationType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.ArtifactLocation) : this() {
this.s3Location = x.s3Location
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codepipeline.model.ArtifactLocation = ArtifactLocation(this)
/**
* construct an [aws.sdk.kotlin.services.codepipeline.model.S3ArtifactLocation] inside the given [block]
*/
public fun s3Location(block: aws.sdk.kotlin.services.codepipeline.model.S3ArtifactLocation.Builder.() -> kotlin.Unit) {
this.s3Location = aws.sdk.kotlin.services.codepipeline.model.S3ArtifactLocation.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy