commonMain.aws.sdk.kotlin.services.secretsmanager.model.BatchGetSecretValueResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of secretsmanager-jvm Show documentation
Show all versions of secretsmanager-jvm Show documentation
The AWS SDK for Kotlin client for Secrets Manager
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.secretsmanager.model
import aws.smithy.kotlin.runtime.SdkDsl
public class BatchGetSecretValueResponse private constructor(builder: Builder) {
/**
* A list of errors Secrets Manager encountered while attempting to retrieve individual secrets.
*/
public val errors: List? = builder.errors
/**
* Secrets Manager includes this value if there's more output available than what is included in the current response. This can occur even when the response includes no values at all, such as when you ask for a filtered view of a long list. To get the next results, call `BatchGetSecretValue` again with this value.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* A list of secret values.
*/
public val secretValues: List? = builder.secretValues
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.secretsmanager.model.BatchGetSecretValueResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchGetSecretValueResponse(")
append("errors=$errors,")
append("nextToken=$nextToken,")
append("secretValues=$secretValues")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = errors?.hashCode() ?: 0
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (secretValues?.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 BatchGetSecretValueResponse
if (errors != other.errors) return false
if (nextToken != other.nextToken) return false
if (secretValues != other.secretValues) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.secretsmanager.model.BatchGetSecretValueResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of errors Secrets Manager encountered while attempting to retrieve individual secrets.
*/
public var errors: List? = null
/**
* Secrets Manager includes this value if there's more output available than what is included in the current response. This can occur even when the response includes no values at all, such as when you ask for a filtered view of a long list. To get the next results, call `BatchGetSecretValue` again with this value.
*/
public var nextToken: kotlin.String? = null
/**
* A list of secret values.
*/
public var secretValues: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.secretsmanager.model.BatchGetSecretValueResponse) : this() {
this.errors = x.errors
this.nextToken = x.nextToken
this.secretValues = x.secretValues
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.secretsmanager.model.BatchGetSecretValueResponse = BatchGetSecretValueResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}