
commonMain.aws.sdk.kotlin.services.osis.model.UpdatePipelineRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.osis.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdatePipelineRequest private constructor(builder: Builder) {
/**
* Key-value pairs to configure persistent buffering for the pipeline.
*/
public val bufferOptions: aws.sdk.kotlin.services.osis.model.BufferOptions? = builder.bufferOptions
/**
* Key-value pairs to configure encryption for data that is written to a persistent buffer.
*/
public val encryptionAtRestOptions: aws.sdk.kotlin.services.osis.model.EncryptionAtRestOptions? = builder.encryptionAtRestOptions
/**
* Key-value pairs to configure log publishing.
*/
public val logPublishingOptions: aws.sdk.kotlin.services.osis.model.LogPublishingOptions? = builder.logPublishingOptions
/**
* The maximum pipeline capacity, in Ingestion Compute Units (ICUs)
*/
public val maxUnits: kotlin.Int? = builder.maxUnits
/**
* The minimum pipeline capacity, in Ingestion Compute Units (ICUs).
*/
public val minUnits: kotlin.Int? = builder.minUnits
/**
* The pipeline configuration in YAML format. The command accepts the pipeline configuration as a string or within a .yaml file. If you provide the configuration as a string, each new line must be escaped with `\n`.
*/
public val pipelineConfigurationBody: kotlin.String? = builder.pipelineConfigurationBody
/**
* The name of the pipeline to update.
*/
public val pipelineName: kotlin.String? = builder.pipelineName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.osis.model.UpdatePipelineRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdatePipelineRequest(")
append("bufferOptions=$bufferOptions,")
append("encryptionAtRestOptions=$encryptionAtRestOptions,")
append("logPublishingOptions=$logPublishingOptions,")
append("maxUnits=$maxUnits,")
append("minUnits=$minUnits,")
append("pipelineConfigurationBody=$pipelineConfigurationBody,")
append("pipelineName=$pipelineName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = bufferOptions?.hashCode() ?: 0
result = 31 * result + (encryptionAtRestOptions?.hashCode() ?: 0)
result = 31 * result + (logPublishingOptions?.hashCode() ?: 0)
result = 31 * result + (maxUnits ?: 0)
result = 31 * result + (minUnits ?: 0)
result = 31 * result + (pipelineConfigurationBody?.hashCode() ?: 0)
result = 31 * result + (pipelineName?.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 UpdatePipelineRequest
if (bufferOptions != other.bufferOptions) return false
if (encryptionAtRestOptions != other.encryptionAtRestOptions) return false
if (logPublishingOptions != other.logPublishingOptions) return false
if (maxUnits != other.maxUnits) return false
if (minUnits != other.minUnits) return false
if (pipelineConfigurationBody != other.pipelineConfigurationBody) return false
if (pipelineName != other.pipelineName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.osis.model.UpdatePipelineRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Key-value pairs to configure persistent buffering for the pipeline.
*/
public var bufferOptions: aws.sdk.kotlin.services.osis.model.BufferOptions? = null
/**
* Key-value pairs to configure encryption for data that is written to a persistent buffer.
*/
public var encryptionAtRestOptions: aws.sdk.kotlin.services.osis.model.EncryptionAtRestOptions? = null
/**
* Key-value pairs to configure log publishing.
*/
public var logPublishingOptions: aws.sdk.kotlin.services.osis.model.LogPublishingOptions? = null
/**
* The maximum pipeline capacity, in Ingestion Compute Units (ICUs)
*/
public var maxUnits: kotlin.Int? = null
/**
* The minimum pipeline capacity, in Ingestion Compute Units (ICUs).
*/
public var minUnits: kotlin.Int? = null
/**
* The pipeline configuration in YAML format. The command accepts the pipeline configuration as a string or within a .yaml file. If you provide the configuration as a string, each new line must be escaped with `\n`.
*/
public var pipelineConfigurationBody: kotlin.String? = null
/**
* The name of the pipeline to update.
*/
public var pipelineName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.osis.model.UpdatePipelineRequest) : this() {
this.bufferOptions = x.bufferOptions
this.encryptionAtRestOptions = x.encryptionAtRestOptions
this.logPublishingOptions = x.logPublishingOptions
this.maxUnits = x.maxUnits
this.minUnits = x.minUnits
this.pipelineConfigurationBody = x.pipelineConfigurationBody
this.pipelineName = x.pipelineName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.osis.model.UpdatePipelineRequest = UpdatePipelineRequest(this)
/**
* construct an [aws.sdk.kotlin.services.osis.model.BufferOptions] inside the given [block]
*/
public fun bufferOptions(block: aws.sdk.kotlin.services.osis.model.BufferOptions.Builder.() -> kotlin.Unit) {
this.bufferOptions = aws.sdk.kotlin.services.osis.model.BufferOptions.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.osis.model.EncryptionAtRestOptions] inside the given [block]
*/
public fun encryptionAtRestOptions(block: aws.sdk.kotlin.services.osis.model.EncryptionAtRestOptions.Builder.() -> kotlin.Unit) {
this.encryptionAtRestOptions = aws.sdk.kotlin.services.osis.model.EncryptionAtRestOptions.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.osis.model.LogPublishingOptions] inside the given [block]
*/
public fun logPublishingOptions(block: aws.sdk.kotlin.services.osis.model.LogPublishingOptions.Builder.() -> kotlin.Unit) {
this.logPublishingOptions = aws.sdk.kotlin.services.osis.model.LogPublishingOptions.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy