commonMain.aws.sdk.kotlin.services.configservice.model.BatchGetResourceConfigResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of configservice-jvm Show documentation
Show all versions of configservice-jvm Show documentation
The AWS SDK for Kotlin client for Config Service
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.configservice.model
import aws.smithy.kotlin.runtime.SdkDsl
public class BatchGetResourceConfigResponse private constructor(builder: Builder) {
/**
* A list that contains the current configuration of one or more resources.
*/
public val baseConfigurationItems: List? = builder.baseConfigurationItems
/**
* A list of resource keys that were not processed with the current response. The unprocessesResourceKeys value is in the same form as ResourceKeys, so the value can be directly provided to a subsequent BatchGetResourceConfig operation. If there are no unprocessed resource keys, the response contains an empty unprocessedResourceKeys list.
*/
public val unprocessedResourceKeys: List? = builder.unprocessedResourceKeys
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.configservice.model.BatchGetResourceConfigResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchGetResourceConfigResponse(")
append("baseConfigurationItems=$baseConfigurationItems,")
append("unprocessedResourceKeys=$unprocessedResourceKeys")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = baseConfigurationItems?.hashCode() ?: 0
result = 31 * result + (unprocessedResourceKeys?.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 BatchGetResourceConfigResponse
if (baseConfigurationItems != other.baseConfigurationItems) return false
if (unprocessedResourceKeys != other.unprocessedResourceKeys) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.BatchGetResourceConfigResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list that contains the current configuration of one or more resources.
*/
public var baseConfigurationItems: List? = null
/**
* A list of resource keys that were not processed with the current response. The unprocessesResourceKeys value is in the same form as ResourceKeys, so the value can be directly provided to a subsequent BatchGetResourceConfig operation. If there are no unprocessed resource keys, the response contains an empty unprocessedResourceKeys list.
*/
public var unprocessedResourceKeys: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.configservice.model.BatchGetResourceConfigResponse) : this() {
this.baseConfigurationItems = x.baseConfigurationItems
this.unprocessedResourceKeys = x.unprocessedResourceKeys
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.configservice.model.BatchGetResourceConfigResponse = BatchGetResourceConfigResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}