
commonMain.aws.sdk.kotlin.services.pipes.model.UpdatePipeRequest.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
public class UpdatePipeRequest private constructor(builder: Builder) {
/**
* A description of the pipe.
*/
public val description: kotlin.String? = builder.description
/**
* The state the pipe should be in.
*/
public val desiredState: aws.sdk.kotlin.services.pipes.model.RequestedPipeState? = builder.desiredState
/**
* The ARN of the enrichment resource.
*/
public val enrichment: kotlin.String? = builder.enrichment
/**
* The parameters required to set up enrichment on your pipe.
*/
public val enrichmentParameters: aws.sdk.kotlin.services.pipes.model.PipeEnrichmentParameters? = builder.enrichmentParameters
/**
* The logging configuration settings for the pipe.
*/
public val logConfiguration: aws.sdk.kotlin.services.pipes.model.PipeLogConfigurationParameters? = builder.logConfiguration
/**
* The name of the pipe.
*/
public val name: kotlin.String? = builder.name
/**
* The ARN of the role that allows the pipe to send data to the target.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The parameters required to set up a source for your pipe.
*/
public val sourceParameters: aws.sdk.kotlin.services.pipes.model.UpdatePipeSourceParameters? = builder.sourceParameters
/**
* The ARN of the target resource.
*/
public val target: kotlin.String? = builder.target
/**
* The parameters required to set up a target for your pipe.
*
* For more information about pipe target parameters, including how to use dynamic path parameters, see [Target parameters](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes-event-target.html) in the *Amazon EventBridge User Guide*.
*/
public val targetParameters: aws.sdk.kotlin.services.pipes.model.PipeTargetParameters? = builder.targetParameters
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pipes.model.UpdatePipeRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdatePipeRequest(")
append("description=*** Sensitive Data Redacted ***,")
append("desiredState=$desiredState,")
append("enrichment=$enrichment,")
append("enrichmentParameters=$enrichmentParameters,")
append("logConfiguration=$logConfiguration,")
append("name=$name,")
append("roleArn=$roleArn,")
append("sourceParameters=$sourceParameters,")
append("target=$target,")
append("targetParameters=$targetParameters")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (desiredState?.hashCode() ?: 0)
result = 31 * result + (enrichment?.hashCode() ?: 0)
result = 31 * result + (enrichmentParameters?.hashCode() ?: 0)
result = 31 * result + (logConfiguration?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (sourceParameters?.hashCode() ?: 0)
result = 31 * result + (target?.hashCode() ?: 0)
result = 31 * result + (targetParameters?.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 UpdatePipeRequest
if (description != other.description) return false
if (desiredState != other.desiredState) return false
if (enrichment != other.enrichment) return false
if (enrichmentParameters != other.enrichmentParameters) return false
if (logConfiguration != other.logConfiguration) return false
if (name != other.name) return false
if (roleArn != other.roleArn) return false
if (sourceParameters != other.sourceParameters) return false
if (target != other.target) return false
if (targetParameters != other.targetParameters) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pipes.model.UpdatePipeRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A description of the pipe.
*/
public var description: kotlin.String? = null
/**
* The state the pipe should be in.
*/
public var desiredState: aws.sdk.kotlin.services.pipes.model.RequestedPipeState? = null
/**
* The ARN of the enrichment resource.
*/
public var enrichment: kotlin.String? = null
/**
* The parameters required to set up enrichment on your pipe.
*/
public var enrichmentParameters: aws.sdk.kotlin.services.pipes.model.PipeEnrichmentParameters? = null
/**
* The logging configuration settings for the pipe.
*/
public var logConfiguration: aws.sdk.kotlin.services.pipes.model.PipeLogConfigurationParameters? = null
/**
* The name of the pipe.
*/
public var name: kotlin.String? = null
/**
* The ARN of the role that allows the pipe to send data to the target.
*/
public var roleArn: kotlin.String? = null
/**
* The parameters required to set up a source for your pipe.
*/
public var sourceParameters: aws.sdk.kotlin.services.pipes.model.UpdatePipeSourceParameters? = null
/**
* The ARN of the target resource.
*/
public var target: kotlin.String? = null
/**
* The parameters required to set up a target for your pipe.
*
* For more information about pipe target parameters, including how to use dynamic path parameters, see [Target parameters](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes-event-target.html) in the *Amazon EventBridge User Guide*.
*/
public var targetParameters: aws.sdk.kotlin.services.pipes.model.PipeTargetParameters? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pipes.model.UpdatePipeRequest) : this() {
this.description = x.description
this.desiredState = x.desiredState
this.enrichment = x.enrichment
this.enrichmentParameters = x.enrichmentParameters
this.logConfiguration = x.logConfiguration
this.name = x.name
this.roleArn = x.roleArn
this.sourceParameters = x.sourceParameters
this.target = x.target
this.targetParameters = x.targetParameters
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pipes.model.UpdatePipeRequest = UpdatePipeRequest(this)
/**
* construct an [aws.sdk.kotlin.services.pipes.model.PipeEnrichmentParameters] inside the given [block]
*/
public fun enrichmentParameters(block: aws.sdk.kotlin.services.pipes.model.PipeEnrichmentParameters.Builder.() -> kotlin.Unit) {
this.enrichmentParameters = aws.sdk.kotlin.services.pipes.model.PipeEnrichmentParameters.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.pipes.model.PipeLogConfigurationParameters] inside the given [block]
*/
public fun logConfiguration(block: aws.sdk.kotlin.services.pipes.model.PipeLogConfigurationParameters.Builder.() -> kotlin.Unit) {
this.logConfiguration = aws.sdk.kotlin.services.pipes.model.PipeLogConfigurationParameters.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.pipes.model.UpdatePipeSourceParameters] inside the given [block]
*/
public fun sourceParameters(block: aws.sdk.kotlin.services.pipes.model.UpdatePipeSourceParameters.Builder.() -> kotlin.Unit) {
this.sourceParameters = aws.sdk.kotlin.services.pipes.model.UpdatePipeSourceParameters.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.pipes.model.PipeTargetParameters] inside the given [block]
*/
public fun targetParameters(block: aws.sdk.kotlin.services.pipes.model.PipeTargetParameters.Builder.() -> kotlin.Unit) {
this.targetParameters = aws.sdk.kotlin.services.pipes.model.PipeTargetParameters.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy