
commonMain.aws.sdk.kotlin.services.ssmsap.model.Application.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* An SAP application registered with AWS Systems Manager for SAP.
*/
public class Application private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the Application Registry.
*/
public val appRegistryArn: kotlin.String? = builder.appRegistryArn
/**
* The Amazon Resource Name (ARN) of the application.
*/
public val arn: kotlin.String? = builder.arn
/**
* The components of the application.
*/
public val components: List? = builder.components
/**
* The latest discovery result for the application.
*/
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 time at which the application was last updated.
*/
public val lastUpdated: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdated
/**
* The status of the application.
*/
public val status: aws.sdk.kotlin.services.ssmsap.model.ApplicationStatus? = builder.status
/**
* The status message.
*/
public val statusMessage: kotlin.String? = builder.statusMessage
/**
* 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.Application = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Application(")
append("appRegistryArn=$appRegistryArn,")
append("arn=$arn,")
append("components=$components,")
append("discoveryStatus=$discoveryStatus,")
append("id=$id,")
append("lastUpdated=$lastUpdated,")
append("status=$status,")
append("statusMessage=$statusMessage,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = appRegistryArn?.hashCode() ?: 0
result = 31 * result + (arn?.hashCode() ?: 0)
result = 31 * result + (components?.hashCode() ?: 0)
result = 31 * result + (discoveryStatus?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (lastUpdated?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (statusMessage?.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 Application
if (appRegistryArn != other.appRegistryArn) return false
if (arn != other.arn) return false
if (components != other.components) return false
if (discoveryStatus != other.discoveryStatus) return false
if (id != other.id) return false
if (lastUpdated != other.lastUpdated) return false
if (status != other.status) return false
if (statusMessage != other.statusMessage) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmsap.model.Application = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the Application Registry.
*/
public var appRegistryArn: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the application.
*/
public var arn: kotlin.String? = null
/**
* The components of the application.
*/
public var components: List? = null
/**
* The latest discovery result for the application.
*/
public var discoveryStatus: aws.sdk.kotlin.services.ssmsap.model.ApplicationDiscoveryStatus? = null
/**
* The ID of the application.
*/
public var id: kotlin.String? = null
/**
* The time at which the application was last updated.
*/
public var lastUpdated: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The status of the application.
*/
public var status: aws.sdk.kotlin.services.ssmsap.model.ApplicationStatus? = null
/**
* The status message.
*/
public var statusMessage: kotlin.String? = 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.Application) : this() {
this.appRegistryArn = x.appRegistryArn
this.arn = x.arn
this.components = x.components
this.discoveryStatus = x.discoveryStatus
this.id = x.id
this.lastUpdated = x.lastUpdated
this.status = x.status
this.statusMessage = x.statusMessage
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmsap.model.Application = Application(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy