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

com.pulumi.aws.pipes.outputs.PipeSourceParametersActivemqBrokerParameters Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.pipes.outputs;

import com.pulumi.aws.pipes.outputs.PipeSourceParametersActivemqBrokerParametersCredentials;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class PipeSourceParametersActivemqBrokerParameters {
    /**
     * @return The maximum number of records to include in each batch. Maximum value of 10000.
     * 
     */
    private @Nullable Integer batchSize;
    /**
     * @return The credentials needed to access the resource. Detailed below.
     * 
     */
    private PipeSourceParametersActivemqBrokerParametersCredentials credentials;
    /**
     * @return The maximum length of a time to wait for events. Maximum value of 300.
     * 
     */
    private @Nullable Integer maximumBatchingWindowInSeconds;
    /**
     * @return The name of the destination queue to consume. Maximum length of 1000.
     * 
     */
    private String queueName;

    private PipeSourceParametersActivemqBrokerParameters() {}
    /**
     * @return The maximum number of records to include in each batch. Maximum value of 10000.
     * 
     */
    public Optional batchSize() {
        return Optional.ofNullable(this.batchSize);
    }
    /**
     * @return The credentials needed to access the resource. Detailed below.
     * 
     */
    public PipeSourceParametersActivemqBrokerParametersCredentials credentials() {
        return this.credentials;
    }
    /**
     * @return The maximum length of a time to wait for events. Maximum value of 300.
     * 
     */
    public Optional maximumBatchingWindowInSeconds() {
        return Optional.ofNullable(this.maximumBatchingWindowInSeconds);
    }
    /**
     * @return The name of the destination queue to consume. Maximum length of 1000.
     * 
     */
    public String queueName() {
        return this.queueName;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(PipeSourceParametersActivemqBrokerParameters defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer batchSize;
        private PipeSourceParametersActivemqBrokerParametersCredentials credentials;
        private @Nullable Integer maximumBatchingWindowInSeconds;
        private String queueName;
        public Builder() {}
        public Builder(PipeSourceParametersActivemqBrokerParameters defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.batchSize = defaults.batchSize;
    	      this.credentials = defaults.credentials;
    	      this.maximumBatchingWindowInSeconds = defaults.maximumBatchingWindowInSeconds;
    	      this.queueName = defaults.queueName;
        }

        @CustomType.Setter
        public Builder batchSize(@Nullable Integer batchSize) {

            this.batchSize = batchSize;
            return this;
        }
        @CustomType.Setter
        public Builder credentials(PipeSourceParametersActivemqBrokerParametersCredentials credentials) {
            if (credentials == null) {
              throw new MissingRequiredPropertyException("PipeSourceParametersActivemqBrokerParameters", "credentials");
            }
            this.credentials = credentials;
            return this;
        }
        @CustomType.Setter
        public Builder maximumBatchingWindowInSeconds(@Nullable Integer maximumBatchingWindowInSeconds) {

            this.maximumBatchingWindowInSeconds = maximumBatchingWindowInSeconds;
            return this;
        }
        @CustomType.Setter
        public Builder queueName(String queueName) {
            if (queueName == null) {
              throw new MissingRequiredPropertyException("PipeSourceParametersActivemqBrokerParameters", "queueName");
            }
            this.queueName = queueName;
            return this;
        }
        public PipeSourceParametersActivemqBrokerParameters build() {
            final var _resultValue = new PipeSourceParametersActivemqBrokerParameters();
            _resultValue.batchSize = batchSize;
            _resultValue.credentials = credentials;
            _resultValue.maximumBatchingWindowInSeconds = maximumBatchingWindowInSeconds;
            _resultValue.queueName = queueName;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy