All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.jsii.Optional Maven / Gradle / Ivy

There is a newer version: 1.105.0
Show newest version
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