
commonMain.aws.sdk.kotlin.services.ssmsap.model.Operation.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
/**
* The operations performed by AWS Systems Manager for SAP.
*/
public class Operation private constructor(builder: Builder) {
/**
* The end time of the operation.
*/
public val endTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endTime
/**
* The ID of the operation.
*/
public val id: kotlin.String? = builder.id
/**
* The time at which the operation was last updated.
*/
public val lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedTime
/**
* The properties of the operation.
*/
public val properties: Map? = builder.properties
/**
* The Amazon Resource Name (ARN) of the operation.
*/
public val resourceArn: kotlin.String? = builder.resourceArn
/**
* The resource ID of the operation.
*/
public val resourceId: kotlin.String? = builder.resourceId
/**
* The resource type of the operation.
*/
public val resourceType: kotlin.String? = builder.resourceType
/**
* The start time of the operation.
*/
public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
/**
* The status of the operation.
*/
public val status: aws.sdk.kotlin.services.ssmsap.model.OperationStatus? = builder.status
/**
* The status message of the operation.
*/
public val statusMessage: kotlin.String? = builder.statusMessage
/**
* The type of the operation.
*/
public val type: kotlin.String? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmsap.model.Operation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Operation(")
append("endTime=$endTime,")
append("id=$id,")
append("lastUpdatedTime=$lastUpdatedTime,")
append("properties=$properties,")
append("resourceArn=$resourceArn,")
append("resourceId=$resourceId,")
append("resourceType=$resourceType,")
append("startTime=$startTime,")
append("status=$status,")
append("statusMessage=$statusMessage,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = endTime?.hashCode() ?: 0
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (lastUpdatedTime?.hashCode() ?: 0)
result = 31 * result + (properties?.hashCode() ?: 0)
result = 31 * result + (resourceArn?.hashCode() ?: 0)
result = 31 * result + (resourceId?.hashCode() ?: 0)
result = 31 * result + (resourceType?.hashCode() ?: 0)
result = 31 * result + (startTime?.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 Operation
if (endTime != other.endTime) return false
if (id != other.id) return false
if (lastUpdatedTime != other.lastUpdatedTime) return false
if (properties != other.properties) return false
if (resourceArn != other.resourceArn) return false
if (resourceId != other.resourceId) return false
if (resourceType != other.resourceType) return false
if (startTime != other.startTime) 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.Operation = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The end time of the operation.
*/
public var endTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The ID of the operation.
*/
public var id: kotlin.String? = null
/**
* The time at which the operation was last updated.
*/
public var lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The properties of the operation.
*/
public var properties: Map? = null
/**
* The Amazon Resource Name (ARN) of the operation.
*/
public var resourceArn: kotlin.String? = null
/**
* The resource ID of the operation.
*/
public var resourceId: kotlin.String? = null
/**
* The resource type of the operation.
*/
public var resourceType: kotlin.String? = null
/**
* The start time of the operation.
*/
public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The status of the operation.
*/
public var status: aws.sdk.kotlin.services.ssmsap.model.OperationStatus? = null
/**
* The status message of the operation.
*/
public var statusMessage: kotlin.String? = null
/**
* The type of the operation.
*/
public var type: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmsap.model.Operation) : this() {
this.endTime = x.endTime
this.id = x.id
this.lastUpdatedTime = x.lastUpdatedTime
this.properties = x.properties
this.resourceArn = x.resourceArn
this.resourceId = x.resourceId
this.resourceType = x.resourceType
this.startTime = x.startTime
this.status = x.status
this.statusMessage = x.statusMessage
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmsap.model.Operation = Operation(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy