commonMain.aws.sdk.kotlin.services.proton.model.ProvisionedResource.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proton-jvm Show documentation
Show all versions of proton-jvm Show documentation
The AWS SDK for Kotlin client for Proton
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.proton.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Detail data for a provisioned resource.
*/
public class ProvisionedResource private constructor(builder: Builder) {
/**
* The provisioned resource identifier.
*/
public val identifier: kotlin.String? = builder.identifier
/**
* The provisioned resource name.
*/
public val name: kotlin.String? = builder.name
/**
* The resource provisioning engine. At this time, `CLOUDFORMATION` can be used for Amazon Web Services-managed provisioning, and `TERRAFORM` can be used for self-managed provisioning.
*
* For more information, see [Self-managed provisioning](https://docs.aws.amazon.com/proton/latest/userguide/ag-works-prov-methods.html#ag-works-prov-methods-self) in the *Proton User Guide*.
*/
public val provisioningEngine: aws.sdk.kotlin.services.proton.model.ProvisionedResourceEngine? = builder.provisioningEngine
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.proton.model.ProvisionedResource = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProvisionedResource(")
append("identifier=$identifier,")
append("name=$name,")
append("provisioningEngine=$provisioningEngine")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = identifier?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (provisioningEngine?.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 ProvisionedResource
if (identifier != other.identifier) return false
if (name != other.name) return false
if (provisioningEngine != other.provisioningEngine) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.proton.model.ProvisionedResource = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The provisioned resource identifier.
*/
public var identifier: kotlin.String? = null
/**
* The provisioned resource name.
*/
public var name: kotlin.String? = null
/**
* The resource provisioning engine. At this time, `CLOUDFORMATION` can be used for Amazon Web Services-managed provisioning, and `TERRAFORM` can be used for self-managed provisioning.
*
* For more information, see [Self-managed provisioning](https://docs.aws.amazon.com/proton/latest/userguide/ag-works-prov-methods.html#ag-works-prov-methods-self) in the *Proton User Guide*.
*/
public var provisioningEngine: aws.sdk.kotlin.services.proton.model.ProvisionedResourceEngine? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.proton.model.ProvisionedResource) : this() {
this.identifier = x.identifier
this.name = x.name
this.provisioningEngine = x.provisioningEngine
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.proton.model.ProvisionedResource = ProvisionedResource(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy