Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Struct Optional

sealed struct Optional
Attribute used to annotate a method which may return an option of a value. Used in cases where it is not possible to establish a sentinel and we need to distinguish between any set value and value not being set.
Last modified on October 29, 2026