commonMain.aws.sdk.kotlin.services.cloudtrail.model.GetImportResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudtrail-jvm Show documentation
Show all versions of cloudtrail-jvm Show documentation
The AWS SDK for Kotlin client for CloudTrail
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudtrail.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class GetImportResponse private constructor(builder: Builder) {
/**
* The timestamp of the import's creation.
*/
public val createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTimestamp
/**
* The ARN of the destination event data store.
*/
public val destinations: List? = builder.destinations
/**
* Used with `StartEventTime` to bound a `StartImport` request, and limit imported trail events to only those events logged within a specified time period.
*/
public val endEventTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endEventTime
/**
* The ID of the import.
*/
public val importId: kotlin.String? = builder.importId
/**
* The source S3 bucket.
*/
public val importSource: aws.sdk.kotlin.services.cloudtrail.model.ImportSource? = builder.importSource
/**
* Provides statistics for the import. CloudTrail does not update import statistics in real-time. Returned values for parameters such as `EventsCompleted` may be lower than the actual value, because CloudTrail updates statistics incrementally over the course of the import.
*/
public val importStatistics: aws.sdk.kotlin.services.cloudtrail.model.ImportStatistics? = builder.importStatistics
/**
* The status of the import.
*/
public val importStatus: aws.sdk.kotlin.services.cloudtrail.model.ImportStatus? = builder.importStatus
/**
* Used with `EndEventTime` to bound a `StartImport` request, and limit imported trail events to only those events logged within a specified time period.
*/
public val startEventTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startEventTime
/**
* The timestamp of when the import was updated.
*/
public val updatedTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedTimestamp
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudtrail.model.GetImportResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetImportResponse(")
append("createdTimestamp=$createdTimestamp,")
append("destinations=$destinations,")
append("endEventTime=$endEventTime,")
append("importId=$importId,")
append("importSource=$importSource,")
append("importStatistics=$importStatistics,")
append("importStatus=$importStatus,")
append("startEventTime=$startEventTime,")
append("updatedTimestamp=$updatedTimestamp")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdTimestamp?.hashCode() ?: 0
result = 31 * result + (destinations?.hashCode() ?: 0)
result = 31 * result + (endEventTime?.hashCode() ?: 0)
result = 31 * result + (importId?.hashCode() ?: 0)
result = 31 * result + (importSource?.hashCode() ?: 0)
result = 31 * result + (importStatistics?.hashCode() ?: 0)
result = 31 * result + (importStatus?.hashCode() ?: 0)
result = 31 * result + (startEventTime?.hashCode() ?: 0)
result = 31 * result + (updatedTimestamp?.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 GetImportResponse
if (createdTimestamp != other.createdTimestamp) return false
if (destinations != other.destinations) return false
if (endEventTime != other.endEventTime) return false
if (importId != other.importId) return false
if (importSource != other.importSource) return false
if (importStatistics != other.importStatistics) return false
if (importStatus != other.importStatus) return false
if (startEventTime != other.startEventTime) return false
if (updatedTimestamp != other.updatedTimestamp) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudtrail.model.GetImportResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The timestamp of the import's creation.
*/
public var createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The ARN of the destination event data store.
*/
public var destinations: List? = null
/**
* Used with `StartEventTime` to bound a `StartImport` request, and limit imported trail events to only those events logged within a specified time period.
*/
public var endEventTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The ID of the import.
*/
public var importId: kotlin.String? = null
/**
* The source S3 bucket.
*/
public var importSource: aws.sdk.kotlin.services.cloudtrail.model.ImportSource? = null
/**
* Provides statistics for the import. CloudTrail does not update import statistics in real-time. Returned values for parameters such as `EventsCompleted` may be lower than the actual value, because CloudTrail updates statistics incrementally over the course of the import.
*/
public var importStatistics: aws.sdk.kotlin.services.cloudtrail.model.ImportStatistics? = null
/**
* The status of the import.
*/
public var importStatus: aws.sdk.kotlin.services.cloudtrail.model.ImportStatus? = null
/**
* Used with `EndEventTime` to bound a `StartImport` request, and limit imported trail events to only those events logged within a specified time period.
*/
public var startEventTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The timestamp of when the import was updated.
*/
public var updatedTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudtrail.model.GetImportResponse) : this() {
this.createdTimestamp = x.createdTimestamp
this.destinations = x.destinations
this.endEventTime = x.endEventTime
this.importId = x.importId
this.importSource = x.importSource
this.importStatistics = x.importStatistics
this.importStatus = x.importStatus
this.startEventTime = x.startEventTime
this.updatedTimestamp = x.updatedTimestamp
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudtrail.model.GetImportResponse = GetImportResponse(this)
/**
* construct an [aws.sdk.kotlin.services.cloudtrail.model.ImportSource] inside the given [block]
*/
public fun importSource(block: aws.sdk.kotlin.services.cloudtrail.model.ImportSource.Builder.() -> kotlin.Unit) {
this.importSource = aws.sdk.kotlin.services.cloudtrail.model.ImportSource.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.cloudtrail.model.ImportStatistics] inside the given [block]
*/
public fun importStatistics(block: aws.sdk.kotlin.services.cloudtrail.model.ImportStatistics.Builder.() -> kotlin.Unit) {
this.importStatistics = aws.sdk.kotlin.services.cloudtrail.model.ImportStatistics.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}