commonMain.aws.sdk.kotlin.services.devicefarm.model.NetworkProfile.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of devicefarm-jvm Show documentation
Show all versions of devicefarm-jvm Show documentation
The AWS SDK for Kotlin client for Device Farm
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.devicefarm.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An array of settings that describes characteristics of a network profile.
*/
public class NetworkProfile private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the network profile.
*/
public val arn: kotlin.String? = builder.arn
/**
* The description of the network profile.
*/
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.
*/
public val name: kotlin.String? = builder.name
/**
* The type of network profile. 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.NetworkProfile = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("NetworkProfile(")
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)
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)
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 NetworkProfile
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.NetworkProfile = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the network profile.
*/
public var arn: kotlin.String? = null
/**
* The description of the network profile.
*/
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 = 0
/**
* The name of the network profile.
*/
public var name: kotlin.String? = null
/**
* The type of network profile. 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 = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devicefarm.model.NetworkProfile) : 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.NetworkProfile = NetworkProfile(this)
internal fun correctErrors(): Builder {
return this
}
}
}