commonMain.aws.sdk.kotlin.services.kinesisanalytics.model.ApplicationSummary.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kinesisanalytics-jvm Show documentation
Show all versions of kinesisanalytics-jvm Show documentation
The AWS SDK for Kotlin client for Kinesis Analytics
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kinesisanalytics.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* This documentation is for version 1 of the Amazon Kinesis Data Analytics API, which only supports SQL applications. Version 2 of the API supports SQL and Java applications. For more information about version 2, see [Amazon Kinesis Data Analytics API V2 Documentation](/kinesisanalytics/latest/apiv2/Welcome.html).
*
* Provides application summary information, including the application Amazon Resource Name (ARN), name, and status.
*/
public class ApplicationSummary private constructor(builder: Builder) {
/**
* ARN of the application.
*/
public val applicationArn: kotlin.String = requireNotNull(builder.applicationArn) { "A non-null value must be provided for applicationArn" }
/**
* Name of the application.
*/
public val applicationName: kotlin.String = requireNotNull(builder.applicationName) { "A non-null value must be provided for applicationName" }
/**
* Status of the application.
*/
public val applicationStatus: aws.sdk.kotlin.services.kinesisanalytics.model.ApplicationStatus = requireNotNull(builder.applicationStatus) { "A non-null value must be provided for applicationStatus" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kinesisanalytics.model.ApplicationSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ApplicationSummary(")
append("applicationArn=$applicationArn,")
append("applicationName=$applicationName,")
append("applicationStatus=$applicationStatus")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationArn.hashCode()
result = 31 * result + (applicationName.hashCode())
result = 31 * result + (applicationStatus.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 ApplicationSummary
if (applicationArn != other.applicationArn) return false
if (applicationName != other.applicationName) return false
if (applicationStatus != other.applicationStatus) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kinesisanalytics.model.ApplicationSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* ARN of the application.
*/
public var applicationArn: kotlin.String? = null
/**
* Name of the application.
*/
public var applicationName: kotlin.String? = null
/**
* Status of the application.
*/
public var applicationStatus: aws.sdk.kotlin.services.kinesisanalytics.model.ApplicationStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kinesisanalytics.model.ApplicationSummary) : this() {
this.applicationArn = x.applicationArn
this.applicationName = x.applicationName
this.applicationStatus = x.applicationStatus
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kinesisanalytics.model.ApplicationSummary = ApplicationSummary(this)
internal fun correctErrors(): Builder {
if (applicationArn == null) applicationArn = ""
if (applicationName == null) applicationName = ""
if (applicationStatus == null) applicationStatus = ApplicationStatus.SdkUnknown("no value provided")
return this
}
}
}