All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.applicationdiscoveryservice.model.ExportPreferences.kt Maven / Gradle / Ivy

There is a newer version: 1.3.35
Show newest version
// 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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy