commonMain.aws.sdk.kotlin.services.deadline.model.TaskParameterValue.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deadline-jvm Show documentation
Show all versions of deadline-jvm Show documentation
The AWS SDK for Kotlin client for deadline
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.deadline.model
/**
* The data types for the task parameters.
*/
public sealed class TaskParameterValue {
/**
* 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.TaskParameterValue() {
override fun toString(): kotlin.String = "TaskParameterValue(*** Sensitive Data Redacted ***)"
}
/**
* A signed integer represented as a string.
*/
public data class Int(val value: kotlin.String) : aws.sdk.kotlin.services.deadline.model.TaskParameterValue() {
override fun toString(): kotlin.String = "TaskParameterValue(*** Sensitive Data Redacted ***)"
}
/**
* A file system path represented as a string.
*/
public data class Path(val value: kotlin.String) : aws.sdk.kotlin.services.deadline.model.TaskParameterValue() {
override fun toString(): kotlin.String = "TaskParameterValue(*** Sensitive Data Redacted ***)"
}
/**
* A UTF-8 string.
*/
public data class String(val value: kotlin.String) : aws.sdk.kotlin.services.deadline.model.TaskParameterValue() {
override fun toString(): kotlin.String = "TaskParameterValue(*** Sensitive Data Redacted ***)"
}
public object SdkUnknown : aws.sdk.kotlin.services.deadline.model.TaskParameterValue() {
override fun toString(): kotlin.String = "TaskParameterValue(*** Sensitive Data Redacted ***)"
}
/**
* Casts this [TaskParameterValue] as a [Float] and retrieves its [kotlin.String] value. Throws an exception if the [TaskParameterValue] is not a
* [Float].
*/
public fun asFloat(): kotlin.String = (this as TaskParameterValue.Float).value
/**
* Casts this [TaskParameterValue] as a [Float] and retrieves its [kotlin.String] value. Returns null if the [TaskParameterValue] is not a [Float].
*/
public fun asFloatOrNull(): kotlin.String? = (this as? TaskParameterValue.Float)?.value
/**
* Casts this [TaskParameterValue] as a [Int] and retrieves its [kotlin.String] value. Throws an exception if the [TaskParameterValue] is not a
* [Int].
*/
public fun asInt(): kotlin.String = (this as TaskParameterValue.Int).value
/**
* Casts this [TaskParameterValue] as a [Int] and retrieves its [kotlin.String] value. Returns null if the [TaskParameterValue] is not a [Int].
*/
public fun asIntOrNull(): kotlin.String? = (this as? TaskParameterValue.Int)?.value
/**
* Casts this [TaskParameterValue] as a [Path] and retrieves its [kotlin.String] value. Throws an exception if the [TaskParameterValue] is not a
* [Path].
*/
public fun asPath(): kotlin.String = (this as TaskParameterValue.Path).value
/**
* Casts this [TaskParameterValue] as a [Path] and retrieves its [kotlin.String] value. Returns null if the [TaskParameterValue] is not a [Path].
*/
public fun asPathOrNull(): kotlin.String? = (this as? TaskParameterValue.Path)?.value
/**
* Casts this [TaskParameterValue] as a [String] and retrieves its [kotlin.String] value. Throws an exception if the [TaskParameterValue] is not a
* [String].
*/
public fun asString(): kotlin.String = (this as TaskParameterValue.String).value
/**
* Casts this [TaskParameterValue] as a [String] and retrieves its [kotlin.String] value. Returns null if the [TaskParameterValue] is not a [String].
*/
public fun asStringOrNull(): kotlin.String? = (this as? TaskParameterValue.String)?.value
}