
commonMain.aws.sdk.kotlin.services.ssm.model.LabelParameterVersionResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
import aws.smithy.kotlin.runtime.SdkDsl
public class LabelParameterVersionResponse private constructor(builder: Builder) {
/**
* The label doesn't meet the requirements. For information about parameter label requirements, see [Working with parameter labels](https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-labels.html) in the *Amazon Web Services Systems Manager User Guide*.
*/
public val invalidLabels: List? = builder.invalidLabels
/**
* The version of the parameter that has been labeled.
*/
public val parameterVersion: kotlin.Long = builder.parameterVersion
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.LabelParameterVersionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LabelParameterVersionResponse(")
append("invalidLabels=$invalidLabels,")
append("parameterVersion=$parameterVersion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = invalidLabels?.hashCode() ?: 0
result = 31 * result + (parameterVersion.hashCode())
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 LabelParameterVersionResponse
if (invalidLabels != other.invalidLabels) return false
if (parameterVersion != other.parameterVersion) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.LabelParameterVersionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The label doesn't meet the requirements. For information about parameter label requirements, see [Working with parameter labels](https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-labels.html) in the *Amazon Web Services Systems Manager User Guide*.
*/
public var invalidLabels: List? = null
/**
* The version of the parameter that has been labeled.
*/
public var parameterVersion: kotlin.Long = 0L
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.LabelParameterVersionResponse) : this() {
this.invalidLabels = x.invalidLabels
this.parameterVersion = x.parameterVersion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.LabelParameterVersionResponse = LabelParameterVersionResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy