
commonMain.aws.sdk.kotlin.services.ssm.model.GetParametersRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
public class GetParametersRequest private constructor(builder: Builder) {
/**
* The names or Amazon Resource Names (ARNs) of the parameters that you want to query. For parameters shared with you from another account, you must use the full ARNs.
*
* 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 names: List? = builder.names
/**
* Return decrypted secure string value. 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.GetParametersRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetParametersRequest(")
append("names=$names,")
append("withDecryption=$withDecryption")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = names?.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 GetParametersRequest
if (names != other.names) return false
if (withDecryption != other.withDecryption) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.GetParametersRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The names or Amazon Resource Names (ARNs) of the parameters that you want to query. For parameters shared with you from another account, you must use the full ARNs.
*
* 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 names: List? = null
/**
* Return decrypted secure string value. 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.GetParametersRequest) : this() {
this.names = x.names
this.withDecryption = x.withDecryption
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.GetParametersRequest = GetParametersRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy