
commonMain.aws.sdk.kotlin.services.pipes.model.Pipe.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.time.Instant
/**
* An object that represents a pipe. Amazon EventBridgePipes connect event sources to targets and reduces the need for specialized knowledge and integration code.
*/
public class Pipe private constructor(builder: Builder) {
/**
* The ARN of the pipe.
*/
public val arn: kotlin.String? = builder.arn
/**
* The time the pipe was created.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* The state the pipe is in.
*/
public val currentState: aws.sdk.kotlin.services.pipes.model.PipeState? = builder.currentState
/**
* 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
/**
* When the pipe was last updated, in [ISO-8601 format](https://www.w3.org/TR/NOTE-datetime) (YYYY-MM-DDThh:mm:ss.sTZD).
*/
public val lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedTime
/**
* The name of the pipe.
*/
public val name: kotlin.String? = builder.name
/**
* The ARN of the source resource.
*/
public val source: kotlin.String? = builder.source
/**
* The reason the pipe is in its current state.
*/
public val stateReason: kotlin.String? = builder.stateReason
/**
* The ARN of the target resource.
*/
public val target: kotlin.String? = builder.target
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pipes.model.Pipe = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Pipe(")
append("arn=$arn,")
append("creationTime=$creationTime,")
append("currentState=$currentState,")
append("desiredState=$desiredState,")
append("enrichment=$enrichment,")
append("lastModifiedTime=$lastModifiedTime,")
append("name=$name,")
append("source=$source,")
append("stateReason=$stateReason,")
append("target=$target")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (creationTime?.hashCode() ?: 0)
result = 31 * result + (currentState?.hashCode() ?: 0)
result = 31 * result + (desiredState?.hashCode() ?: 0)
result = 31 * result + (enrichment?.hashCode() ?: 0)
result = 31 * result + (lastModifiedTime?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (source?.hashCode() ?: 0)
result = 31 * result + (stateReason?.hashCode() ?: 0)
result = 31 * result + (target?.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 Pipe
if (arn != other.arn) return false
if (creationTime != other.creationTime) return false
if (currentState != other.currentState) return false
if (desiredState != other.desiredState) return false
if (enrichment != other.enrichment) return false
if (lastModifiedTime != other.lastModifiedTime) return false
if (name != other.name) return false
if (source != other.source) return false
if (stateReason != other.stateReason) return false
if (target != other.target) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pipes.model.Pipe = Builder(this).apply(block).build()
public class Builder {
/**
* The ARN of the pipe.
*/
public var arn: kotlin.String? = null
/**
* The time the pipe was created.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The state the pipe is in.
*/
public var currentState: aws.sdk.kotlin.services.pipes.model.PipeState? = 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
/**
* When the pipe was last updated, in [ISO-8601 format](https://www.w3.org/TR/NOTE-datetime) (YYYY-MM-DDThh:mm:ss.sTZD).
*/
public var lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name of the pipe.
*/
public var name: kotlin.String? = null
/**
* The ARN of the source resource.
*/
public var source: kotlin.String? = null
/**
* The reason the pipe is in its current state.
*/
public var stateReason: kotlin.String? = null
/**
* The ARN of the target resource.
*/
public var target: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pipes.model.Pipe) : this() {
this.arn = x.arn
this.creationTime = x.creationTime
this.currentState = x.currentState
this.desiredState = x.desiredState
this.enrichment = x.enrichment
this.lastModifiedTime = x.lastModifiedTime
this.name = x.name
this.source = x.source
this.stateReason = x.stateReason
this.target = x.target
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pipes.model.Pipe = Pipe(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy