
commonMain.aws.sdk.kotlin.services.iot.model.MetricValue.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* The value to be compared with the `metric`.
*/
public class MetricValue private constructor(builder: Builder) {
/**
* If the `comparisonOperator` calls for a set of CIDRs, use this to specify that set to be compared with the `metric`.
*/
public val cidrs: List? = builder.cidrs
/**
* If the `comparisonOperator` calls for a numeric value, use this to specify that numeric value to be compared with the `metric`.
*/
public val count: kotlin.Long? = builder.count
/**
* The numeral value of a metric.
*/
public val number: kotlin.Double? = builder.number
/**
* The numeral values of a metric.
*/
public val numbers: List? = builder.numbers
/**
* If the `comparisonOperator` calls for a set of ports, use this to specify that set to be compared with the `metric`.
*/
public val ports: List? = builder.ports
/**
* The string values of a metric.
*/
public val strings: List? = builder.strings
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.MetricValue = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MetricValue(")
append("cidrs=$cidrs,")
append("count=$count,")
append("number=$number,")
append("numbers=$numbers,")
append("ports=$ports,")
append("strings=$strings")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cidrs?.hashCode() ?: 0
result = 31 * result + (count?.hashCode() ?: 0)
result = 31 * result + (number?.hashCode() ?: 0)
result = 31 * result + (numbers?.hashCode() ?: 0)
result = 31 * result + (ports?.hashCode() ?: 0)
result = 31 * result + (strings?.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 MetricValue
if (cidrs != other.cidrs) return false
if (count != other.count) return false
if (number != other.number) return false
if (numbers != other.numbers) return false
if (ports != other.ports) return false
if (strings != other.strings) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.MetricValue = Builder(this).apply(block).build()
public class Builder {
/**
* If the `comparisonOperator` calls for a set of CIDRs, use this to specify that set to be compared with the `metric`.
*/
public var cidrs: List? = null
/**
* If the `comparisonOperator` calls for a numeric value, use this to specify that numeric value to be compared with the `metric`.
*/
public var count: kotlin.Long? = null
/**
* The numeral value of a metric.
*/
public var number: kotlin.Double? = null
/**
* The numeral values of a metric.
*/
public var numbers: List? = null
/**
* If the `comparisonOperator` calls for a set of ports, use this to specify that set to be compared with the `metric`.
*/
public var ports: List? = null
/**
* The string values of a metric.
*/
public var strings: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.MetricValue) : this() {
this.cidrs = x.cidrs
this.count = x.count
this.number = x.number
this.numbers = x.numbers
this.ports = x.ports
this.strings = x.strings
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.MetricValue = MetricValue(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy