
commonMain.aws.sdk.kotlin.services.ssmsap.model.Component.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.time.Instant
/**
* The SAP component of your application.
*/
public class Component private constructor(builder: Builder) {
/**
* The ID of the application.
*/
public val applicationId: kotlin.String? = builder.applicationId
/**
* The ID of the component.
*/
public val componentId: kotlin.String? = builder.componentId
/**
* The type of the component.
*/
public val componentType: aws.sdk.kotlin.services.ssmsap.model.ComponentType? = builder.componentType
/**
* The SAP HANA databases of the component.
*/
public val databases: List? = builder.databases
/**
* The hosts of the component.
*/
public val hosts: List? = builder.hosts
/**
* The time at which the component was last updated.
*/
public val lastUpdated: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdated
/**
* The primary host of the component.
*/
public val primaryHost: kotlin.String? = builder.primaryHost
/**
* The status of the component.
*/
public val status: aws.sdk.kotlin.services.ssmsap.model.ComponentStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmsap.model.Component = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Component(")
append("applicationId=$applicationId,")
append("componentId=$componentId,")
append("componentType=$componentType,")
append("databases=$databases,")
append("hosts=$hosts,")
append("lastUpdated=$lastUpdated,")
append("primaryHost=$primaryHost,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationId?.hashCode() ?: 0
result = 31 * result + (componentId?.hashCode() ?: 0)
result = 31 * result + (componentType?.hashCode() ?: 0)
result = 31 * result + (databases?.hashCode() ?: 0)
result = 31 * result + (hosts?.hashCode() ?: 0)
result = 31 * result + (lastUpdated?.hashCode() ?: 0)
result = 31 * result + (primaryHost?.hashCode() ?: 0)
result = 31 * result + (status?.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 Component
if (applicationId != other.applicationId) return false
if (componentId != other.componentId) return false
if (componentType != other.componentType) return false
if (databases != other.databases) return false
if (hosts != other.hosts) return false
if (lastUpdated != other.lastUpdated) return false
if (primaryHost != other.primaryHost) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmsap.model.Component = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the application.
*/
public var applicationId: kotlin.String? = null
/**
* The ID of the component.
*/
public var componentId: kotlin.String? = null
/**
* The type of the component.
*/
public var componentType: aws.sdk.kotlin.services.ssmsap.model.ComponentType? = null
/**
* The SAP HANA databases of the component.
*/
public var databases: List? = null
/**
* The hosts of the component.
*/
public var hosts: List? = null
/**
* The time at which the component was last updated.
*/
public var lastUpdated: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The primary host of the component.
*/
public var primaryHost: kotlin.String? = null
/**
* The status of the component.
*/
public var status: aws.sdk.kotlin.services.ssmsap.model.ComponentStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmsap.model.Component) : this() {
this.applicationId = x.applicationId
this.componentId = x.componentId
this.componentType = x.componentType
this.databases = x.databases
this.hosts = x.hosts
this.lastUpdated = x.lastUpdated
this.primaryHost = x.primaryHost
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmsap.model.Component = Component(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy