commonMain.aws.sdk.kotlin.services.codepipeline.model.GetPipelineRequest.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
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Represents the input of a `GetPipeline` action.
*/
public class GetPipelineRequest private constructor(builder: Builder) {
/**
* The name of the pipeline for which you want to get information. Pipeline names must be unique in an Amazon Web Services account.
*/
public val name: kotlin.String? = builder.name
/**
* The version number of the pipeline. If you do not specify a version, defaults to the current version.
*/
public val version: kotlin.Int? = builder.version
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codepipeline.model.GetPipelineRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetPipelineRequest(")
append("name=$name,")
append("version=$version")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = name?.hashCode() ?: 0
result = 31 * result + (version ?: 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 GetPipelineRequest
if (name != other.name) return false
if (version != other.version) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codepipeline.model.GetPipelineRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the pipeline for which you want to get information. Pipeline names must be unique in an Amazon Web Services account.
*/
public var name: kotlin.String? = null
/**
* The version number of the pipeline. If you do not specify a version, defaults to the current version.
*/
public var version: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.GetPipelineRequest) : this() {
this.name = x.name
this.version = x.version
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codepipeline.model.GetPipelineRequest = GetPipelineRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy