commonMain.aws.sdk.kotlin.services.proton.model.GetDeploymentRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proton-jvm Show documentation
Show all versions of proton-jvm Show documentation
The AWS SDK for Kotlin client for Proton
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.proton.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetDeploymentRequest private constructor(builder: Builder) {
/**
* The name of a component that you want to get the detailed data for.
*/
public val componentName: kotlin.String? = builder.componentName
/**
* The name of a environment that you want to get the detailed data for.
*/
public val environmentName: kotlin.String? = builder.environmentName
/**
* The ID of the deployment that you want to get the detailed data for.
*/
public val id: kotlin.String? = builder.id
/**
* The name of the service instance associated with the given deployment ID. `serviceName` must be specified to identify the service instance.
*/
public val serviceInstanceName: kotlin.String? = builder.serviceInstanceName
/**
* The name of the service associated with the given deployment ID.
*/
public val serviceName: kotlin.String? = builder.serviceName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.proton.model.GetDeploymentRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDeploymentRequest(")
append("componentName=$componentName,")
append("environmentName=$environmentName,")
append("id=$id,")
append("serviceInstanceName=$serviceInstanceName,")
append("serviceName=$serviceName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = componentName?.hashCode() ?: 0
result = 31 * result + (environmentName?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (serviceInstanceName?.hashCode() ?: 0)
result = 31 * result + (serviceName?.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 (componentName != other.componentName) return false
if (environmentName != other.environmentName) return false
if (id != other.id) return false
if (serviceInstanceName != other.serviceInstanceName) return false
if (serviceName != other.serviceName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.proton.model.GetDeploymentRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of a component that you want to get the detailed data for.
*/
public var componentName: kotlin.String? = null
/**
* The name of a environment that you want to get the detailed data for.
*/
public var environmentName: kotlin.String? = null
/**
* The ID of the deployment that you want to get the detailed data for.
*/
public var id: kotlin.String? = null
/**
* The name of the service instance associated with the given deployment ID. `serviceName` must be specified to identify the service instance.
*/
public var serviceInstanceName: kotlin.String? = null
/**
* The name of the service associated with the given deployment ID.
*/
public var serviceName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.proton.model.GetDeploymentRequest) : this() {
this.componentName = x.componentName
this.environmentName = x.environmentName
this.id = x.id
this.serviceInstanceName = x.serviceInstanceName
this.serviceName = x.serviceName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.proton.model.GetDeploymentRequest = GetDeploymentRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy