
commonMain.aws.sdk.kotlin.services.ssm.model.GetParameterHistoryRequest.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 GetParameterHistoryRequest private constructor(builder: Builder) {
/**
* The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
*/
public val maxResults: kotlin.Int? = builder.maxResults
/**
* The name or Amazon Resource Name (ARN) of the parameter for which you want to review history. For parameters shared with you from another account, you must use the full ARN.
*/
public val name: kotlin.String? = builder.name
/**
* The token for the next set of items to return. (You received this token from a previous call.)
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* 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.GetParameterHistoryRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetParameterHistoryRequest(")
append("maxResults=$maxResults,")
append("name=$name,")
append("nextToken=$nextToken,")
append("withDecryption=$withDecryption")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = maxResults ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (nextToken?.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 GetParameterHistoryRequest
if (maxResults != other.maxResults) return false
if (name != other.name) return false
if (nextToken != other.nextToken) return false
if (withDecryption != other.withDecryption) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.GetParameterHistoryRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
*/
public var maxResults: kotlin.Int? = null
/**
* The name or Amazon Resource Name (ARN) of the parameter for which you want to review history. For parameters shared with you from another account, you must use the full ARN.
*/
public var name: kotlin.String? = null
/**
* The token for the next set of items to return. (You received this token from a previous call.)
*/
public var nextToken: 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.GetParameterHistoryRequest) : this() {
this.maxResults = x.maxResults
this.name = x.name
this.nextToken = x.nextToken
this.withDecryption = x.withDecryption
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.GetParameterHistoryRequest = GetParameterHistoryRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy