
commonMain.aws.sdk.kotlin.services.configservice.model.StoredQueryMetadata.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.configservice.model
/**
* Returns details of a specific query.
*/
class StoredQueryMetadata private constructor(builder: Builder) {
/**
* A unique description for the query.
*/
val description: kotlin.String? = builder.description
/**
* Amazon Resource Name (ARN) of the query. For example, arn:partition:service:region:account-id:resource-type/resource-name/resource-id.
*/
val queryArn: kotlin.String? = builder.queryArn
/**
* The ID of the query.
*/
val queryId: kotlin.String? = builder.queryId
/**
* The name of the query.
*/
val queryName: kotlin.String? = builder.queryName
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.configservice.model.StoredQueryMetadata = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StoredQueryMetadata(")
append("description=$description,")
append("queryArn=$queryArn,")
append("queryId=$queryId,")
append("queryName=$queryName)")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (queryArn?.hashCode() ?: 0)
result = 31 * result + (queryId?.hashCode() ?: 0)
result = 31 * result + (queryName?.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 StoredQueryMetadata
if (description != other.description) return false
if (queryArn != other.queryArn) return false
if (queryId != other.queryId) return false
if (queryName != other.queryName) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.StoredQueryMetadata = Builder(this).apply(block).build()
class Builder {
/**
* A unique description for the query.
*/
var description: kotlin.String? = null
/**
* Amazon Resource Name (ARN) of the query. For example, arn:partition:service:region:account-id:resource-type/resource-name/resource-id.
*/
var queryArn: kotlin.String? = null
/**
* The ID of the query.
*/
var queryId: kotlin.String? = null
/**
* The name of the query.
*/
var queryName: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.configservice.model.StoredQueryMetadata) : this() {
this.description = x.description
this.queryArn = x.queryArn
this.queryId = x.queryId
this.queryName = x.queryName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.configservice.model.StoredQueryMetadata = StoredQueryMetadata(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy