commonMain.aws.sdk.kotlin.services.deadline.model.BudgetSchedule.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 start and end time of the budget.
*/
public sealed class BudgetSchedule {
/**
* The fixed start and end time of the budget's schedule.
*/
public data class Fixed(val value: aws.sdk.kotlin.services.deadline.model.FixedBudgetSchedule) : aws.sdk.kotlin.services.deadline.model.BudgetSchedule() {
}
public object SdkUnknown : aws.sdk.kotlin.services.deadline.model.BudgetSchedule() {
}
/**
* Casts this [BudgetSchedule] as a [Fixed] and retrieves its [aws.sdk.kotlin.services.deadline.model.FixedBudgetSchedule] value. Throws an exception if the [BudgetSchedule] is not a
* [Fixed].
*/
public fun asFixed(): aws.sdk.kotlin.services.deadline.model.FixedBudgetSchedule = (this as BudgetSchedule.Fixed).value
/**
* Casts this [BudgetSchedule] as a [Fixed] and retrieves its [aws.sdk.kotlin.services.deadline.model.FixedBudgetSchedule] value. Returns null if the [BudgetSchedule] is not a [Fixed].
*/
public fun asFixedOrNull(): aws.sdk.kotlin.services.deadline.model.FixedBudgetSchedule? = (this as? BudgetSchedule.Fixed)?.value
}