commonMain.aws.sdk.kotlin.services.appconfig.model.ValidateConfigurationRequest.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 ValidateConfigurationRequest 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 of the configuration to validate.
*/
public val configurationVersion: kotlin.String? = builder.configurationVersion
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appconfig.model.ValidateConfigurationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ValidateConfigurationRequest(")
append("applicationId=$applicationId,")
append("configurationProfileId=$configurationProfileId,")
append("configurationVersion=$configurationVersion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationId?.hashCode() ?: 0
result = 31 * result + (configurationProfileId?.hashCode() ?: 0)
result = 31 * result + (configurationVersion?.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 ValidateConfigurationRequest
if (applicationId != other.applicationId) return false
if (configurationProfileId != other.configurationProfileId) return false
if (configurationVersion != other.configurationVersion) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appconfig.model.ValidateConfigurationRequest = 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 of the configuration to validate.
*/
public var configurationVersion: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appconfig.model.ValidateConfigurationRequest) : this() {
this.applicationId = x.applicationId
this.configurationProfileId = x.configurationProfileId
this.configurationVersion = x.configurationVersion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appconfig.model.ValidateConfigurationRequest = ValidateConfigurationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy