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

commonMain.aws.sdk.kotlin.services.deadline.model.JobParameter.kt Maven / Gradle / Ivy

There is a newer version: 1.3.34
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.deadline.model



/**
 * The details of job parameters.
 */
public sealed class JobParameter {
    /**
     * A double precision IEEE-754 floating point number represented as a string.
     */
    public data class Float(val value: kotlin.String) : aws.sdk.kotlin.services.deadline.model.JobParameter() {
    }

    /**
     * A signed integer represented as a string.
     */
    public data class Int(val value: kotlin.String) : aws.sdk.kotlin.services.deadline.model.JobParameter() {
    }

    /**
     * A file system path represented as a string.
     */
    public data class Path(val value: kotlin.String) : aws.sdk.kotlin.services.deadline.model.JobParameter() {
    }

    /**
     * A UTF-8 string.
     */
    public data class String(val value: kotlin.String) : aws.sdk.kotlin.services.deadline.model.JobParameter() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.deadline.model.JobParameter() {
    }

    /**
     * Casts this [JobParameter] as a [Float] and retrieves its [kotlin.String] value. Throws an exception if the [JobParameter] is not a
     * [Float].
     */
    public fun asFloat(): kotlin.String = (this as JobParameter.Float).value

    /**
     * Casts this [JobParameter] as a [Float] and retrieves its [kotlin.String] value. Returns null if the [JobParameter] is not a [Float].
     */
    public fun asFloatOrNull(): kotlin.String? = (this as? JobParameter.Float)?.value

    /**
     * Casts this [JobParameter] as a [Int] and retrieves its [kotlin.String] value. Throws an exception if the [JobParameter] is not a
     * [Int].
     */
    public fun asInt(): kotlin.String = (this as JobParameter.Int).value

    /**
     * Casts this [JobParameter] as a [Int] and retrieves its [kotlin.String] value. Returns null if the [JobParameter] is not a [Int].
     */
    public fun asIntOrNull(): kotlin.String? = (this as? JobParameter.Int)?.value

    /**
     * Casts this [JobParameter] as a [Path] and retrieves its [kotlin.String] value. Throws an exception if the [JobParameter] is not a
     * [Path].
     */
    public fun asPath(): kotlin.String = (this as JobParameter.Path).value

    /**
     * Casts this [JobParameter] as a [Path] and retrieves its [kotlin.String] value. Returns null if the [JobParameter] is not a [Path].
     */
    public fun asPathOrNull(): kotlin.String? = (this as? JobParameter.Path)?.value

    /**
     * Casts this [JobParameter] as a [String] and retrieves its [kotlin.String] value. Throws an exception if the [JobParameter] is not a
     * [String].
     */
    public fun asString(): kotlin.String = (this as JobParameter.String).value

    /**
     * Casts this [JobParameter] as a [String] and retrieves its [kotlin.String] value. Returns null if the [JobParameter] is not a [String].
     */
    public fun asStringOrNull(): kotlin.String? = (this as? JobParameter.String)?.value
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy