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

commonMain.aws.sdk.kotlin.services.iotwireless.model.GetNetworkAnalyzerConfigurationResponse.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

public class GetNetworkAnalyzerConfigurationResponse private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name of the new resource.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * The description of the new resource.
     */
    public val description: kotlin.String? = builder.description
    /**
     * List of multicast group resources that have been added to the network analyzer configuration.
     */
    public val multicastGroups: List? = builder.multicastGroups
    /**
     * Name of the network analyzer configuration.
     */
    public val name: kotlin.String? = builder.name
    /**
     * Trace content for your wireless devices, gateways, and multicast groups.
     */
    public val traceContent: aws.sdk.kotlin.services.iotwireless.model.TraceContent? = builder.traceContent
    /**
     * List of wireless device resources that have been added to the network analyzer configuration.
     */
    public val wirelessDevices: List? = builder.wirelessDevices
    /**
     * List of wireless gateway resources that have been added to the network analyzer configuration.
     */
    public val wirelessGateways: List? = builder.wirelessGateways

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

    override fun toString(): kotlin.String = buildString {
        append("GetNetworkAnalyzerConfigurationResponse(")
        append("arn=$arn,")
        append("description=$description,")
        append("multicastGroups=$multicastGroups,")
        append("name=$name,")
        append("traceContent=$traceContent,")
        append("wirelessDevices=$wirelessDevices,")
        append("wirelessGateways=$wirelessGateways")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (multicastGroups?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (traceContent?.hashCode() ?: 0)
        result = 31 * result + (wirelessDevices?.hashCode() ?: 0)
        result = 31 * result + (wirelessGateways?.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 GetNetworkAnalyzerConfigurationResponse

        if (arn != other.arn) return false
        if (description != other.description) return false
        if (multicastGroups != other.multicastGroups) return false
        if (name != other.name) return false
        if (traceContent != other.traceContent) return false
        if (wirelessDevices != other.wirelessDevices) return false
        if (wirelessGateways != other.wirelessGateways) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Resource Name of the new resource.
         */
        public var arn: kotlin.String? = null
        /**
         * The description of the new resource.
         */
        public var description: kotlin.String? = null
        /**
         * List of multicast group resources that have been added to the network analyzer configuration.
         */
        public var multicastGroups: List? = null
        /**
         * Name of the network analyzer configuration.
         */
        public var name: kotlin.String? = null
        /**
         * Trace content for your wireless devices, gateways, and multicast groups.
         */
        public var traceContent: aws.sdk.kotlin.services.iotwireless.model.TraceContent? = null
        /**
         * List of wireless device resources that have been added to the network analyzer configuration.
         */
        public var wirelessDevices: List? = null
        /**
         * List of wireless gateway resources that have been added to the network analyzer configuration.
         */
        public var wirelessGateways: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.GetNetworkAnalyzerConfigurationResponse) : this() {
            this.arn = x.arn
            this.description = x.description
            this.multicastGroups = x.multicastGroups
            this.name = x.name
            this.traceContent = x.traceContent
            this.wirelessDevices = x.wirelessDevices
            this.wirelessGateways = x.wirelessGateways
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.iotwireless.model.TraceContent] inside the given [block]
         */
        public fun traceContent(block: aws.sdk.kotlin.services.iotwireless.model.TraceContent.Builder.() -> kotlin.Unit) {
            this.traceContent = aws.sdk.kotlin.services.iotwireless.model.TraceContent.invoke(block)
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy