commonMain.aws.sdk.kotlin.services.iotfleethub.model.CreateApplicationResponse.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 CreateApplicationResponse private constructor(builder: Builder) {
/**
* The ARN of the web application.
*/
public val applicationArn: kotlin.String = requireNotNull(builder.applicationArn) { "A non-null value must be provided for applicationArn" }
/**
* The unique Id of the web application.
*/
public val applicationId: kotlin.String = requireNotNull(builder.applicationId) { "A non-null value must be provided for applicationId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotfleethub.model.CreateApplicationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateApplicationResponse(")
append("applicationArn=$applicationArn,")
append("applicationId=$applicationId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationArn.hashCode()
result = 31 * result + (applicationId.hashCode())
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 CreateApplicationResponse
if (applicationArn != other.applicationArn) return false
if (applicationId != other.applicationId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotfleethub.model.CreateApplicationResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The ARN of the web application.
*/
public var applicationArn: kotlin.String? = null
/**
* The unique Id of the web application.
*/
public var applicationId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotfleethub.model.CreateApplicationResponse) : this() {
this.applicationArn = x.applicationArn
this.applicationId = x.applicationId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotfleethub.model.CreateApplicationResponse = CreateApplicationResponse(this)
internal fun correctErrors(): Builder {
if (applicationArn == null) applicationArn = ""
if (applicationId == null) applicationId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy