commonMain.aws.sdk.kotlin.services.appconfig.model.GetExtensionRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appconfig-jvm Show documentation
Show all versions of appconfig-jvm Show documentation
The AWS SDK for Kotlin client for AppConfig
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appconfig.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetExtensionRequest private constructor(builder: Builder) {
/**
* The name, the ID, or the Amazon Resource Name (ARN) of the extension.
*/
public val extensionIdentifier: kotlin.String? = builder.extensionIdentifier
/**
* The extension version number. If no version number was defined, AppConfig uses the highest version.
*/
public val versionNumber: kotlin.Int? = builder.versionNumber
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appconfig.model.GetExtensionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetExtensionRequest(")
append("extensionIdentifier=$extensionIdentifier,")
append("versionNumber=$versionNumber")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = extensionIdentifier?.hashCode() ?: 0
result = 31 * result + (versionNumber ?: 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 GetExtensionRequest
if (extensionIdentifier != other.extensionIdentifier) return false
if (versionNumber != other.versionNumber) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appconfig.model.GetExtensionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name, the ID, or the Amazon Resource Name (ARN) of the extension.
*/
public var extensionIdentifier: kotlin.String? = null
/**
* The extension version number. If no version number was defined, AppConfig uses the highest version.
*/
public var versionNumber: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appconfig.model.GetExtensionRequest) : this() {
this.extensionIdentifier = x.extensionIdentifier
this.versionNumber = x.versionNumber
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appconfig.model.GetExtensionRequest = GetExtensionRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy