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

commonMain.aws.sdk.kotlin.services.iotwireless.model.Destinations.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.iotwireless.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Describes a destination.
 */
public class Destinations private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name of the resource.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * The description of the resource.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The rule name or topic rule to send messages to.
     */
    public val expression: kotlin.String? = builder.expression
    /**
     * The type of value in `Expression`.
     */
    public val expressionType: aws.sdk.kotlin.services.iotwireless.model.ExpressionType? = builder.expressionType
    /**
     * The name of the resource.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The ARN of the IAM Role that authorizes the destination.
     */
    public val roleArn: kotlin.String? = builder.roleArn

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

    override fun toString(): kotlin.String = buildString {
        append("Destinations(")
        append("arn=$arn,")
        append("description=$description,")
        append("expression=$expression,")
        append("expressionType=$expressionType,")
        append("name=$name,")
        append("roleArn=$roleArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (expression?.hashCode() ?: 0)
        result = 31 * result + (expressionType?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (roleArn?.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 Destinations

        if (arn != other.arn) return false
        if (description != other.description) return false
        if (expression != other.expression) return false
        if (expressionType != other.expressionType) return false
        if (name != other.name) return false
        if (roleArn != other.roleArn) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Resource Name of the resource.
         */
        public var arn: kotlin.String? = null
        /**
         * The description of the resource.
         */
        public var description: kotlin.String? = null
        /**
         * The rule name or topic rule to send messages to.
         */
        public var expression: kotlin.String? = null
        /**
         * The type of value in `Expression`.
         */
        public var expressionType: aws.sdk.kotlin.services.iotwireless.model.ExpressionType? = null
        /**
         * The name of the resource.
         */
        public var name: kotlin.String? = null
        /**
         * The ARN of the IAM Role that authorizes the destination.
         */
        public var roleArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.Destinations) : this() {
            this.arn = x.arn
            this.description = x.description
            this.expression = x.expression
            this.expressionType = x.expressionType
            this.name = x.name
            this.roleArn = x.roleArn
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy