All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.route53domains.model.GetOperationDetailResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.route53domains.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

/**
 * The GetOperationDetail response includes the following elements.
 */
public class GetOperationDetailResponse private constructor(builder: Builder) {
    /**
     * The name of a domain.
     */
    public val domainName: kotlin.String? = builder.domainName
    /**
     * The date when the operation was last updated.
     */
    public val lastUpdatedDate: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedDate
    /**
     * Detailed information on the status including possible errors.
     */
    public val message: kotlin.String? = builder.message
    /**
     * The identifier for the operation.
     */
    public val operationId: kotlin.String? = builder.operationId
    /**
     * The current status of the requested operation in the system.
     */
    public val status: aws.sdk.kotlin.services.route53domains.model.OperationStatus? = builder.status
    /**
     * Lists any outstanding operations that require customer action. Valid values are:
     * + `PENDING_ACCEPTANCE`: The operation is waiting for acceptance from the account that is receiving the domain.
     * + `PENDING_CUSTOMER_ACTION`: The operation is waiting for customer action, for example, returning an email.
     * + `PENDING_AUTHORIZATION`: The operation is waiting for the form of authorization. For more information, see [ResendOperationAuthorization](https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ResendOperationAuthorization.html).
     * + `PENDING_PAYMENT_VERIFICATION`: The operation is waiting for the payment method to validate.
     * + `PENDING_SUPPORT_CASE`: The operation includes a support case and is waiting for its resolution.
     */
    public val statusFlag: aws.sdk.kotlin.services.route53domains.model.StatusFlag? = builder.statusFlag
    /**
     * The date when the request was submitted.
     */
    public val submittedDate: aws.smithy.kotlin.runtime.time.Instant? = builder.submittedDate
    /**
     * The type of operation that was requested.
     */
    public val type: aws.sdk.kotlin.services.route53domains.model.OperationType? = builder.type

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53domains.model.GetOperationDetailResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("GetOperationDetailResponse(")
        append("domainName=$domainName,")
        append("lastUpdatedDate=$lastUpdatedDate,")
        append("message=$message,")
        append("operationId=$operationId,")
        append("status=$status,")
        append("statusFlag=$statusFlag,")
        append("submittedDate=$submittedDate,")
        append("type=$type")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = domainName?.hashCode() ?: 0
        result = 31 * result + (lastUpdatedDate?.hashCode() ?: 0)
        result = 31 * result + (message?.hashCode() ?: 0)
        result = 31 * result + (operationId?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (statusFlag?.hashCode() ?: 0)
        result = 31 * result + (submittedDate?.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 GetOperationDetailResponse

        if (domainName != other.domainName) return false
        if (lastUpdatedDate != other.lastUpdatedDate) return false
        if (message != other.message) return false
        if (operationId != other.operationId) return false
        if (status != other.status) return false
        if (statusFlag != other.statusFlag) return false
        if (submittedDate != other.submittedDate) return false
        if (type != other.type) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53domains.model.GetOperationDetailResponse = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The name of a domain.
         */
        public var domainName: kotlin.String? = null
        /**
         * The date when the operation was last updated.
         */
        public var lastUpdatedDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * Detailed information on the status including possible errors.
         */
        public var message: kotlin.String? = null
        /**
         * The identifier for the operation.
         */
        public var operationId: kotlin.String? = null
        /**
         * The current status of the requested operation in the system.
         */
        public var status: aws.sdk.kotlin.services.route53domains.model.OperationStatus? = null
        /**
         * Lists any outstanding operations that require customer action. Valid values are:
         * + `PENDING_ACCEPTANCE`: The operation is waiting for acceptance from the account that is receiving the domain.
         * + `PENDING_CUSTOMER_ACTION`: The operation is waiting for customer action, for example, returning an email.
         * + `PENDING_AUTHORIZATION`: The operation is waiting for the form of authorization. For more information, see [ResendOperationAuthorization](https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ResendOperationAuthorization.html).
         * + `PENDING_PAYMENT_VERIFICATION`: The operation is waiting for the payment method to validate.
         * + `PENDING_SUPPORT_CASE`: The operation includes a support case and is waiting for its resolution.
         */
        public var statusFlag: aws.sdk.kotlin.services.route53domains.model.StatusFlag? = null
        /**
         * The date when the request was submitted.
         */
        public var submittedDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The type of operation that was requested.
         */
        public var type: aws.sdk.kotlin.services.route53domains.model.OperationType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.route53domains.model.GetOperationDetailResponse) : this() {
            this.domainName = x.domainName
            this.lastUpdatedDate = x.lastUpdatedDate
            this.message = x.message
            this.operationId = x.operationId
            this.status = x.status
            this.statusFlag = x.statusFlag
            this.submittedDate = x.submittedDate
            this.type = x.type
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.route53domains.model.GetOperationDetailResponse = GetOperationDetailResponse(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy