commonMain.aws.sdk.kotlin.services.iotfleethub.model.CreateApplicationRequest.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 CreateApplicationRequest private constructor(builder: Builder) {
/**
* An optional description of the web application.
*/
public val applicationDescription: kotlin.String? = builder.applicationDescription
/**
* 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
/**
* The ARN of the role that the web application assumes when it interacts with AWS IoT Core.
*
* The name of the role must be in the form `AWSIotFleetHub_random_string `.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* A set of key/value pairs that you can use to manage the web application resource.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotfleethub.model.CreateApplicationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateApplicationRequest(")
append("applicationDescription=$applicationDescription,")
append("applicationName=$applicationName,")
append("clientToken=$clientToken,")
append("roleArn=$roleArn,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationDescription?.hashCode() ?: 0
result = 31 * result + (applicationName?.hashCode() ?: 0)
result = 31 * result + (clientToken?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (tags?.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 CreateApplicationRequest
if (applicationDescription != other.applicationDescription) return false
if (applicationName != other.applicationName) return false
if (clientToken != other.clientToken) return false
if (roleArn != other.roleArn) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotfleethub.model.CreateApplicationRequest = Builder(this).apply(block).build()
public class Builder {
/**
* An optional description of the web application.
*/
public var applicationDescription: 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
/**
* The ARN of the role that the web application assumes when it interacts with AWS IoT Core.
*
* The name of the role must be in the form `AWSIotFleetHub_random_string `.
*/
public var roleArn: kotlin.String? = null
/**
* A set of key/value pairs that you can use to manage the web application resource.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotfleethub.model.CreateApplicationRequest) : this() {
this.applicationDescription = x.applicationDescription
this.applicationName = x.applicationName
this.clientToken = x.clientToken
this.roleArn = x.roleArn
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotfleethub.model.CreateApplicationRequest = CreateApplicationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy