
commonMain.aws.sdk.kotlin.services.ssm.model.GetParameterRequest.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 GetParameterRequest private constructor(builder: Builder) {
/**
* The name or Amazon Resource Name (ARN) of the parameter that you want to query. For parameters shared with you from another account, you must use the full ARN.
*
* To query by parameter label, use `"Name": "name:label"`. To query by parameter version, use `"Name": "name:version"`.
*
* For more information about shared parameters, see [Working with shared parameters](https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-shared-parameters.html) in the *Amazon Web Services Systems Manager User Guide*.
*/
public val name: kotlin.String? = builder.name
/**
* Return decrypted values for secure string parameters. This flag is ignored for `String` and `StringList` parameter types.
*/
public val withDecryption: kotlin.Boolean? = builder.withDecryption
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.GetParameterRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetParameterRequest(")
append("name=$name,")
append("withDecryption=$withDecryption")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = name?.hashCode() ?: 0
result = 31 * result + (withDecryption?.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 GetParameterRequest
if (name != other.name) return false
if (withDecryption != other.withDecryption) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.GetParameterRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name or Amazon Resource Name (ARN) of the parameter that you want to query. For parameters shared with you from another account, you must use the full ARN.
*
* To query by parameter label, use `"Name": "name:label"`. To query by parameter version, use `"Name": "name:version"`.
*
* For more information about shared parameters, see [Working with shared parameters](https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-shared-parameters.html) in the *Amazon Web Services Systems Manager User Guide*.
*/
public var name: kotlin.String? = null
/**
* Return decrypted values for secure string parameters. This flag is ignored for `String` and `StringList` parameter types.
*/
public var withDecryption: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.GetParameterRequest) : this() {
this.name = x.name
this.withDecryption = x.withDecryption
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.GetParameterRequest = GetParameterRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy