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

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

public class CopyDbParameterGroupRequest private constructor(builder: Builder) {
    /**
     * The identifier or ARN for the source DB parameter group. 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).
     *
     * Constraints:
     * + Must specify a valid DB parameter group.
     * + Must specify a valid DB parameter group identifier, for example `my-db-param-group`, or a valid ARN.
     */
    public val sourceDbParameterGroupIdentifier: kotlin.String? = builder.sourceDbParameterGroupIdentifier
    /**
     * The tags to be assigned to the copied DB parameter group.
     */
    public val tags: List? = builder.tags
    /**
     * A description for the copied DB parameter group.
     */
    public val targetDbParameterGroupDescription: kotlin.String? = builder.targetDbParameterGroupDescription
    /**
     * The identifier for the copied DB parameter group.
     *
     * Constraints:
     * + Cannot be null, empty, or blank.
     * + Must contain from 1 to 255 letters, numbers, or hyphens.
     * + First character must be a letter.
     * + Cannot end with a hyphen or contain two consecutive hyphens.
     *
     * Example: `my-db-parameter-group`
     */
    public val targetDbParameterGroupIdentifier: kotlin.String? = builder.targetDbParameterGroupIdentifier

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

    override fun toString(): kotlin.String = buildString {
        append("CopyDbParameterGroupRequest(")
        append("sourceDbParameterGroupIdentifier=$sourceDbParameterGroupIdentifier,")
        append("tags=$tags,")
        append("targetDbParameterGroupDescription=$targetDbParameterGroupDescription,")
        append("targetDbParameterGroupIdentifier=$targetDbParameterGroupIdentifier")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = sourceDbParameterGroupIdentifier?.hashCode() ?: 0
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (targetDbParameterGroupDescription?.hashCode() ?: 0)
        result = 31 * result + (targetDbParameterGroupIdentifier?.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 CopyDbParameterGroupRequest

        if (sourceDbParameterGroupIdentifier != other.sourceDbParameterGroupIdentifier) return false
        if (tags != other.tags) return false
        if (targetDbParameterGroupDescription != other.targetDbParameterGroupDescription) return false
        if (targetDbParameterGroupIdentifier != other.targetDbParameterGroupIdentifier) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The identifier or ARN for the source DB parameter group. 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).
         *
         * Constraints:
         * + Must specify a valid DB parameter group.
         * + Must specify a valid DB parameter group identifier, for example `my-db-param-group`, or a valid ARN.
         */
        public var sourceDbParameterGroupIdentifier: kotlin.String? = null
        /**
         * The tags to be assigned to the copied DB parameter group.
         */
        public var tags: List? = null
        /**
         * A description for the copied DB parameter group.
         */
        public var targetDbParameterGroupDescription: kotlin.String? = null
        /**
         * The identifier for the copied DB parameter group.
         *
         * Constraints:
         * + Cannot be null, empty, or blank.
         * + Must contain from 1 to 255 letters, numbers, or hyphens.
         * + First character must be a letter.
         * + Cannot end with a hyphen or contain two consecutive hyphens.
         *
         * Example: `my-db-parameter-group`
         */
        public var targetDbParameterGroupIdentifier: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.neptune.model.CopyDbParameterGroupRequest) : this() {
            this.sourceDbParameterGroupIdentifier = x.sourceDbParameterGroupIdentifier
            this.tags = x.tags
            this.targetDbParameterGroupDescription = x.targetDbParameterGroupDescription
            this.targetDbParameterGroupIdentifier = x.targetDbParameterGroupIdentifier
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy