commonMain.aws.sdk.kotlin.services.neptune.model.ApplyPendingMaintenanceActionRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neptune-jvm Show documentation
Show all versions of neptune-jvm Show documentation
The AWS SDK for Kotlin client for Neptune
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.neptune.model
import aws.smithy.kotlin.runtime.SdkDsl
public class ApplyPendingMaintenanceActionRequest private constructor(builder: Builder) {
/**
* The pending maintenance action to apply to this resource.
*
* Valid values: `system-update`, `db-upgrade`
*/
public val applyAction: kotlin.String? = builder.applyAction
/**
* A value that specifies the type of opt-in request, or undoes an opt-in request. An opt-in request of type `immediate` can't be undone.
*
* Valid values:
* + `immediate` - Apply the maintenance action immediately.
* + `next-maintenance` - Apply the maintenance action during the next maintenance window for the resource.
* + `undo-opt-in` - Cancel any existing `next-maintenance` opt-in requests.
*/
public val optInType: kotlin.String? = builder.optInType
/**
* The Amazon Resource Name (ARN) of the resource that the pending maintenance action applies to. For information about creating an ARN, see [ Constructing an Amazon Resource Name (ARN)](https://docs.aws.amazon.com/neptune/latest/UserGuide/tagging.ARN.html#tagging.ARN.Constructing).
*/
public val resourceIdentifier: kotlin.String? = builder.resourceIdentifier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptune.model.ApplyPendingMaintenanceActionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ApplyPendingMaintenanceActionRequest(")
append("applyAction=$applyAction,")
append("optInType=$optInType,")
append("resourceIdentifier=$resourceIdentifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applyAction?.hashCode() ?: 0
result = 31 * result + (optInType?.hashCode() ?: 0)
result = 31 * result + (resourceIdentifier?.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 ApplyPendingMaintenanceActionRequest
if (applyAction != other.applyAction) return false
if (optInType != other.optInType) return false
if (resourceIdentifier != other.resourceIdentifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.neptune.model.ApplyPendingMaintenanceActionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The pending maintenance action to apply to this resource.
*
* Valid values: `system-update`, `db-upgrade`
*/
public var applyAction: kotlin.String? = null
/**
* A value that specifies the type of opt-in request, or undoes an opt-in request. An opt-in request of type `immediate` can't be undone.
*
* Valid values:
* + `immediate` - Apply the maintenance action immediately.
* + `next-maintenance` - Apply the maintenance action during the next maintenance window for the resource.
* + `undo-opt-in` - Cancel any existing `next-maintenance` opt-in requests.
*/
public var optInType: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the resource that the pending maintenance action applies to. For information about creating an ARN, see [ Constructing an Amazon Resource Name (ARN)](https://docs.aws.amazon.com/neptune/latest/UserGuide/tagging.ARN.html#tagging.ARN.Constructing).
*/
public var resourceIdentifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptune.model.ApplyPendingMaintenanceActionRequest) : this() {
this.applyAction = x.applyAction
this.optInType = x.optInType
this.resourceIdentifier = x.resourceIdentifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptune.model.ApplyPendingMaintenanceActionRequest = ApplyPendingMaintenanceActionRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}