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

commonMain.aws.sdk.kotlin.services.firehose.model.ProcessorParameter.kt Maven / Gradle / Ivy

There is a newer version: 1.3.78
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.firehose.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Describes the processor parameter.
 */
public class ProcessorParameter private constructor(builder: Builder) {
    /**
     * The name of the parameter. Currently the following default values are supported: 3 for `NumberOfRetries` and 60 for the `BufferIntervalInSeconds`. The `BufferSizeInMBs` ranges between 0.2 MB and up to 3MB. The default buffering hint is 1MB for all destinations, except Splunk. For Splunk, the default buffering hint is 256 KB.
     */
    public val parameterName: aws.sdk.kotlin.services.firehose.model.ProcessorParameterName = requireNotNull(builder.parameterName) { "A non-null value must be provided for parameterName" }
    /**
     * The parameter value.
     */
    public val parameterValue: kotlin.String = requireNotNull(builder.parameterValue) { "A non-null value must be provided for parameterValue" }

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.firehose.model.ProcessorParameter = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("ProcessorParameter(")
        append("parameterName=$parameterName,")
        append("parameterValue=$parameterValue")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = parameterName.hashCode()
        result = 31 * result + (parameterValue.hashCode())
        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 ProcessorParameter

        if (parameterName != other.parameterName) return false
        if (parameterValue != other.parameterValue) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.firehose.model.ProcessorParameter = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The name of the parameter. Currently the following default values are supported: 3 for `NumberOfRetries` and 60 for the `BufferIntervalInSeconds`. The `BufferSizeInMBs` ranges between 0.2 MB and up to 3MB. The default buffering hint is 1MB for all destinations, except Splunk. For Splunk, the default buffering hint is 256 KB.
         */
        public var parameterName: aws.sdk.kotlin.services.firehose.model.ProcessorParameterName? = null
        /**
         * The parameter value.
         */
        public var parameterValue: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.firehose.model.ProcessorParameter) : this() {
            this.parameterName = x.parameterName
            this.parameterValue = x.parameterValue
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.firehose.model.ProcessorParameter = ProcessorParameter(this)

        internal fun correctErrors(): Builder {
            if (parameterName == null) parameterName = ProcessorParameterName.SdkUnknown("no value provided")
            if (parameterValue == null) parameterValue = ""
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy