commonMain.aws.sdk.kotlin.services.iotfleethub.model.UpdateApplicationRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iotfleethub-jvm Show documentation
Show all versions of iotfleethub-jvm Show documentation
The AWS SDK for Kotlin client for IoTFleetHub
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iotfleethub.model
public class UpdateApplicationRequest private constructor(builder: Builder) {
/**
* An optional description of the web application.
*/
public val applicationDescription: kotlin.String? = builder.applicationDescription
/**
* The unique Id of the web application.
*/
public val applicationId: kotlin.String? = builder.applicationId
/**
* The name of the web application.
*/
public val applicationName: kotlin.String? = builder.applicationName
/**
* A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
*/
public val clientToken: kotlin.String? = builder.clientToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotfleethub.model.UpdateApplicationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateApplicationRequest(")
append("applicationDescription=$applicationDescription,")
append("applicationId=$applicationId,")
append("applicationName=$applicationName,")
append("clientToken=$clientToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationDescription?.hashCode() ?: 0
result = 31 * result + (applicationId?.hashCode() ?: 0)
result = 31 * result + (applicationName?.hashCode() ?: 0)
result = 31 * result + (clientToken?.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 UpdateApplicationRequest
if (applicationDescription != other.applicationDescription) return false
if (applicationId != other.applicationId) return false
if (applicationName != other.applicationName) return false
if (clientToken != other.clientToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotfleethub.model.UpdateApplicationRequest = Builder(this).apply(block).build()
public class Builder {
/**
* An optional description of the web application.
*/
public var applicationDescription: kotlin.String? = null
/**
* The unique Id of the web application.
*/
public var applicationId: kotlin.String? = null
/**
* The name of the web application.
*/
public var applicationName: kotlin.String? = null
/**
* A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
*/
public var clientToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotfleethub.model.UpdateApplicationRequest) : this() {
this.applicationDescription = x.applicationDescription
this.applicationId = x.applicationId
this.applicationName = x.applicationName
this.clientToken = x.clientToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotfleethub.model.UpdateApplicationRequest = UpdateApplicationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy