
commonMain.aws.sdk.kotlin.services.pi.model.GetResourceMetadataResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pi.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetResourceMetadataResponse private constructor(builder: Builder) {
/**
* The metadata for different features. For example, the metadata might indicate that a feature is turned on or off on a specific DB instance.
*/
public val features: Map? = builder.features
/**
* An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. To use a DB instance as a data source, specify its `DbiResourceId` value. For example, specify `db-ABCDEFGHIJKLMNOPQRSTU1VW2X`.
*/
public val identifier: kotlin.String? = builder.identifier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pi.model.GetResourceMetadataResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetResourceMetadataResponse(")
append("features=$features,")
append("identifier=$identifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = features?.hashCode() ?: 0
result = 31 * result + (identifier?.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 GetResourceMetadataResponse
if (features != other.features) return false
if (identifier != other.identifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pi.model.GetResourceMetadataResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The metadata for different features. For example, the metadata might indicate that a feature is turned on or off on a specific DB instance.
*/
public var features: Map? = null
/**
* An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. To use a DB instance as a data source, specify its `DbiResourceId` value. For example, specify `db-ABCDEFGHIJKLMNOPQRSTU1VW2X`.
*/
public var identifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pi.model.GetResourceMetadataResponse) : this() {
this.features = x.features
this.identifier = x.identifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pi.model.GetResourceMetadataResponse = GetResourceMetadataResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy