
commonMain.aws.sdk.kotlin.services.ssm.model.PutParameterResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
public class PutParameterResponse private constructor(builder: Builder) {
/**
* The tier assigned to the parameter.
*/
public val tier: aws.sdk.kotlin.services.ssm.model.ParameterTier? = builder.tier
/**
* The new version number of a parameter. If you edit a parameter value, Parameter Store automatically creates a new version and assigns this new version a unique ID. You can reference a parameter version ID in API operations or in Systems Manager documents (SSM documents). By default, if you don't specify a specific version, the system returns the latest parameter value when a parameter is called.
*/
public val version: kotlin.Long = builder.version
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.PutParameterResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutParameterResponse(")
append("tier=$tier,")
append("version=$version")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = tier?.hashCode() ?: 0
result = 31 * result + (version.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 PutParameterResponse
if (tier != other.tier) return false
if (version != other.version) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.PutParameterResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The tier assigned to the parameter.
*/
public var tier: aws.sdk.kotlin.services.ssm.model.ParameterTier? = null
/**
* The new version number of a parameter. If you edit a parameter value, Parameter Store automatically creates a new version and assigns this new version a unique ID. You can reference a parameter version ID in API operations or in Systems Manager documents (SSM documents). By default, if you don't specify a specific version, the system returns the latest parameter value when a parameter is called.
*/
public var version: kotlin.Long = 0L
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.PutParameterResponse) : this() {
this.tier = x.tier
this.version = x.version
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.PutParameterResponse = PutParameterResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy