commonMain.aws.sdk.kotlin.services.applicationdiscoveryservice.model.ExportPreferences.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of applicationdiscoveryservice-jvm Show documentation
Show all versions of applicationdiscoveryservice-jvm Show documentation
The AWS SDK for Kotlin client for Application Discovery Service
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.applicationdiscoveryservice.model
/**
* Indicates the type of data that is being exported. Only one `ExportPreferences` can be enabled for a [StartExportTask](https://docs.aws.amazon.com/application-discovery/latest/APIReference/API_StartExportTask.html) action.
*/
public sealed class ExportPreferences {
/**
* If enabled, exported data includes EC2 instance type matches for on-premises servers discovered through Amazon Web Services Application Discovery Service.
*/
public data class Ec2RecommendationsPreferences(val value: aws.sdk.kotlin.services.applicationdiscoveryservice.model.Ec2RecommendationsExportPreferences) : aws.sdk.kotlin.services.applicationdiscoveryservice.model.ExportPreferences() {
}
public object SdkUnknown : aws.sdk.kotlin.services.applicationdiscoveryservice.model.ExportPreferences() {
}
/**
* Casts this [ExportPreferences] as a [Ec2RecommendationsPreferences] and retrieves its [aws.sdk.kotlin.services.applicationdiscoveryservice.model.Ec2RecommendationsExportPreferences] value. Throws an exception if the [ExportPreferences] is not a
* [Ec2RecommendationsPreferences].
*/
public fun asEc2RecommendationsPreferences(): aws.sdk.kotlin.services.applicationdiscoveryservice.model.Ec2RecommendationsExportPreferences = (this as ExportPreferences.Ec2RecommendationsPreferences).value
/**
* Casts this [ExportPreferences] as a [Ec2RecommendationsPreferences] and retrieves its [aws.sdk.kotlin.services.applicationdiscoveryservice.model.Ec2RecommendationsExportPreferences] value. Returns null if the [ExportPreferences] is not a [Ec2RecommendationsPreferences].
*/
public fun asEc2RecommendationsPreferencesOrNull(): aws.sdk.kotlin.services.applicationdiscoveryservice.model.Ec2RecommendationsExportPreferences? = (this as? ExportPreferences.Ec2RecommendationsPreferences)?.value
}