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

commonMain.aws.sdk.kotlin.services.devicefarm.model.UpdateNetworkProfileRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.devicefarm.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateNetworkProfileRequest private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the project for which you want to update network profile settings.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * The description of the network profile about which you are returning information.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The data throughput rate in bits per second, as an integer from 0 to 104857600.
     */
    public val downlinkBandwidthBits: kotlin.Long? = builder.downlinkBandwidthBits
    /**
     * Delay time for all packets to destination in milliseconds as an integer from 0 to 2000.
     */
    public val downlinkDelayMs: kotlin.Long? = builder.downlinkDelayMs
    /**
     * Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000.
     */
    public val downlinkJitterMs: kotlin.Long? = builder.downlinkJitterMs
    /**
     * Proportion of received packets that fail to arrive from 0 to 100 percent.
     */
    public val downlinkLossPercent: kotlin.Int? = builder.downlinkLossPercent
    /**
     * The name of the network profile about which you are returning information.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The type of network profile to return information about. Valid values are listed here.
     */
    public val type: aws.sdk.kotlin.services.devicefarm.model.NetworkProfileType? = builder.type
    /**
     * The data throughput rate in bits per second, as an integer from 0 to 104857600.
     */
    public val uplinkBandwidthBits: kotlin.Long? = builder.uplinkBandwidthBits
    /**
     * Delay time for all packets to destination in milliseconds as an integer from 0 to 2000.
     */
    public val uplinkDelayMs: kotlin.Long? = builder.uplinkDelayMs
    /**
     * Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000.
     */
    public val uplinkJitterMs: kotlin.Long? = builder.uplinkJitterMs
    /**
     * Proportion of transmitted packets that fail to arrive from 0 to 100 percent.
     */
    public val uplinkLossPercent: kotlin.Int? = builder.uplinkLossPercent

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateNetworkProfileRequest(")
        append("arn=$arn,")
        append("description=$description,")
        append("downlinkBandwidthBits=$downlinkBandwidthBits,")
        append("downlinkDelayMs=$downlinkDelayMs,")
        append("downlinkJitterMs=$downlinkJitterMs,")
        append("downlinkLossPercent=$downlinkLossPercent,")
        append("name=$name,")
        append("type=$type,")
        append("uplinkBandwidthBits=$uplinkBandwidthBits,")
        append("uplinkDelayMs=$uplinkDelayMs,")
        append("uplinkJitterMs=$uplinkJitterMs,")
        append("uplinkLossPercent=$uplinkLossPercent")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (downlinkBandwidthBits?.hashCode() ?: 0)
        result = 31 * result + (downlinkDelayMs?.hashCode() ?: 0)
        result = 31 * result + (downlinkJitterMs?.hashCode() ?: 0)
        result = 31 * result + (downlinkLossPercent ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (type?.hashCode() ?: 0)
        result = 31 * result + (uplinkBandwidthBits?.hashCode() ?: 0)
        result = 31 * result + (uplinkDelayMs?.hashCode() ?: 0)
        result = 31 * result + (uplinkJitterMs?.hashCode() ?: 0)
        result = 31 * result + (uplinkLossPercent ?: 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 UpdateNetworkProfileRequest

        if (arn != other.arn) return false
        if (description != other.description) return false
        if (downlinkBandwidthBits != other.downlinkBandwidthBits) return false
        if (downlinkDelayMs != other.downlinkDelayMs) return false
        if (downlinkJitterMs != other.downlinkJitterMs) return false
        if (downlinkLossPercent != other.downlinkLossPercent) return false
        if (name != other.name) return false
        if (type != other.type) return false
        if (uplinkBandwidthBits != other.uplinkBandwidthBits) return false
        if (uplinkDelayMs != other.uplinkDelayMs) return false
        if (uplinkJitterMs != other.uplinkJitterMs) return false
        if (uplinkLossPercent != other.uplinkLossPercent) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Resource Name (ARN) of the project for which you want to update network profile settings.
         */
        public var arn: kotlin.String? = null
        /**
         * The description of the network profile about which you are returning information.
         */
        public var description: kotlin.String? = null
        /**
         * The data throughput rate in bits per second, as an integer from 0 to 104857600.
         */
        public var downlinkBandwidthBits: kotlin.Long? = null
        /**
         * Delay time for all packets to destination in milliseconds as an integer from 0 to 2000.
         */
        public var downlinkDelayMs: kotlin.Long? = null
        /**
         * Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000.
         */
        public var downlinkJitterMs: kotlin.Long? = null
        /**
         * Proportion of received packets that fail to arrive from 0 to 100 percent.
         */
        public var downlinkLossPercent: kotlin.Int? = null
        /**
         * The name of the network profile about which you are returning information.
         */
        public var name: kotlin.String? = null
        /**
         * The type of network profile to return information about. Valid values are listed here.
         */
        public var type: aws.sdk.kotlin.services.devicefarm.model.NetworkProfileType? = null
        /**
         * The data throughput rate in bits per second, as an integer from 0 to 104857600.
         */
        public var uplinkBandwidthBits: kotlin.Long? = null
        /**
         * Delay time for all packets to destination in milliseconds as an integer from 0 to 2000.
         */
        public var uplinkDelayMs: kotlin.Long? = null
        /**
         * Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000.
         */
        public var uplinkJitterMs: kotlin.Long? = null
        /**
         * Proportion of transmitted packets that fail to arrive from 0 to 100 percent.
         */
        public var uplinkLossPercent: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.devicefarm.model.UpdateNetworkProfileRequest) : this() {
            this.arn = x.arn
            this.description = x.description
            this.downlinkBandwidthBits = x.downlinkBandwidthBits
            this.downlinkDelayMs = x.downlinkDelayMs
            this.downlinkJitterMs = x.downlinkJitterMs
            this.downlinkLossPercent = x.downlinkLossPercent
            this.name = x.name
            this.type = x.type
            this.uplinkBandwidthBits = x.uplinkBandwidthBits
            this.uplinkDelayMs = x.uplinkDelayMs
            this.uplinkJitterMs = x.uplinkJitterMs
            this.uplinkLossPercent = x.uplinkLossPercent
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy