
commonMain.aws.sdk.kotlin.services.groundstation.model.UpdateConfigRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.groundstation.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
*
*/
public class UpdateConfigRequest private constructor(builder: Builder) {
/**
* Parameters of a `Config`.
*/
public val configData: aws.sdk.kotlin.services.groundstation.model.ConfigTypeData? = builder.configData
/**
* UUID of a `Config`.
*/
public val configId: kotlin.String = requireNotNull(builder.configId) { "A non-null value must be provided for configId" }
/**
* Type of a `Config`.
*/
public val configType: aws.sdk.kotlin.services.groundstation.model.ConfigCapabilityType = requireNotNull(builder.configType) { "A non-null value must be provided for configType" }
/**
* Name of a `Config`.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.groundstation.model.UpdateConfigRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateConfigRequest(")
append("configData=$configData,")
append("configId=$configId,")
append("configType=$configType,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = configData?.hashCode() ?: 0
result = 31 * result + (configId.hashCode())
result = 31 * result + (configType.hashCode())
result = 31 * result + (name.hashCode())
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 UpdateConfigRequest
if (configData != other.configData) return false
if (configId != other.configId) return false
if (configType != other.configType) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.groundstation.model.UpdateConfigRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Parameters of a `Config`.
*/
public var configData: aws.sdk.kotlin.services.groundstation.model.ConfigTypeData? = null
/**
* UUID of a `Config`.
*/
public var configId: kotlin.String? = null
/**
* Type of a `Config`.
*/
public var configType: aws.sdk.kotlin.services.groundstation.model.ConfigCapabilityType? = null
/**
* Name of a `Config`.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.groundstation.model.UpdateConfigRequest) : this() {
this.configData = x.configData
this.configId = x.configId
this.configType = x.configType
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.groundstation.model.UpdateConfigRequest = UpdateConfigRequest(this)
internal fun correctErrors(): Builder {
if (configId == null) configId = ""
if (configType == null) configType = ConfigCapabilityType.SdkUnknown("no value provided")
if (name == null) name = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy