software.amazon.jsii.Optional Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsii-runtime Show documentation
Show all versions of jsii-runtime Show documentation
Java client for jsii runtime
package software.amazon.jsii;
import java.lang.annotation.*;
/**
* Denotes an optional member from the TypeScript model for the API.
*
* Annotated methods have a default implementation that throws {@link UnsupportedOperationException} when invoked.
* In a similar way that they have to in TypeScript, implementors need to actively opt into supporting the
* functionality by providing a custom implementation for the member.
*/
@Documented
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.SOURCE)
public @interface Optional {}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy