commonMain.aws.sdk.kotlin.services.iotfleetwise.model.DataDestinationConfig.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
/**
* The destination where the Amazon Web Services IoT FleetWise campaign sends data. You can send data to be stored in Amazon S3 or Amazon Timestream.
*/
public sealed class DataDestinationConfig {
/**
* The Amazon S3 bucket where the Amazon Web Services IoT FleetWise campaign sends data.
*/
public data class S3Config(val value: aws.sdk.kotlin.services.iotfleetwise.model.S3Config) : aws.sdk.kotlin.services.iotfleetwise.model.DataDestinationConfig() {
}
/**
* The Amazon Timestream table where the campaign sends data.
*/
public data class TimestreamConfig(val value: aws.sdk.kotlin.services.iotfleetwise.model.TimestreamConfig) : aws.sdk.kotlin.services.iotfleetwise.model.DataDestinationConfig() {
}
public object SdkUnknown : aws.sdk.kotlin.services.iotfleetwise.model.DataDestinationConfig() {
}
/**
* Casts this [DataDestinationConfig] as a [S3Config] and retrieves its [aws.sdk.kotlin.services.iotfleetwise.model.S3Config] value. Throws an exception if the [DataDestinationConfig] is not a
* [S3Config].
*/
public fun asS3Config(): aws.sdk.kotlin.services.iotfleetwise.model.S3Config = (this as DataDestinationConfig.S3Config).value
/**
* Casts this [DataDestinationConfig] as a [S3Config] and retrieves its [aws.sdk.kotlin.services.iotfleetwise.model.S3Config] value. Returns null if the [DataDestinationConfig] is not a [S3Config].
*/
public fun asS3ConfigOrNull(): aws.sdk.kotlin.services.iotfleetwise.model.S3Config? = (this as? DataDestinationConfig.S3Config)?.value
/**
* Casts this [DataDestinationConfig] as a [TimestreamConfig] and retrieves its [aws.sdk.kotlin.services.iotfleetwise.model.TimestreamConfig] value. Throws an exception if the [DataDestinationConfig] is not a
* [TimestreamConfig].
*/
public fun asTimestreamConfig(): aws.sdk.kotlin.services.iotfleetwise.model.TimestreamConfig = (this as DataDestinationConfig.TimestreamConfig).value
/**
* Casts this [DataDestinationConfig] as a [TimestreamConfig] and retrieves its [aws.sdk.kotlin.services.iotfleetwise.model.TimestreamConfig] value. Returns null if the [DataDestinationConfig] is not a [TimestreamConfig].
*/
public fun asTimestreamConfigOrNull(): aws.sdk.kotlin.services.iotfleetwise.model.TimestreamConfig? = (this as? DataDestinationConfig.TimestreamConfig)?.value
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy