
commonMain.aws.sdk.kotlin.services.cognitosync.model.GetBulkPublishDetailsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cognitosync.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* The output for the GetBulkPublishDetails operation.
*/
public class GetBulkPublishDetailsResponse private constructor(builder: Builder) {
/**
* If BulkPublishStatus is SUCCEEDED, the time the last bulk publish operation completed.
*/
public val bulkPublishCompleteTime: aws.smithy.kotlin.runtime.time.Instant? = builder.bulkPublishCompleteTime
/**
* The date/time at which the last bulk publish was initiated.
*/
public val bulkPublishStartTime: aws.smithy.kotlin.runtime.time.Instant? = builder.bulkPublishStartTime
/**
* Status of the last bulk publish operation, valid values are: NOT_STARTED - No bulk publish has been requested for this identity pool
*
* IN_PROGRESS - Data is being published to the configured stream
*
* SUCCEEDED - All data for the identity pool has been published to the configured stream
*
* FAILED - Some portion of the data has failed to publish, check FailureMessage for the cause.
*/
public val bulkPublishStatus: aws.sdk.kotlin.services.cognitosync.model.BulkPublishStatus? = builder.bulkPublishStatus
/**
* If BulkPublishStatus is FAILED this field will contain the error message that caused the bulk publish to fail.
*/
public val failureMessage: kotlin.String? = builder.failureMessage
/**
* A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
*/
public val identityPoolId: kotlin.String? = builder.identityPoolId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cognitosync.model.GetBulkPublishDetailsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetBulkPublishDetailsResponse(")
append("bulkPublishCompleteTime=$bulkPublishCompleteTime,")
append("bulkPublishStartTime=$bulkPublishStartTime,")
append("bulkPublishStatus=$bulkPublishStatus,")
append("failureMessage=$failureMessage,")
append("identityPoolId=$identityPoolId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = bulkPublishCompleteTime?.hashCode() ?: 0
result = 31 * result + (bulkPublishStartTime?.hashCode() ?: 0)
result = 31 * result + (bulkPublishStatus?.hashCode() ?: 0)
result = 31 * result + (failureMessage?.hashCode() ?: 0)
result = 31 * result + (identityPoolId?.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 GetBulkPublishDetailsResponse
if (bulkPublishCompleteTime != other.bulkPublishCompleteTime) return false
if (bulkPublishStartTime != other.bulkPublishStartTime) return false
if (bulkPublishStatus != other.bulkPublishStatus) return false
if (failureMessage != other.failureMessage) return false
if (identityPoolId != other.identityPoolId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cognitosync.model.GetBulkPublishDetailsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* If BulkPublishStatus is SUCCEEDED, the time the last bulk publish operation completed.
*/
public var bulkPublishCompleteTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The date/time at which the last bulk publish was initiated.
*/
public var bulkPublishStartTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Status of the last bulk publish operation, valid values are: NOT_STARTED - No bulk publish has been requested for this identity pool
*
* IN_PROGRESS - Data is being published to the configured stream
*
* SUCCEEDED - All data for the identity pool has been published to the configured stream
*
* FAILED - Some portion of the data has failed to publish, check FailureMessage for the cause.
*/
public var bulkPublishStatus: aws.sdk.kotlin.services.cognitosync.model.BulkPublishStatus? = null
/**
* If BulkPublishStatus is FAILED this field will contain the error message that caused the bulk publish to fail.
*/
public var failureMessage: kotlin.String? = null
/**
* A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
*/
public var identityPoolId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cognitosync.model.GetBulkPublishDetailsResponse) : this() {
this.bulkPublishCompleteTime = x.bulkPublishCompleteTime
this.bulkPublishStartTime = x.bulkPublishStartTime
this.bulkPublishStatus = x.bulkPublishStatus
this.failureMessage = x.failureMessage
this.identityPoolId = x.identityPoolId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cognitosync.model.GetBulkPublishDetailsResponse = GetBulkPublishDetailsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy