commonMain.aws.sdk.kotlin.services.firehose.model.SplunkBufferingHints.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of firehose-jvm Show documentation
Show all versions of firehose-jvm Show documentation
The AWS SDK for Kotlin client for Firehose
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.firehose.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The buffering options. If no value is specified, the default values for Splunk are used.
*/
public class SplunkBufferingHints private constructor(builder: Builder) {
/**
* Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 60 (1 minute).
*/
public val intervalInSeconds: kotlin.Int? = builder.intervalInSeconds
/**
* Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5.
*/
public val sizeInMbs: kotlin.Int? = builder.sizeInMbs
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.firehose.model.SplunkBufferingHints = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SplunkBufferingHints(")
append("intervalInSeconds=$intervalInSeconds,")
append("sizeInMbs=$sizeInMbs")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = intervalInSeconds ?: 0
result = 31 * result + (sizeInMbs ?: 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 SplunkBufferingHints
if (intervalInSeconds != other.intervalInSeconds) return false
if (sizeInMbs != other.sizeInMbs) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.firehose.model.SplunkBufferingHints = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 60 (1 minute).
*/
public var intervalInSeconds: kotlin.Int? = null
/**
* Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5.
*/
public var sizeInMbs: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.firehose.model.SplunkBufferingHints) : this() {
this.intervalInSeconds = x.intervalInSeconds
this.sizeInMbs = x.sizeInMbs
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.firehose.model.SplunkBufferingHints = SplunkBufferingHints(this)
internal fun correctErrors(): Builder {
return this
}
}
}