
commonMain.aws.sdk.kotlin.services.pi.model.GetResourceMetadataRequest.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 GetResourceMetadataRequest private constructor(builder: Builder) {
/**
* 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
/**
* The Amazon Web Services service for which Performance Insights returns metrics.
*/
public val serviceType: aws.sdk.kotlin.services.pi.model.ServiceType? = builder.serviceType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pi.model.GetResourceMetadataRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetResourceMetadataRequest(")
append("identifier=$identifier,")
append("serviceType=$serviceType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = identifier?.hashCode() ?: 0
result = 31 * result + (serviceType?.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 GetResourceMetadataRequest
if (identifier != other.identifier) return false
if (serviceType != other.serviceType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pi.model.GetResourceMetadataRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* 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
/**
* The Amazon Web Services service for which Performance Insights returns metrics.
*/
public var serviceType: aws.sdk.kotlin.services.pi.model.ServiceType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pi.model.GetResourceMetadataRequest) : this() {
this.identifier = x.identifier
this.serviceType = x.serviceType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pi.model.GetResourceMetadataRequest = GetResourceMetadataRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy