commonMain.aws.sdk.kotlin.services.appconfig.model.GetDeploymentRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appconfig-jvm Show documentation
Show all versions of appconfig-jvm Show documentation
The AWS SDK for Kotlin client for AppConfig
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appconfig.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetDeploymentRequest private constructor(builder: Builder) {
/**
* The ID of the application that includes the deployment you want to get.
*/
public val applicationId: kotlin.String? = builder.applicationId
/**
* The sequence number of the deployment.
*/
public val deploymentNumber: kotlin.Int? = builder.deploymentNumber
/**
* The ID of the environment that includes the deployment you want to get.
*/
public val environmentId: kotlin.String? = builder.environmentId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appconfig.model.GetDeploymentRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDeploymentRequest(")
append("applicationId=$applicationId,")
append("deploymentNumber=$deploymentNumber,")
append("environmentId=$environmentId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationId?.hashCode() ?: 0
result = 31 * result + (deploymentNumber ?: 0)
result = 31 * result + (environmentId?.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 GetDeploymentRequest
if (applicationId != other.applicationId) return false
if (deploymentNumber != other.deploymentNumber) return false
if (environmentId != other.environmentId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appconfig.model.GetDeploymentRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the application that includes the deployment you want to get.
*/
public var applicationId: kotlin.String? = null
/**
* The sequence number of the deployment.
*/
public var deploymentNumber: kotlin.Int? = null
/**
* The ID of the environment that includes the deployment you want to get.
*/
public var environmentId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appconfig.model.GetDeploymentRequest) : this() {
this.applicationId = x.applicationId
this.deploymentNumber = x.deploymentNumber
this.environmentId = x.environmentId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appconfig.model.GetDeploymentRequest = GetDeploymentRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy