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

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

There is a newer version: 1.3.34
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

public class UpdateDestinationRequest private constructor(builder: Builder) {
    /**
     * A new description of the resource.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The new 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 new 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.UpdateDestinationRequest = Builder().apply(block).build()
    }

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

    override fun hashCode(): kotlin.Int {
        var 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 UpdateDestinationRequest

        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.UpdateDestinationRequest = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * A new description of the resource.
         */
        public var description: kotlin.String? = null
        /**
         * The new 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 new 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.UpdateDestinationRequest) : this() {
            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.UpdateDestinationRequest = UpdateDestinationRequest(this)

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy