
commonMain.aws.sdk.kotlin.services.ssmsap.model.ApplicationSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssmsap.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The summary of the SAP application registered with AWS Systems Manager for SAP.
*/
public class ApplicationSummary private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the application.
*/
public val arn: kotlin.String? = builder.arn
/**
* The status of the latest discovery.
*/
public val discoveryStatus: aws.sdk.kotlin.services.ssmsap.model.ApplicationDiscoveryStatus? = builder.discoveryStatus
/**
* The ID of the application.
*/
public val id: kotlin.String? = builder.id
/**
* The tags on the application.
*/
public val tags: Map? = builder.tags
/**
* The type of the application.
*/
public val type: aws.sdk.kotlin.services.ssmsap.model.ApplicationType? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmsap.model.ApplicationSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ApplicationSummary(")
append("arn=$arn,")
append("discoveryStatus=$discoveryStatus,")
append("id=$id,")
append("tags=$tags,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (discoveryStatus?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (type?.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 ApplicationSummary
if (arn != other.arn) return false
if (discoveryStatus != other.discoveryStatus) return false
if (id != other.id) return false
if (tags != other.tags) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmsap.model.ApplicationSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the application.
*/
public var arn: kotlin.String? = null
/**
* The status of the latest discovery.
*/
public var discoveryStatus: aws.sdk.kotlin.services.ssmsap.model.ApplicationDiscoveryStatus? = null
/**
* The ID of the application.
*/
public var id: kotlin.String? = null
/**
* The tags on the application.
*/
public var tags: Map? = null
/**
* The type of the application.
*/
public var type: aws.sdk.kotlin.services.ssmsap.model.ApplicationType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmsap.model.ApplicationSummary) : this() {
this.arn = x.arn
this.discoveryStatus = x.discoveryStatus
this.id = x.id
this.tags = x.tags
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmsap.model.ApplicationSummary = ApplicationSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy