ItemValue

sealed class ItemValue

Describes a related item.

Inheritors

Types

Link copied to clipboard
data class Arn(val value: String) : ItemValue

The Amazon Resource Name (ARN) of the related item, if the related item is an Amazon resource.

Link copied to clipboard
data class MetricDefinition(val value: String) : ItemValue

The metric definition, if the related item is a metric in Amazon CloudWatch.

Link copied to clipboard

Details about an incident that is associated with a PagerDuty incident.

Link copied to clipboard
Link copied to clipboard
data class Url(val value: String) : ItemValue

The URL, if the related item is a non-Amazon Web Services resource.

Functions

Link copied to clipboard
fun asArn(): String

Casts this ItemValue as a Arn and retrieves its kotlin.String value. Throws an exception if the ItemValue is not a Arn.

Link copied to clipboard

Casts this ItemValue as a Arn and retrieves its kotlin.String value. Returns null if the ItemValue is not a Arn.

Link copied to clipboard

Casts this ItemValue as a MetricDefinition and retrieves its kotlin.String value. Throws an exception if the ItemValue is not a MetricDefinition.

Link copied to clipboard

Casts this ItemValue as a MetricDefinition and retrieves its kotlin.String value. Returns null if the ItemValue is not a MetricDefinition.

Link copied to clipboard
fun asUrl(): String

Casts this ItemValue as a Url and retrieves its kotlin.String value. Throws an exception if the ItemValue is not a Url.

Link copied to clipboard

Casts this ItemValue as a Url and retrieves its kotlin.String value. Returns null if the ItemValue is not a Url.