commonMain.aws.sdk.kotlin.services.wafv2.model.GetMobileSdkReleaseRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wafv2-jvm Show documentation
Show all versions of wafv2-jvm Show documentation
The AWS Kotlin client for WAFV2
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wafv2.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetMobileSdkReleaseRequest private constructor(builder: Builder) {
/**
* The device platform.
*/
public val platform: aws.sdk.kotlin.services.wafv2.model.Platform? = builder.platform
/**
* The release version. For the latest available version, specify `LATEST`.
*/
public val releaseVersion: kotlin.String? = builder.releaseVersion
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wafv2.model.GetMobileSdkReleaseRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetMobileSdkReleaseRequest(")
append("platform=$platform,")
append("releaseVersion=$releaseVersion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = platform?.hashCode() ?: 0
result = 31 * result + (releaseVersion?.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 GetMobileSdkReleaseRequest
if (platform != other.platform) return false
if (releaseVersion != other.releaseVersion) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wafv2.model.GetMobileSdkReleaseRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The device platform.
*/
public var platform: aws.sdk.kotlin.services.wafv2.model.Platform? = null
/**
* The release version. For the latest available version, specify `LATEST`.
*/
public var releaseVersion: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wafv2.model.GetMobileSdkReleaseRequest) : this() {
this.platform = x.platform
this.releaseVersion = x.releaseVersion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wafv2.model.GetMobileSdkReleaseRequest = GetMobileSdkReleaseRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy