io.github.cdklabs.cdkecsserviceextensions.ISubscribable Maven / Gradle / Ivy
Show all versions of cdk-ecs-service-extensions Show documentation
package io.github.cdklabs.cdkecsserviceextensions;
/**
* (experimental) An interface that will be implemented by all the resources that can be subscribed to.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-26T00:28:54.211Z")
@software.amazon.jsii.Jsii(module = io.github.cdklabs.cdkecsserviceextensions.$Module.class, fqn = "@aws-cdk-containers/ecs-service-extensions.ISubscribable")
@software.amazon.jsii.Jsii.Proxy(ISubscribable.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface ISubscribable extends software.amazon.jsii.JsiiSerializable {
/**
* (experimental) The SubscriptionQueue
object for the ISubscribable
object.
*
* Default: none
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable io.github.cdklabs.cdkecsserviceextensions.SubscriptionQueue getSubscriptionQueue() {
return null;
}
/**
* (experimental) All classes implementing this interface must also implement the subscribe()
method.
*
* @param extension This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull software.amazon.awscdk.services.sqs.IQueue subscribe(final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdkecsserviceextensions.QueueExtension extension);
/**
* A proxy class which represents a concrete javascript instance of this type.
*/
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements io.github.cdklabs.cdkecsserviceextensions.ISubscribable.Jsii$Default {
protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
/**
* (experimental) The SubscriptionQueue
object for the ISubscribable
object.
*
* Default: none
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public final @org.jetbrains.annotations.Nullable io.github.cdklabs.cdkecsserviceextensions.SubscriptionQueue getSubscriptionQueue() {
return software.amazon.jsii.Kernel.get(this, "subscriptionQueue", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkecsserviceextensions.SubscriptionQueue.class));
}
/**
* (experimental) All classes implementing this interface must also implement the subscribe()
method.
*
* @param extension This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.sqs.IQueue subscribe(final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdkecsserviceextensions.QueueExtension extension) {
return software.amazon.jsii.Kernel.call(this, "subscribe", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.sqs.IQueue.class), new Object[] { java.util.Objects.requireNonNull(extension, "extension is required") });
}
}
/**
* Internal default implementation for {@link ISubscribable}.
*/
@software.amazon.jsii.Internal
interface Jsii$Default extends ISubscribable {
/**
* (experimental) The SubscriptionQueue
object for the ISubscribable
object.
*
* Default: none
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable io.github.cdklabs.cdkecsserviceextensions.SubscriptionQueue getSubscriptionQueue() {
return software.amazon.jsii.Kernel.get(this, "subscriptionQueue", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdkecsserviceextensions.SubscriptionQueue.class));
}
/**
* (experimental) All classes implementing this interface must also implement the subscribe()
method.
*
* @param extension This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
default @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.sqs.IQueue subscribe(final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdkecsserviceextensions.QueueExtension extension) {
return software.amazon.jsii.Kernel.call(this, "subscribe", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.sqs.IQueue.class), new Object[] { java.util.Objects.requireNonNull(extension, "extension is required") });
}
}
}