com.pulumi.aws.pipes.outputs.PipeSourceParametersSelfManagedKafkaParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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.PipeSourceParametersSelfManagedKafkaParametersCredentials;
import com.pulumi.aws.pipes.outputs.PipeSourceParametersSelfManagedKafkaParametersVpc;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class PipeSourceParametersSelfManagedKafkaParameters {
/**
* @return An array of server URLs. Maximum number of 2 items, each of maximum length 300.
*
*/
private @Nullable List additionalBootstrapServers;
/**
* @return The maximum number of records to include in each batch. Maximum value of 10000.
*
*/
private @Nullable Integer batchSize;
/**
* @return The name of the destination queue to consume. Maximum value of 200.
*
*/
private @Nullable String consumerGroupId;
/**
* @return The credentials needed to access the resource. Detailed below.
*
*/
private @Nullable PipeSourceParametersSelfManagedKafkaParametersCredentials credentials;
/**
* @return The maximum length of a time to wait for events. Maximum value of 300.
*
*/
private @Nullable Integer maximumBatchingWindowInSeconds;
/**
* @return The ARN of the Secrets Manager secret used for certification.
*
*/
private @Nullable String serverRootCaCertificate;
/**
* @return The position in a stream from which to start reading. Valid values: TRIM_HORIZON, LATEST.
*
*/
private @Nullable String startingPosition;
/**
* @return The name of the topic that the pipe will read from. Maximum length of 249.
*
*/
private String topicName;
/**
* @return This structure specifies the VPC subnets and security groups for the stream, and whether a public IP address is to be used. Detailed below.
*
*/
private @Nullable PipeSourceParametersSelfManagedKafkaParametersVpc vpc;
private PipeSourceParametersSelfManagedKafkaParameters() {}
/**
* @return An array of server URLs. Maximum number of 2 items, each of maximum length 300.
*
*/
public List additionalBootstrapServers() {
return this.additionalBootstrapServers == null ? List.of() : this.additionalBootstrapServers;
}
/**
* @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 name of the destination queue to consume. Maximum value of 200.
*
*/
public Optional consumerGroupId() {
return Optional.ofNullable(this.consumerGroupId);
}
/**
* @return The credentials needed to access the resource. Detailed below.
*
*/
public Optional credentials() {
return Optional.ofNullable(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 ARN of the Secrets Manager secret used for certification.
*
*/
public Optional serverRootCaCertificate() {
return Optional.ofNullable(this.serverRootCaCertificate);
}
/**
* @return The position in a stream from which to start reading. Valid values: TRIM_HORIZON, LATEST.
*
*/
public Optional startingPosition() {
return Optional.ofNullable(this.startingPosition);
}
/**
* @return The name of the topic that the pipe will read from. Maximum length of 249.
*
*/
public String topicName() {
return this.topicName;
}
/**
* @return This structure specifies the VPC subnets and security groups for the stream, and whether a public IP address is to be used. Detailed below.
*
*/
public Optional vpc() {
return Optional.ofNullable(this.vpc);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PipeSourceParametersSelfManagedKafkaParameters defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List additionalBootstrapServers;
private @Nullable Integer batchSize;
private @Nullable String consumerGroupId;
private @Nullable PipeSourceParametersSelfManagedKafkaParametersCredentials credentials;
private @Nullable Integer maximumBatchingWindowInSeconds;
private @Nullable String serverRootCaCertificate;
private @Nullable String startingPosition;
private String topicName;
private @Nullable PipeSourceParametersSelfManagedKafkaParametersVpc vpc;
public Builder() {}
public Builder(PipeSourceParametersSelfManagedKafkaParameters defaults) {
Objects.requireNonNull(defaults);
this.additionalBootstrapServers = defaults.additionalBootstrapServers;
this.batchSize = defaults.batchSize;
this.consumerGroupId = defaults.consumerGroupId;
this.credentials = defaults.credentials;
this.maximumBatchingWindowInSeconds = defaults.maximumBatchingWindowInSeconds;
this.serverRootCaCertificate = defaults.serverRootCaCertificate;
this.startingPosition = defaults.startingPosition;
this.topicName = defaults.topicName;
this.vpc = defaults.vpc;
}
@CustomType.Setter
public Builder additionalBootstrapServers(@Nullable List additionalBootstrapServers) {
this.additionalBootstrapServers = additionalBootstrapServers;
return this;
}
public Builder additionalBootstrapServers(String... additionalBootstrapServers) {
return additionalBootstrapServers(List.of(additionalBootstrapServers));
}
@CustomType.Setter
public Builder batchSize(@Nullable Integer batchSize) {
this.batchSize = batchSize;
return this;
}
@CustomType.Setter
public Builder consumerGroupId(@Nullable String consumerGroupId) {
this.consumerGroupId = consumerGroupId;
return this;
}
@CustomType.Setter
public Builder credentials(@Nullable PipeSourceParametersSelfManagedKafkaParametersCredentials credentials) {
this.credentials = credentials;
return this;
}
@CustomType.Setter
public Builder maximumBatchingWindowInSeconds(@Nullable Integer maximumBatchingWindowInSeconds) {
this.maximumBatchingWindowInSeconds = maximumBatchingWindowInSeconds;
return this;
}
@CustomType.Setter
public Builder serverRootCaCertificate(@Nullable String serverRootCaCertificate) {
this.serverRootCaCertificate = serverRootCaCertificate;
return this;
}
@CustomType.Setter
public Builder startingPosition(@Nullable String startingPosition) {
this.startingPosition = startingPosition;
return this;
}
@CustomType.Setter
public Builder topicName(String topicName) {
if (topicName == null) {
throw new MissingRequiredPropertyException("PipeSourceParametersSelfManagedKafkaParameters", "topicName");
}
this.topicName = topicName;
return this;
}
@CustomType.Setter
public Builder vpc(@Nullable PipeSourceParametersSelfManagedKafkaParametersVpc vpc) {
this.vpc = vpc;
return this;
}
public PipeSourceParametersSelfManagedKafkaParameters build() {
final var _resultValue = new PipeSourceParametersSelfManagedKafkaParameters();
_resultValue.additionalBootstrapServers = additionalBootstrapServers;
_resultValue.batchSize = batchSize;
_resultValue.consumerGroupId = consumerGroupId;
_resultValue.credentials = credentials;
_resultValue.maximumBatchingWindowInSeconds = maximumBatchingWindowInSeconds;
_resultValue.serverRootCaCertificate = serverRootCaCertificate;
_resultValue.startingPosition = startingPosition;
_resultValue.topicName = topicName;
_resultValue.vpc = vpc;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy