commonMain.aws.sdk.kotlin.services.route53domains.model.OperationSummary.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of route53domains-jvm Show documentation
Show all versions of route53domains-jvm Show documentation
The AWS SDK for Kotlin client for Route 53 Domains
// 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
/**
* OperationSummary includes the following elements.
*/
public class OperationSummary private constructor(builder: Builder) {
/**
* Name of the domain.
*/
public val domainName: kotlin.String? = builder.domainName
/**
* The date when the last change was made in Unix time format and Coordinated Universal Time (UTC).
*/
public val lastUpdatedDate: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedDate
/**
* Message about the operation.
*/
public val message: kotlin.String? = builder.message
/**
* Identifier returned to track the requested action.
*/
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
/**
* Automatically checks whether there are no outstanding operations on domains that need customer attention.
*
* 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
/**
* Type of the action 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.OperationSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("OperationSummary(")
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 OperationSummary
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.OperationSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Name of the domain.
*/
public var domainName: kotlin.String? = null
/**
* The date when the last change was made in Unix time format and Coordinated Universal Time (UTC).
*/
public var lastUpdatedDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Message about the operation.
*/
public var message: kotlin.String? = null
/**
* Identifier returned to track the requested action.
*/
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
/**
* Automatically checks whether there are no outstanding operations on domains that need customer attention.
*
* 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
/**
* Type of the action 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.OperationSummary) : 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.OperationSummary = OperationSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}