commonMain.aws.sdk.kotlin.services.appconfig.model.GetHostedConfigurationVersionRequest.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 GetHostedConfigurationVersionRequest private constructor(builder: Builder) {
/**
* The application ID.
*/
public val applicationId: kotlin.String? = builder.applicationId
/**
* The configuration profile ID.
*/
public val configurationProfileId: kotlin.String? = builder.configurationProfileId
/**
* The 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.GetHostedConfigurationVersionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetHostedConfigurationVersionRequest(")
append("applicationId=$applicationId,")
append("configurationProfileId=$configurationProfileId,")
append("versionNumber=$versionNumber")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationId?.hashCode() ?: 0
result = 31 * result + (configurationProfileId?.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 GetHostedConfigurationVersionRequest
if (applicationId != other.applicationId) return false
if (configurationProfileId != other.configurationProfileId) return false
if (versionNumber != other.versionNumber) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appconfig.model.GetHostedConfigurationVersionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The application ID.
*/
public var applicationId: kotlin.String? = null
/**
* The configuration profile ID.
*/
public var configurationProfileId: kotlin.String? = null
/**
* The version.
*/
public var versionNumber: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appconfig.model.GetHostedConfigurationVersionRequest) : this() {
this.applicationId = x.applicationId
this.configurationProfileId = x.configurationProfileId
this.versionNumber = x.versionNumber
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appconfig.model.GetHostedConfigurationVersionRequest = GetHostedConfigurationVersionRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy