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

commonMain.aws.sdk.kotlin.services.neptune.model.PendingModifiedValues.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.neptune.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * This data type is used as a response element in the ModifyDBInstance action.
 */
public class PendingModifiedValues private constructor(builder: Builder) {
    /**
     * Contains the new `AllocatedStorage` size for the DB instance that will be applied or is currently being applied.
     */
    public val allocatedStorage: kotlin.Int? = builder.allocatedStorage
    /**
     * Specifies the pending number of days for which automated backups are retained.
     */
    public val backupRetentionPeriod: kotlin.Int? = builder.backupRetentionPeriod
    /**
     * Specifies the identifier of the CA certificate for the DB instance.
     */
    public val caCertificateIdentifier: kotlin.String? = builder.caCertificateIdentifier
    /**
     * Contains the new `DBInstanceClass` for the DB instance that will be applied or is currently being applied.
     */
    public val dbInstanceClass: kotlin.String? = builder.dbInstanceClass
    /**
     * Contains the new `DBInstanceIdentifier` for the DB instance that will be applied or is currently being applied.
     */
    public val dbInstanceIdentifier: kotlin.String? = builder.dbInstanceIdentifier
    /**
     * The new DB subnet group for the DB instance.
     */
    public val dbSubnetGroupName: kotlin.String? = builder.dbSubnetGroupName
    /**
     * Indicates the database engine version.
     */
    public val engineVersion: kotlin.String? = builder.engineVersion
    /**
     * Specifies the new Provisioned IOPS value for the DB instance that will be applied or is currently being applied.
     */
    public val iops: kotlin.Int? = builder.iops
    /**
     * Not supported by Neptune.
     */
    public val licenseModel: kotlin.String? = builder.licenseModel
    /**
     * Not supported by Neptune.
     */
    public val masterUserPassword: kotlin.String? = builder.masterUserPassword
    /**
     * Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.
     */
    public val multiAz: kotlin.Boolean? = builder.multiAz
    /**
     * This `PendingCloudwatchLogsExports` structure specifies pending changes to which CloudWatch logs are enabled and which are disabled.
     */
    public val pendingCloudwatchLogsExports: aws.sdk.kotlin.services.neptune.model.PendingCloudwatchLogsExports? = builder.pendingCloudwatchLogsExports
    /**
     * Specifies the pending port for the DB instance.
     */
    public val port: kotlin.Int? = builder.port
    /**
     * Specifies the storage type to be associated with the DB instance.
     */
    public val storageType: kotlin.String? = builder.storageType

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

    override fun toString(): kotlin.String = buildString {
        append("PendingModifiedValues(")
        append("allocatedStorage=$allocatedStorage,")
        append("backupRetentionPeriod=$backupRetentionPeriod,")
        append("caCertificateIdentifier=$caCertificateIdentifier,")
        append("dbInstanceClass=$dbInstanceClass,")
        append("dbInstanceIdentifier=$dbInstanceIdentifier,")
        append("dbSubnetGroupName=$dbSubnetGroupName,")
        append("engineVersion=$engineVersion,")
        append("iops=$iops,")
        append("licenseModel=$licenseModel,")
        append("masterUserPassword=$masterUserPassword,")
        append("multiAz=$multiAz,")
        append("pendingCloudwatchLogsExports=$pendingCloudwatchLogsExports,")
        append("port=$port,")
        append("storageType=$storageType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = allocatedStorage ?: 0
        result = 31 * result + (backupRetentionPeriod ?: 0)
        result = 31 * result + (caCertificateIdentifier?.hashCode() ?: 0)
        result = 31 * result + (dbInstanceClass?.hashCode() ?: 0)
        result = 31 * result + (dbInstanceIdentifier?.hashCode() ?: 0)
        result = 31 * result + (dbSubnetGroupName?.hashCode() ?: 0)
        result = 31 * result + (engineVersion?.hashCode() ?: 0)
        result = 31 * result + (iops ?: 0)
        result = 31 * result + (licenseModel?.hashCode() ?: 0)
        result = 31 * result + (masterUserPassword?.hashCode() ?: 0)
        result = 31 * result + (multiAz?.hashCode() ?: 0)
        result = 31 * result + (pendingCloudwatchLogsExports?.hashCode() ?: 0)
        result = 31 * result + (port ?: 0)
        result = 31 * result + (storageType?.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 PendingModifiedValues

        if (allocatedStorage != other.allocatedStorage) return false
        if (backupRetentionPeriod != other.backupRetentionPeriod) return false
        if (caCertificateIdentifier != other.caCertificateIdentifier) return false
        if (dbInstanceClass != other.dbInstanceClass) return false
        if (dbInstanceIdentifier != other.dbInstanceIdentifier) return false
        if (dbSubnetGroupName != other.dbSubnetGroupName) return false
        if (engineVersion != other.engineVersion) return false
        if (iops != other.iops) return false
        if (licenseModel != other.licenseModel) return false
        if (masterUserPassword != other.masterUserPassword) return false
        if (multiAz != other.multiAz) return false
        if (pendingCloudwatchLogsExports != other.pendingCloudwatchLogsExports) return false
        if (port != other.port) return false
        if (storageType != other.storageType) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Contains the new `AllocatedStorage` size for the DB instance that will be applied or is currently being applied.
         */
        public var allocatedStorage: kotlin.Int? = null
        /**
         * Specifies the pending number of days for which automated backups are retained.
         */
        public var backupRetentionPeriod: kotlin.Int? = null
        /**
         * Specifies the identifier of the CA certificate for the DB instance.
         */
        public var caCertificateIdentifier: kotlin.String? = null
        /**
         * Contains the new `DBInstanceClass` for the DB instance that will be applied or is currently being applied.
         */
        public var dbInstanceClass: kotlin.String? = null
        /**
         * Contains the new `DBInstanceIdentifier` for the DB instance that will be applied or is currently being applied.
         */
        public var dbInstanceIdentifier: kotlin.String? = null
        /**
         * The new DB subnet group for the DB instance.
         */
        public var dbSubnetGroupName: kotlin.String? = null
        /**
         * Indicates the database engine version.
         */
        public var engineVersion: kotlin.String? = null
        /**
         * Specifies the new Provisioned IOPS value for the DB instance that will be applied or is currently being applied.
         */
        public var iops: kotlin.Int? = null
        /**
         * Not supported by Neptune.
         */
        public var licenseModel: kotlin.String? = null
        /**
         * Not supported by Neptune.
         */
        public var masterUserPassword: kotlin.String? = null
        /**
         * Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.
         */
        public var multiAz: kotlin.Boolean? = null
        /**
         * This `PendingCloudwatchLogsExports` structure specifies pending changes to which CloudWatch logs are enabled and which are disabled.
         */
        public var pendingCloudwatchLogsExports: aws.sdk.kotlin.services.neptune.model.PendingCloudwatchLogsExports? = null
        /**
         * Specifies the pending port for the DB instance.
         */
        public var port: kotlin.Int? = null
        /**
         * Specifies the storage type to be associated with the DB instance.
         */
        public var storageType: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.neptune.model.PendingModifiedValues) : this() {
            this.allocatedStorage = x.allocatedStorage
            this.backupRetentionPeriod = x.backupRetentionPeriod
            this.caCertificateIdentifier = x.caCertificateIdentifier
            this.dbInstanceClass = x.dbInstanceClass
            this.dbInstanceIdentifier = x.dbInstanceIdentifier
            this.dbSubnetGroupName = x.dbSubnetGroupName
            this.engineVersion = x.engineVersion
            this.iops = x.iops
            this.licenseModel = x.licenseModel
            this.masterUserPassword = x.masterUserPassword
            this.multiAz = x.multiAz
            this.pendingCloudwatchLogsExports = x.pendingCloudwatchLogsExports
            this.port = x.port
            this.storageType = x.storageType
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.neptune.model.PendingCloudwatchLogsExports] inside the given [block]
         */
        public fun pendingCloudwatchLogsExports(block: aws.sdk.kotlin.services.neptune.model.PendingCloudwatchLogsExports.Builder.() -> kotlin.Unit) {
            this.pendingCloudwatchLogsExports = aws.sdk.kotlin.services.neptune.model.PendingCloudwatchLogsExports.invoke(block)
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy