AllPorts

data class AllPorts(val value: Unit) : PortSpecification

Indicates that all ports are accessible.

Constructors

Link copied to clipboard
constructor(value: Unit)

Properties

Link copied to clipboard
val value: Unit

Inherited functions

Link copied to clipboard

Casts this PortSpecification as a AllPorts and retrieves its aws.sdk.kotlin.services.lambdamicrovms.model.Unit value. Throws an exception if the PortSpecification is not a AllPorts.

Link copied to clipboard

Casts this PortSpecification as a AllPorts and retrieves its aws.sdk.kotlin.services.lambdamicrovms.model.Unit value. Returns null if the PortSpecification is not a AllPorts.

Link copied to clipboard
fun asPort(): Int

Casts this PortSpecification as a Port and retrieves its kotlin.Int value. Throws an exception if the PortSpecification is not a Port.

Link copied to clipboard

Casts this PortSpecification as a Port and retrieves its kotlin.Int value. Returns null if the PortSpecification is not a Port.

Link copied to clipboard

Casts this PortSpecification as a Range and retrieves its aws.sdk.kotlin.services.lambdamicrovms.model.PortRange value. Throws an exception if the PortSpecification is not a Range.

Link copied to clipboard

Casts this PortSpecification as a Range and retrieves its aws.sdk.kotlin.services.lambdamicrovms.model.PortRange value. Returns null if the PortSpecification is not a Range.