Condition

sealed class Condition

A conditional statement with which to compare a value, after a timestamp, before a timestamp, or equal to a string or integer. If multiple conditions are specified, the conditionals become an ANDed statement. If multiple values are specified for a conditional, the values are ORd.

Inheritors

Types

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

After the specified timestamp.

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

Before the specified timestamp

Link copied to clipboard
data class Equals(val value: AttributeValueList) : Condition

The value is equal to the provided string or integer.

Link copied to clipboard

Functions

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Casts this Condition as a Equals and retrieves its aws.sdk.kotlin.services.ssmincidents.model.AttributeValueList value. Throws an exception if the Condition is not a Equals.

Link copied to clipboard

Casts this Condition as a Equals and retrieves its aws.sdk.kotlin.services.ssmincidents.model.AttributeValueList value. Returns null if the Condition is not a Equals.