commonMain.aws.sdk.kotlin.services.neptune.model.CopyDbClusterParameterGroupRequest.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 CopyDbClusterParameterGroupRequest private constructor(builder: Builder) {
/**
* The identifier or Amazon Resource Name (ARN) for the source DB cluster 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 cluster parameter group.
* + If the source DB cluster parameter group is in the same Amazon Region as the copy, specify a valid DB parameter group identifier, for example `my-db-cluster-param-group`, or a valid ARN.
* + If the source DB parameter group is in a different Amazon Region than the copy, specify a valid DB cluster parameter group ARN, for example `arn:aws:rds:us-east-1:123456789012:cluster-pg:custom-cluster-group1`.
*/
public val sourceDbClusterParameterGroupIdentifier: kotlin.String? = builder.sourceDbClusterParameterGroupIdentifier
/**
* The tags to be assigned to the copied DB cluster parameter group.
*/
public val tags: List? = builder.tags
/**
* A description for the copied DB cluster parameter group.
*/
public val targetDbClusterParameterGroupDescription: kotlin.String? = builder.targetDbClusterParameterGroupDescription
/**
* The identifier for the copied DB cluster 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-cluster-param-group1`
*/
public val targetDbClusterParameterGroupIdentifier: kotlin.String? = builder.targetDbClusterParameterGroupIdentifier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.neptune.model.CopyDbClusterParameterGroupRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CopyDbClusterParameterGroupRequest(")
append("sourceDbClusterParameterGroupIdentifier=$sourceDbClusterParameterGroupIdentifier,")
append("tags=$tags,")
append("targetDbClusterParameterGroupDescription=$targetDbClusterParameterGroupDescription,")
append("targetDbClusterParameterGroupIdentifier=$targetDbClusterParameterGroupIdentifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = sourceDbClusterParameterGroupIdentifier?.hashCode() ?: 0
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (targetDbClusterParameterGroupDescription?.hashCode() ?: 0)
result = 31 * result + (targetDbClusterParameterGroupIdentifier?.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 CopyDbClusterParameterGroupRequest
if (sourceDbClusterParameterGroupIdentifier != other.sourceDbClusterParameterGroupIdentifier) return false
if (tags != other.tags) return false
if (targetDbClusterParameterGroupDescription != other.targetDbClusterParameterGroupDescription) return false
if (targetDbClusterParameterGroupIdentifier != other.targetDbClusterParameterGroupIdentifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.neptune.model.CopyDbClusterParameterGroupRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The identifier or Amazon Resource Name (ARN) for the source DB cluster 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 cluster parameter group.
* + If the source DB cluster parameter group is in the same Amazon Region as the copy, specify a valid DB parameter group identifier, for example `my-db-cluster-param-group`, or a valid ARN.
* + If the source DB parameter group is in a different Amazon Region than the copy, specify a valid DB cluster parameter group ARN, for example `arn:aws:rds:us-east-1:123456789012:cluster-pg:custom-cluster-group1`.
*/
public var sourceDbClusterParameterGroupIdentifier: kotlin.String? = null
/**
* The tags to be assigned to the copied DB cluster parameter group.
*/
public var tags: List? = null
/**
* A description for the copied DB cluster parameter group.
*/
public var targetDbClusterParameterGroupDescription: kotlin.String? = null
/**
* The identifier for the copied DB cluster 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-cluster-param-group1`
*/
public var targetDbClusterParameterGroupIdentifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.neptune.model.CopyDbClusterParameterGroupRequest) : this() {
this.sourceDbClusterParameterGroupIdentifier = x.sourceDbClusterParameterGroupIdentifier
this.tags = x.tags
this.targetDbClusterParameterGroupDescription = x.targetDbClusterParameterGroupDescription
this.targetDbClusterParameterGroupIdentifier = x.targetDbClusterParameterGroupIdentifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.neptune.model.CopyDbClusterParameterGroupRequest = CopyDbClusterParameterGroupRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}