commonMain.aws.sdk.kotlin.services.configservice.model.RemediationExceptionResourceKey.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
/**
* The details that identify a resource within Config, including the resource type and resource ID.
*/
public class RemediationExceptionResourceKey private constructor(builder: Builder) {
/**
* The ID of the resource (for example., sg-xxxxxx).
*/
public val resourceId: kotlin.String? = builder.resourceId
/**
* The type of a resource.
*/
public val resourceType: kotlin.String? = builder.resourceType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.configservice.model.RemediationExceptionResourceKey = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RemediationExceptionResourceKey(")
append("resourceId=$resourceId,")
append("resourceType=$resourceType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = resourceId?.hashCode() ?: 0
result = 31 * result + (resourceType?.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 RemediationExceptionResourceKey
if (resourceId != other.resourceId) return false
if (resourceType != other.resourceType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.RemediationExceptionResourceKey = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the resource (for example., sg-xxxxxx).
*/
public var resourceId: kotlin.String? = null
/**
* The type of a resource.
*/
public var resourceType: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.configservice.model.RemediationExceptionResourceKey) : this() {
this.resourceId = x.resourceId
this.resourceType = x.resourceType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.configservice.model.RemediationExceptionResourceKey = RemediationExceptionResourceKey(this)
internal fun correctErrors(): Builder {
return this
}
}
}