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

commonMain.aws.sdk.kotlin.services.iotwireless.model.CreateNetworkAnalyzerConfigurationRequest.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 CreateNetworkAnalyzerConfigurationRequest private constructor(builder: Builder) {
    /**
     * Each resource must have a unique client request token. The client token is used to implement idempotency. It ensures that the request completes no more than one time. If you retry a request with the same token and the same parameters, the request will complete successfully. However, if you try to create a new resource using the same token but different parameters, an HTTP 409 conflict occurs. If you omit this value, AWS SDKs will automatically generate a unique client request. For more information about idempotency, see [Ensuring idempotency in Amazon EC2 API requests](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html).
     */
    public val clientRequestToken: kotlin.String? = builder.clientRequestToken
    /**
     * The description of the new resource.
     */
    public val description: kotlin.String? = builder.description
    /**
     * Multicast Group resources to add to the network analyzer configruation. Provide the `MulticastGroupId` of the resource to add in the input array.
     */
    public val multicastGroups: List? = builder.multicastGroups
    /**
     * Name of the network analyzer configuration.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The tag to attach to the specified resource. Tags are metadata that you can use to manage a resource.
     */
    public val tags: List? = builder.tags
    /**
     * Trace content for your wireless devices, gateways, and multicast groups.
     */
    public val traceContent: aws.sdk.kotlin.services.iotwireless.model.TraceContent? = builder.traceContent
    /**
     * Wireless device resources to add to the network analyzer configuration. Provide the `WirelessDeviceId` of the resource to add in the input array.
     */
    public val wirelessDevices: List? = builder.wirelessDevices
    /**
     * Wireless gateway resources to add to the network analyzer configuration. Provide the `WirelessGatewayId` of the resource to add in the input array.
     */
    public val wirelessGateways: List? = builder.wirelessGateways

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

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

    override fun hashCode(): kotlin.Int {
        var result = clientRequestToken?.hashCode() ?: 0
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (multicastGroups?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 CreateNetworkAnalyzerConfigurationRequest

        if (clientRequestToken != other.clientRequestToken) return false
        if (description != other.description) return false
        if (multicastGroups != other.multicastGroups) return false
        if (name != other.name) return false
        if (tags != other.tags) 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.CreateNetworkAnalyzerConfigurationRequest = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * Each resource must have a unique client request token. The client token is used to implement idempotency. It ensures that the request completes no more than one time. If you retry a request with the same token and the same parameters, the request will complete successfully. However, if you try to create a new resource using the same token but different parameters, an HTTP 409 conflict occurs. If you omit this value, AWS SDKs will automatically generate a unique client request. For more information about idempotency, see [Ensuring idempotency in Amazon EC2 API requests](https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html).
         */
        public var clientRequestToken: kotlin.String? = null
        /**
         * The description of the new resource.
         */
        public var description: kotlin.String? = null
        /**
         * Multicast Group resources to add to the network analyzer configruation. Provide the `MulticastGroupId` of the resource to add in the input array.
         */
        public var multicastGroups: List? = null
        /**
         * Name of the network analyzer configuration.
         */
        public var name: kotlin.String? = null
        /**
         * The tag to attach to the specified resource. Tags are metadata that you can use to manage a resource.
         */
        public var tags: List? = null
        /**
         * Trace content for your wireless devices, gateways, and multicast groups.
         */
        public var traceContent: aws.sdk.kotlin.services.iotwireless.model.TraceContent? = null
        /**
         * Wireless device resources to add to the network analyzer configuration. Provide the `WirelessDeviceId` of the resource to add in the input array.
         */
        public var wirelessDevices: List? = null
        /**
         * Wireless gateway resources to add to the network analyzer configuration. Provide the `WirelessGatewayId` of the resource to add in the input array.
         */
        public var wirelessGateways: List? = null

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

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.iotwireless.model.CreateNetworkAnalyzerConfigurationRequest = CreateNetworkAnalyzerConfigurationRequest(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