commonMain.aws.sdk.kotlin.services.iotfleetwise.model.TimestreamResources.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iotfleetwise-jvm Show documentation
Show all versions of iotfleetwise-jvm Show documentation
The AWS SDK for Kotlin client for IoTFleetWise
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iotfleetwise.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The registered Amazon Timestream resources that Amazon Web Services IoT FleetWise edge agent software can transfer your vehicle data to.
*/
public class TimestreamResources private constructor(builder: Builder) {
/**
* The name of the registered Amazon Timestream database.
*/
public val timestreamDatabaseName: kotlin.String = requireNotNull(builder.timestreamDatabaseName) { "A non-null value must be provided for timestreamDatabaseName" }
/**
* The name of the registered Amazon Timestream database table.
*/
public val timestreamTableName: kotlin.String = requireNotNull(builder.timestreamTableName) { "A non-null value must be provided for timestreamTableName" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotfleetwise.model.TimestreamResources = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TimestreamResources(")
append("timestreamDatabaseName=$timestreamDatabaseName,")
append("timestreamTableName=$timestreamTableName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = timestreamDatabaseName.hashCode()
result = 31 * result + (timestreamTableName.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 TimestreamResources
if (timestreamDatabaseName != other.timestreamDatabaseName) return false
if (timestreamTableName != other.timestreamTableName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotfleetwise.model.TimestreamResources = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the registered Amazon Timestream database.
*/
public var timestreamDatabaseName: kotlin.String? = null
/**
* The name of the registered Amazon Timestream database table.
*/
public var timestreamTableName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotfleetwise.model.TimestreamResources) : this() {
this.timestreamDatabaseName = x.timestreamDatabaseName
this.timestreamTableName = x.timestreamTableName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotfleetwise.model.TimestreamResources = TimestreamResources(this)
internal fun correctErrors(): Builder {
if (timestreamDatabaseName == null) timestreamDatabaseName = ""
if (timestreamTableName == null) timestreamTableName = ""
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy