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

commonMain.aws.sdk.kotlin.services.deadline.model.BudgetSchedule.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 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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy