commonMain.aws.sdk.kotlin.services.ebs.model.StartSnapshotResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ebs-jvm Show documentation
Show all versions of ebs-jvm Show documentation
The AWS Kotlin client for EBS
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ebs.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class StartSnapshotResponse private constructor(builder: Builder) {
/**
* The size of the blocks in the snapshot, in bytes.
*/
public val blockSize: kotlin.Int? = builder.blockSize
/**
* The description of the snapshot.
*/
public val description: kotlin.String? = builder.description
/**
* The Amazon Resource Name (ARN) of the Key Management Service (KMS) key used to encrypt the snapshot.
*/
public val kmsKeyArn: kotlin.String? = builder.kmsKeyArn
/**
* The Amazon Web Services account ID of the snapshot owner.
*/
public val ownerId: kotlin.String? = builder.ownerId
/**
* The ID of the parent snapshot.
*/
public val parentSnapshotId: kotlin.String? = builder.parentSnapshotId
/**
* The ID of the snapshot.
*/
public val snapshotId: kotlin.String? = builder.snapshotId
/**
* Reserved for future use.
*/
public val sseType: aws.sdk.kotlin.services.ebs.model.SseType? = builder.sseType
/**
* The timestamp when the snapshot was created.
*/
public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
/**
* The status of the snapshot.
*/
public val status: aws.sdk.kotlin.services.ebs.model.Status? = builder.status
/**
* The tags applied to the snapshot. You can specify up to 50 tags per snapshot. For more information, see [ Tagging your Amazon EC2 resources](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) in the *Amazon Elastic Compute Cloud User Guide*.
*/
public val tags: List? = builder.tags
/**
* The size of the volume, in GiB.
*/
public val volumeSize: kotlin.Long? = builder.volumeSize
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ebs.model.StartSnapshotResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartSnapshotResponse(")
append("blockSize=$blockSize,")
append("description=$description,")
append("kmsKeyArn=*** Sensitive Data Redacted ***,")
append("ownerId=$ownerId,")
append("parentSnapshotId=$parentSnapshotId,")
append("snapshotId=$snapshotId,")
append("sseType=$sseType,")
append("startTime=$startTime,")
append("status=$status,")
append("tags=$tags,")
append("volumeSize=$volumeSize")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = blockSize ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (kmsKeyArn?.hashCode() ?: 0)
result = 31 * result + (ownerId?.hashCode() ?: 0)
result = 31 * result + (parentSnapshotId?.hashCode() ?: 0)
result = 31 * result + (snapshotId?.hashCode() ?: 0)
result = 31 * result + (sseType?.hashCode() ?: 0)
result = 31 * result + (startTime?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (volumeSize?.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 StartSnapshotResponse
if (blockSize != other.blockSize) return false
if (description != other.description) return false
if (kmsKeyArn != other.kmsKeyArn) return false
if (ownerId != other.ownerId) return false
if (parentSnapshotId != other.parentSnapshotId) return false
if (snapshotId != other.snapshotId) return false
if (sseType != other.sseType) return false
if (startTime != other.startTime) return false
if (status != other.status) return false
if (tags != other.tags) return false
if (volumeSize != other.volumeSize) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ebs.model.StartSnapshotResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The size of the blocks in the snapshot, in bytes.
*/
public var blockSize: kotlin.Int? = null
/**
* The description of the snapshot.
*/
public var description: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the Key Management Service (KMS) key used to encrypt the snapshot.
*/
public var kmsKeyArn: kotlin.String? = null
/**
* The Amazon Web Services account ID of the snapshot owner.
*/
public var ownerId: kotlin.String? = null
/**
* The ID of the parent snapshot.
*/
public var parentSnapshotId: kotlin.String? = null
/**
* The ID of the snapshot.
*/
public var snapshotId: kotlin.String? = null
/**
* Reserved for future use.
*/
public var sseType: aws.sdk.kotlin.services.ebs.model.SseType? = null
/**
* The timestamp when the snapshot was created.
*/
public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The status of the snapshot.
*/
public var status: aws.sdk.kotlin.services.ebs.model.Status? = null
/**
* The tags applied to the snapshot. You can specify up to 50 tags per snapshot. For more information, see [ Tagging your Amazon EC2 resources](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) in the *Amazon Elastic Compute Cloud User Guide*.
*/
public var tags: List? = null
/**
* The size of the volume, in GiB.
*/
public var volumeSize: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ebs.model.StartSnapshotResponse) : this() {
this.blockSize = x.blockSize
this.description = x.description
this.kmsKeyArn = x.kmsKeyArn
this.ownerId = x.ownerId
this.parentSnapshotId = x.parentSnapshotId
this.snapshotId = x.snapshotId
this.sseType = x.sseType
this.startTime = x.startTime
this.status = x.status
this.tags = x.tags
this.volumeSize = x.volumeSize
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ebs.model.StartSnapshotResponse = StartSnapshotResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}