commonMain.aws.sdk.kotlin.services.iotfleethub.model.DescribeApplicationResponse.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
import aws.smithy.kotlin.runtime.SdkDsl
public class DescribeApplicationResponse 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 date (in Unix epoch time) when the application was created.
*/
public val applicationCreationDate: kotlin.Long = builder.applicationCreationDate
/**
* 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 = requireNotNull(builder.applicationId) { "A non-null value must be provided for applicationId" }
/**
* The date (in Unix epoch time) when the application was last updated.
*/
public val applicationLastUpdateDate: kotlin.Long = builder.applicationLastUpdateDate
/**
* The name of the web application.
*/
public val applicationName: kotlin.String = requireNotNull(builder.applicationName) { "A non-null value must be provided for applicationName" }
/**
* The current state of the web application.
*/
public val applicationState: aws.sdk.kotlin.services.iotfleethub.model.ApplicationState = requireNotNull(builder.applicationState) { "A non-null value must be provided for applicationState" }
/**
* The URL of the web application.
*/
public val applicationUrl: kotlin.String = requireNotNull(builder.applicationUrl) { "A non-null value must be provided for applicationUrl" }
/**
* A message that explains any failures included in the `applicationState` response field. This message explains failures in the `CreateApplication` and `DeleteApplication` actions.
*/
public val errorMessage: kotlin.String? = builder.errorMessage
/**
* The ARN of the role that the web application assumes when it interacts with Amazon Web Services IoT Core.
*/
public val roleArn: kotlin.String = requireNotNull(builder.roleArn) { "A non-null value must be provided for roleArn" }
/**
* The Id of the single sign-on client that you use to authenticate and authorize users on the web application.
*/
public val ssoClientId: kotlin.String? = builder.ssoClientId
/**
* 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.DescribeApplicationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeApplicationResponse(")
append("applicationArn=$applicationArn,")
append("applicationCreationDate=$applicationCreationDate,")
append("applicationDescription=$applicationDescription,")
append("applicationId=$applicationId,")
append("applicationLastUpdateDate=$applicationLastUpdateDate,")
append("applicationName=$applicationName,")
append("applicationState=$applicationState,")
append("applicationUrl=$applicationUrl,")
append("errorMessage=$errorMessage,")
append("roleArn=$roleArn,")
append("ssoClientId=$ssoClientId,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationArn.hashCode()
result = 31 * result + (applicationCreationDate.hashCode())
result = 31 * result + (applicationDescription?.hashCode() ?: 0)
result = 31 * result + (applicationId.hashCode())
result = 31 * result + (applicationLastUpdateDate.hashCode())
result = 31 * result + (applicationName.hashCode())
result = 31 * result + (applicationState.hashCode())
result = 31 * result + (applicationUrl.hashCode())
result = 31 * result + (errorMessage?.hashCode() ?: 0)
result = 31 * result + (roleArn.hashCode())
result = 31 * result + (ssoClientId?.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 DescribeApplicationResponse
if (applicationArn != other.applicationArn) return false
if (applicationCreationDate != other.applicationCreationDate) return false
if (applicationDescription != other.applicationDescription) return false
if (applicationId != other.applicationId) return false
if (applicationLastUpdateDate != other.applicationLastUpdateDate) return false
if (applicationName != other.applicationName) return false
if (applicationState != other.applicationState) return false
if (applicationUrl != other.applicationUrl) return false
if (errorMessage != other.errorMessage) return false
if (roleArn != other.roleArn) return false
if (ssoClientId != other.ssoClientId) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotfleethub.model.DescribeApplicationResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ARN of the web application.
*/
public var applicationArn: kotlin.String? = null
/**
* The date (in Unix epoch time) when the application was created.
*/
public var applicationCreationDate: kotlin.Long = 0L
/**
* 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 date (in Unix epoch time) when the application was last updated.
*/
public var applicationLastUpdateDate: kotlin.Long = 0L
/**
* The name of the web application.
*/
public var applicationName: kotlin.String? = null
/**
* The current state of the web application.
*/
public var applicationState: aws.sdk.kotlin.services.iotfleethub.model.ApplicationState? = null
/**
* The URL of the web application.
*/
public var applicationUrl: kotlin.String? = null
/**
* A message that explains any failures included in the `applicationState` response field. This message explains failures in the `CreateApplication` and `DeleteApplication` actions.
*/
public var errorMessage: kotlin.String? = null
/**
* The ARN of the role that the web application assumes when it interacts with Amazon Web Services IoT Core.
*/
public var roleArn: kotlin.String? = null
/**
* The Id of the single sign-on client that you use to authenticate and authorize users on the web application.
*/
public var ssoClientId: 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.DescribeApplicationResponse) : this() {
this.applicationArn = x.applicationArn
this.applicationCreationDate = x.applicationCreationDate
this.applicationDescription = x.applicationDescription
this.applicationId = x.applicationId
this.applicationLastUpdateDate = x.applicationLastUpdateDate
this.applicationName = x.applicationName
this.applicationState = x.applicationState
this.applicationUrl = x.applicationUrl
this.errorMessage = x.errorMessage
this.roleArn = x.roleArn
this.ssoClientId = x.ssoClientId
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotfleethub.model.DescribeApplicationResponse = DescribeApplicationResponse(this)
internal fun correctErrors(): Builder {
if (applicationArn == null) applicationArn = ""
if (applicationId == null) applicationId = ""
if (applicationName == null) applicationName = ""
if (applicationState == null) applicationState = ApplicationState.SdkUnknown("no value provided")
if (applicationUrl == null) applicationUrl = ""
if (roleArn == null) roleArn = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy