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

commonMain.aws.sdk.kotlin.services.pipes.model.PipeTargetEventBridgeEventBusParameters.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

/**
 * The parameters for using an EventBridge event bus as a target.
 */
public class PipeTargetEventBridgeEventBusParameters private constructor(builder: Builder) {
    /**
     * A free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event detail.
     */
    public val detailType: kotlin.String? = builder.detailType
    /**
     * The URL subdomain of the endpoint. For example, if the URL for Endpoint is https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is `abcde.veo`.
     */
    public val endpointId: kotlin.String? = builder.endpointId
    /**
     * Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.
     */
    public val resources: List? = builder.resources
    /**
     * The source of the event.
     */
    public val source: kotlin.String? = builder.source
    /**
     * The time stamp of the event, per [RFC3339](https://www.rfc-editor.org/rfc/rfc3339.txt). If no time stamp is provided, the time stamp of the [PutEvents](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEvents.html) call is used.
     */
    public val time: kotlin.String? = builder.time

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

    override fun toString(): kotlin.String = buildString {
        append("PipeTargetEventBridgeEventBusParameters(")
        append("detailType=*** Sensitive Data Redacted ***,")
        append("endpointId=*** Sensitive Data Redacted ***,")
        append("resources=$resources,")
        append("source=*** Sensitive Data Redacted ***,")
        append("time=$time")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = detailType?.hashCode() ?: 0
        result = 31 * result + (endpointId?.hashCode() ?: 0)
        result = 31 * result + (resources?.hashCode() ?: 0)
        result = 31 * result + (source?.hashCode() ?: 0)
        result = 31 * result + (time?.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 PipeTargetEventBridgeEventBusParameters

        if (detailType != other.detailType) return false
        if (endpointId != other.endpointId) return false
        if (resources != other.resources) return false
        if (source != other.source) return false
        if (time != other.time) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event detail.
         */
        public var detailType: kotlin.String? = null
        /**
         * The URL subdomain of the endpoint. For example, if the URL for Endpoint is https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is `abcde.veo`.
         */
        public var endpointId: kotlin.String? = null
        /**
         * Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.
         */
        public var resources: List? = null
        /**
         * The source of the event.
         */
        public var source: kotlin.String? = null
        /**
         * The time stamp of the event, per [RFC3339](https://www.rfc-editor.org/rfc/rfc3339.txt). If no time stamp is provided, the time stamp of the [PutEvents](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEvents.html) call is used.
         */
        public var time: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.pipes.model.PipeTargetEventBridgeEventBusParameters) : this() {
            this.detailType = x.detailType
            this.endpointId = x.endpointId
            this.resources = x.resources
            this.source = x.source
            this.time = x.time
        }

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

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy