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

io.github.cdklabs.tweetqueue.TweetQueue Maven / Gradle / Ivy

There is a newer version: 2.0.659
Show newest version
package io.github.cdklabs.tweetqueue;

/**
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-10-01T00:28:03.269Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = io.github.cdklabs.tweetqueue.$Module.class, fqn = "cdk-tweet-queue.TweetQueue")
public class TweetQueue extends software.amazon.awscdk.services.sqs.Queue {

    protected TweetQueue(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected TweetQueue(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
        super(initializationMode);
    }

    /**
     * @param parent This parameter is required.
     * @param id This parameter is required.
     * @param props This parameter is required.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public TweetQueue(final @org.jetbrains.annotations.NotNull software.constructs.Construct parent, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull io.github.cdklabs.tweetqueue.TweetQueueProps props) {
        super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
        software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(parent, "parent is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") });
    }

    /**
     * A fluent builder for {@link io.github.cdklabs.tweetqueue.TweetQueue}.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public static final class Builder implements software.amazon.jsii.Builder {
        /**
         * @return a new instance of {@link Builder}.
         * @param parent This parameter is required.
         * @param id This parameter is required.
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public static Builder create(final software.constructs.Construct parent, final java.lang.String id) {
            return new Builder(parent, id);
        }

        private final software.constructs.Construct parent;
        private final java.lang.String id;
        private final io.github.cdklabs.tweetqueue.TweetQueueProps.Builder props;

        private Builder(final software.constructs.Construct parent, final java.lang.String id) {
            this.parent = parent;
            this.id = id;
            this.props = new io.github.cdklabs.tweetqueue.TweetQueueProps.Builder();
        }

        /**
         * The twitter query string to stream.
         * 

* @return {@code this} * @param query The twitter query string to stream. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder query(final java.lang.String query) { this.props.query(query); return this; } /** * The SecretsManager secret that contains Twitter authentication credentials from https://apps.twitter.com/ with the following attributes (exact names): - consumer_key - consumer_secret - access_token_key - access_token_secret. *

* @return {@code this} * @param secretArn The SecretsManager secret that contains Twitter authentication credentials from https://apps.twitter.com/ with the following attributes (exact names): - consumer_key - consumer_secret - access_token_key - access_token_secret. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder secretArn(final java.lang.String secretArn) { this.props.secretArn(secretArn); return this; } /** * Polling interval in minutes. *

* Set to 0 to disable polling. *

* Default: 1min *

* @return {@code this} * @param intervalMin Polling interval in minutes. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder intervalMin(final java.lang.Number intervalMin) { this.props.intervalMin(intervalMin); return this; } /** * Number of seconds for messages to wait in the queue for processing. *

* After this time, messages will be removed from the queue. *

* Default: 60 seconds *

* @return {@code this} * @param retentionPeriodSec Number of seconds for messages to wait in the queue for processing. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder retentionPeriodSec(final java.lang.Number retentionPeriodSec) { this.props.retentionPeriodSec(retentionPeriodSec); return this; } /** * Number of seconds for messages to be invisible while they are processed. *

* Based on the amount of time it would require to process a single message. *

* Default: 60 seconds *

* @return {@code this} * @param visibilityTimeoutSec Number of seconds for messages to be invisible while they are processed. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder visibilityTimeoutSec(final java.lang.Number visibilityTimeoutSec) { this.props.visibilityTimeoutSec(visibilityTimeoutSec); return this; } /** * @return a newly built instance of {@link io.github.cdklabs.tweetqueue.TweetQueue}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public io.github.cdklabs.tweetqueue.TweetQueue build() { return new io.github.cdklabs.tweetqueue.TweetQueue( this.parent, this.id, this.props.build() ); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy