
commonMain.aws.sdk.kotlin.services.cloudcontrol.model.ResourceDescription.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudcontrol.model
/**
* Represents information about a provisioned resource.
*/
public class ResourceDescription private constructor(builder: Builder) {
/**
* The primary identifier for the resource.
*
* For more information, see [Identifying resources](https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-identifier.html) in the *Amazon Web Services Cloud Control API User Guide*.
*/
public val identifier: kotlin.String? = builder.identifier
/**
* A list of the resource properties and their current values.
*/
public val properties: kotlin.String? = builder.properties
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudcontrol.model.ResourceDescription = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ResourceDescription(")
append("identifier=$identifier,")
append("properties=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = identifier?.hashCode() ?: 0
result = 31 * result + (properties?.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 ResourceDescription
if (identifier != other.identifier) return false
if (properties != other.properties) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudcontrol.model.ResourceDescription = Builder(this).apply(block).build()
public class Builder {
/**
* The primary identifier for the resource.
*
* For more information, see [Identifying resources](https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-identifier.html) in the *Amazon Web Services Cloud Control API User Guide*.
*/
public var identifier: kotlin.String? = null
/**
* A list of the resource properties and their current values.
*/
public var properties: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudcontrol.model.ResourceDescription) : this() {
this.identifier = x.identifier
this.properties = x.properties
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudcontrol.model.ResourceDescription = ResourceDescription(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy