
commonMain.aws.sdk.kotlin.services.osis.model.CreatePipelineRequest.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 CreatePipelineRequest 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 OpenSearch Ingestion pipeline to create. Pipeline names are unique across the pipelines owned by an account within an Amazon Web Services Region.
*/
public val pipelineName: kotlin.String? = builder.pipelineName
/**
* List of tags to add to the pipeline upon creation.
*/
public val tags: List? = builder.tags
/**
* Container for the values required to configure VPC access for the pipeline. If you don't specify these values, OpenSearch Ingestion creates the pipeline with a public endpoint.
*/
public val vpcOptions: aws.sdk.kotlin.services.osis.model.VpcOptions? = builder.vpcOptions
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.osis.model.CreatePipelineRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreatePipelineRequest(")
append("bufferOptions=$bufferOptions,")
append("encryptionAtRestOptions=$encryptionAtRestOptions,")
append("logPublishingOptions=$logPublishingOptions,")
append("maxUnits=$maxUnits,")
append("minUnits=$minUnits,")
append("pipelineConfigurationBody=$pipelineConfigurationBody,")
append("pipelineName=$pipelineName,")
append("tags=$tags,")
append("vpcOptions=$vpcOptions")
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)
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (vpcOptions?.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 CreatePipelineRequest
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
if (tags != other.tags) return false
if (vpcOptions != other.vpcOptions) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.osis.model.CreatePipelineRequest = 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 OpenSearch Ingestion pipeline to create. Pipeline names are unique across the pipelines owned by an account within an Amazon Web Services Region.
*/
public var pipelineName: kotlin.String? = null
/**
* List of tags to add to the pipeline upon creation.
*/
public var tags: List? = null
/**
* Container for the values required to configure VPC access for the pipeline. If you don't specify these values, OpenSearch Ingestion creates the pipeline with a public endpoint.
*/
public var vpcOptions: aws.sdk.kotlin.services.osis.model.VpcOptions? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.osis.model.CreatePipelineRequest) : 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
this.tags = x.tags
this.vpcOptions = x.vpcOptions
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.osis.model.CreatePipelineRequest = CreatePipelineRequest(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)
}
/**
* construct an [aws.sdk.kotlin.services.osis.model.VpcOptions] inside the given [block]
*/
public fun vpcOptions(block: aws.sdk.kotlin.services.osis.model.VpcOptions.Builder.() -> kotlin.Unit) {
this.vpcOptions = aws.sdk.kotlin.services.osis.model.VpcOptions.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy