commonMain.aws.sdk.kotlin.services.nimble.model.StreamingSessionBackup.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nimble-jvm Show documentation
Show all versions of nimble-jvm Show documentation
The AWS SDK for Kotlin client for nimble
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.nimble.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Information about the streaming session backup.
*/
public class StreamingSessionBackup private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) that is assigned to a studio resource and uniquely identifies it. ARNs are unique across all Regions.
*/
public val arn: kotlin.String? = builder.arn
/**
* The ID of the backup.
*/
public val backupId: kotlin.String? = builder.backupId
/**
* The ISO timestamp in for when the resource was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The ID of the launch profile which allowed the backups for the streaming session.
*/
public val launchProfileId: kotlin.String? = builder.launchProfileId
/**
* The user ID of the user that owns the streaming session.
*/
public val ownedBy: kotlin.String? = builder.ownedBy
/**
* The streaming session ID for the `StreamingSessionBackup`.
*/
public val sessionId: kotlin.String? = builder.sessionId
/**
* The streaming session state.
*/
public val state: aws.sdk.kotlin.services.nimble.model.StreamingSessionState? = builder.state
/**
* The status code.
*/
public val statusCode: aws.sdk.kotlin.services.nimble.model.StreamingSessionStatusCode? = builder.statusCode
/**
* The status message for the streaming session backup.
*/
public val statusMessage: kotlin.String? = builder.statusMessage
/**
* A collection of labels, in the form of key-value pairs, that apply to this resource.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.nimble.model.StreamingSessionBackup = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StreamingSessionBackup(")
append("arn=$arn,")
append("backupId=$backupId,")
append("createdAt=$createdAt,")
append("launchProfileId=$launchProfileId,")
append("ownedBy=$ownedBy,")
append("sessionId=$sessionId,")
append("state=$state,")
append("statusCode=$statusCode,")
append("statusMessage=$statusMessage,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (backupId?.hashCode() ?: 0)
result = 31 * result + (createdAt?.hashCode() ?: 0)
result = 31 * result + (launchProfileId?.hashCode() ?: 0)
result = 31 * result + (ownedBy?.hashCode() ?: 0)
result = 31 * result + (sessionId?.hashCode() ?: 0)
result = 31 * result + (state?.hashCode() ?: 0)
result = 31 * result + (statusCode?.hashCode() ?: 0)
result = 31 * result + (statusMessage?.hashCode() ?: 0)
result = 31 * result + (tags?.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 StreamingSessionBackup
if (arn != other.arn) return false
if (backupId != other.backupId) return false
if (createdAt != other.createdAt) return false
if (launchProfileId != other.launchProfileId) return false
if (ownedBy != other.ownedBy) return false
if (sessionId != other.sessionId) return false
if (state != other.state) return false
if (statusCode != other.statusCode) return false
if (statusMessage != other.statusMessage) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.nimble.model.StreamingSessionBackup = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) that is assigned to a studio resource and uniquely identifies it. ARNs are unique across all Regions.
*/
public var arn: kotlin.String? = null
/**
* The ID of the backup.
*/
public var backupId: kotlin.String? = null
/**
* The ISO timestamp in for when the resource was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The ID of the launch profile which allowed the backups for the streaming session.
*/
public var launchProfileId: kotlin.String? = null
/**
* The user ID of the user that owns the streaming session.
*/
public var ownedBy: kotlin.String? = null
/**
* The streaming session ID for the `StreamingSessionBackup`.
*/
public var sessionId: kotlin.String? = null
/**
* The streaming session state.
*/
public var state: aws.sdk.kotlin.services.nimble.model.StreamingSessionState? = null
/**
* The status code.
*/
public var statusCode: aws.sdk.kotlin.services.nimble.model.StreamingSessionStatusCode? = null
/**
* The status message for the streaming session backup.
*/
public var statusMessage: kotlin.String? = null
/**
* A collection of labels, in the form of key-value pairs, that apply to this resource.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.nimble.model.StreamingSessionBackup) : this() {
this.arn = x.arn
this.backupId = x.backupId
this.createdAt = x.createdAt
this.launchProfileId = x.launchProfileId
this.ownedBy = x.ownedBy
this.sessionId = x.sessionId
this.state = x.state
this.statusCode = x.statusCode
this.statusMessage = x.statusMessage
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.nimble.model.StreamingSessionBackup = StreamingSessionBackup(this)
internal fun correctErrors(): Builder {
return this
}
}
}