
commonMain.aws.sdk.kotlin.services.pipes.model.UpdatePipeSourceSelfManagedKafkaParameters.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pipes.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The parameters for using a self-managed Apache Kafka stream as a source.
*/
public class UpdatePipeSourceSelfManagedKafkaParameters private constructor(builder: Builder) {
/**
* The maximum number of records to include in each batch.
*/
public val batchSize: kotlin.Int? = builder.batchSize
/**
* The credentials needed to access the resource.
*/
public val credentials: aws.sdk.kotlin.services.pipes.model.SelfManagedKafkaAccessConfigurationCredentials? = builder.credentials
/**
* The maximum length of a time to wait for events.
*/
public val maximumBatchingWindowInSeconds: kotlin.Int? = builder.maximumBatchingWindowInSeconds
/**
* The ARN of the Secrets Manager secret used for certification.
*/
public val serverRootCaCertificate: kotlin.String? = builder.serverRootCaCertificate
/**
* This structure specifies the VPC subnets and security groups for the stream, and whether a public IP address is to be used.
*/
public val vpc: aws.sdk.kotlin.services.pipes.model.SelfManagedKafkaAccessConfigurationVpc? = builder.vpc
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pipes.model.UpdatePipeSourceSelfManagedKafkaParameters = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdatePipeSourceSelfManagedKafkaParameters(")
append("batchSize=$batchSize,")
append("credentials=$credentials,")
append("maximumBatchingWindowInSeconds=$maximumBatchingWindowInSeconds,")
append("serverRootCaCertificate=$serverRootCaCertificate,")
append("vpc=$vpc")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = batchSize ?: 0
result = 31 * result + (credentials?.hashCode() ?: 0)
result = 31 * result + (maximumBatchingWindowInSeconds ?: 0)
result = 31 * result + (serverRootCaCertificate?.hashCode() ?: 0)
result = 31 * result + (vpc?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as UpdatePipeSourceSelfManagedKafkaParameters
if (batchSize != other.batchSize) return false
if (credentials != other.credentials) return false
if (maximumBatchingWindowInSeconds != other.maximumBatchingWindowInSeconds) return false
if (serverRootCaCertificate != other.serverRootCaCertificate) return false
if (vpc != other.vpc) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pipes.model.UpdatePipeSourceSelfManagedKafkaParameters = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The maximum number of records to include in each batch.
*/
public var batchSize: kotlin.Int? = null
/**
* The credentials needed to access the resource.
*/
public var credentials: aws.sdk.kotlin.services.pipes.model.SelfManagedKafkaAccessConfigurationCredentials? = null
/**
* The maximum length of a time to wait for events.
*/
public var maximumBatchingWindowInSeconds: kotlin.Int? = null
/**
* The ARN of the Secrets Manager secret used for certification.
*/
public var serverRootCaCertificate: kotlin.String? = null
/**
* This structure specifies the VPC subnets and security groups for the stream, and whether a public IP address is to be used.
*/
public var vpc: aws.sdk.kotlin.services.pipes.model.SelfManagedKafkaAccessConfigurationVpc? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pipes.model.UpdatePipeSourceSelfManagedKafkaParameters) : this() {
this.batchSize = x.batchSize
this.credentials = x.credentials
this.maximumBatchingWindowInSeconds = x.maximumBatchingWindowInSeconds
this.serverRootCaCertificate = x.serverRootCaCertificate
this.vpc = x.vpc
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pipes.model.UpdatePipeSourceSelfManagedKafkaParameters = UpdatePipeSourceSelfManagedKafkaParameters(this)
/**
* construct an [aws.sdk.kotlin.services.pipes.model.SelfManagedKafkaAccessConfigurationVpc] inside the given [block]
*/
public fun vpc(block: aws.sdk.kotlin.services.pipes.model.SelfManagedKafkaAccessConfigurationVpc.Builder.() -> kotlin.Unit) {
this.vpc = aws.sdk.kotlin.services.pipes.model.SelfManagedKafkaAccessConfigurationVpc.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy