commonMain.aws.sdk.kotlin.services.codepipeline.model.CreatePipelineResponse.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 the output of a `CreatePipeline` action.
*/
public class CreatePipelineResponse private constructor(builder: Builder) {
/**
* Represents the structure of actions and stages to be performed in the pipeline.
*/
public val pipeline: aws.sdk.kotlin.services.codepipeline.model.PipelineDeclaration? = builder.pipeline
/**
* Specifies the tags applied to the pipeline.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codepipeline.model.CreatePipelineResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreatePipelineResponse(")
append("pipeline=$pipeline,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = pipeline?.hashCode() ?: 0
result = 31 * result + (tags?.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 CreatePipelineResponse
if (pipeline != other.pipeline) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codepipeline.model.CreatePipelineResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Represents the structure of actions and stages to be performed in the pipeline.
*/
public var pipeline: aws.sdk.kotlin.services.codepipeline.model.PipelineDeclaration? = null
/**
* Specifies the tags applied to the pipeline.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.CreatePipelineResponse) : this() {
this.pipeline = x.pipeline
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codepipeline.model.CreatePipelineResponse = CreatePipelineResponse(this)
/**
* construct an [aws.sdk.kotlin.services.codepipeline.model.PipelineDeclaration] inside the given [block]
*/
public fun pipeline(block: aws.sdk.kotlin.services.codepipeline.model.PipelineDeclaration.Builder.() -> kotlin.Unit) {
this.pipeline = aws.sdk.kotlin.services.codepipeline.model.PipelineDeclaration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy