
commonMain.aws.sdk.kotlin.services.configservice.model.AggregateResourceIdentifier.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.configservice.model
/**
* The details that identify a resource that is collected by Config aggregator, including the resource type, ID, (if available) the custom resource name, the source account, and source region.
*/
class AggregateResourceIdentifier private constructor(builder: Builder) {
/**
* The ID of the Amazon Web Services resource.
*/
val resourceId: kotlin.String? = builder.resourceId
/**
* The name of the Amazon Web Services resource.
*/
val resourceName: kotlin.String? = builder.resourceName
/**
* The type of the Amazon Web Services resource.
*/
val resourceType: aws.sdk.kotlin.services.configservice.model.ResourceType? = builder.resourceType
/**
* The 12-digit account ID of the source account.
*/
val sourceAccountId: kotlin.String? = builder.sourceAccountId
/**
* The source region where data is aggregated.
*/
val sourceRegion: kotlin.String? = builder.sourceRegion
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.configservice.model.AggregateResourceIdentifier = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AggregateResourceIdentifier(")
append("resourceId=$resourceId,")
append("resourceName=$resourceName,")
append("resourceType=$resourceType,")
append("sourceAccountId=$sourceAccountId,")
append("sourceRegion=$sourceRegion)")
}
override fun hashCode(): kotlin.Int {
var result = resourceId?.hashCode() ?: 0
result = 31 * result + (resourceName?.hashCode() ?: 0)
result = 31 * result + (resourceType?.hashCode() ?: 0)
result = 31 * result + (sourceAccountId?.hashCode() ?: 0)
result = 31 * result + (sourceRegion?.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 AggregateResourceIdentifier
if (resourceId != other.resourceId) return false
if (resourceName != other.resourceName) return false
if (resourceType != other.resourceType) return false
if (sourceAccountId != other.sourceAccountId) return false
if (sourceRegion != other.sourceRegion) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.AggregateResourceIdentifier = Builder(this).apply(block).build()
class Builder {
/**
* The ID of the Amazon Web Services resource.
*/
var resourceId: kotlin.String? = null
/**
* The name of the Amazon Web Services resource.
*/
var resourceName: kotlin.String? = null
/**
* The type of the Amazon Web Services resource.
*/
var resourceType: aws.sdk.kotlin.services.configservice.model.ResourceType? = null
/**
* The 12-digit account ID of the source account.
*/
var sourceAccountId: kotlin.String? = null
/**
* The source region where data is aggregated.
*/
var sourceRegion: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.configservice.model.AggregateResourceIdentifier) : this() {
this.resourceId = x.resourceId
this.resourceName = x.resourceName
this.resourceType = x.resourceType
this.sourceAccountId = x.sourceAccountId
this.sourceRegion = x.sourceRegion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.configservice.model.AggregateResourceIdentifier = AggregateResourceIdentifier(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy