Condition

sealed class Condition

A time-window condition that constrains when a support permit is valid.

Inheritors

Types

Link copied to clipboard
data class AllowAfter(val value: Instant) : Condition

The earliest time at which the permit becomes valid.

Link copied to clipboard
data class AllowBefore(val value: Instant) : Condition

The latest time at which the permit remains valid.

Link copied to clipboard

Functions

Link copied to clipboard

Casts this Condition as a AllowAfter and retrieves its aws.smithy.kotlin.runtime.time.Instant value. Throws an exception if the Condition is not a AllowAfter.

Link copied to clipboard

Casts this Condition as a AllowAfter and retrieves its aws.smithy.kotlin.runtime.time.Instant value. Returns null if the Condition is not a AllowAfter.

Link copied to clipboard

Casts this Condition as a AllowBefore and retrieves its aws.smithy.kotlin.runtime.time.Instant value. Throws an exception if the Condition is not a AllowBefore.

Link copied to clipboard

Casts this Condition as a AllowBefore and retrieves its aws.smithy.kotlin.runtime.time.Instant value. Returns null if the Condition is not a AllowBefore.