commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.ModifyReplicationSubnetGroupRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databasemigrationservice-jvm Show documentation
Show all versions of databasemigrationservice-jvm Show documentation
The AWS SDK for Kotlin client for Database Migration Service
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.databasemigrationservice.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
*
*/
public class ModifyReplicationSubnetGroupRequest private constructor(builder: Builder) {
/**
* A description for the replication instance subnet group.
*/
public val replicationSubnetGroupDescription: kotlin.String? = builder.replicationSubnetGroupDescription
/**
* The name of the replication instance subnet group.
*/
public val replicationSubnetGroupIdentifier: kotlin.String? = builder.replicationSubnetGroupIdentifier
/**
* A list of subnet IDs.
*/
public val subnetIds: List? = builder.subnetIds
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databasemigrationservice.model.ModifyReplicationSubnetGroupRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ModifyReplicationSubnetGroupRequest(")
append("replicationSubnetGroupDescription=$replicationSubnetGroupDescription,")
append("replicationSubnetGroupIdentifier=$replicationSubnetGroupIdentifier,")
append("subnetIds=$subnetIds")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = replicationSubnetGroupDescription?.hashCode() ?: 0
result = 31 * result + (replicationSubnetGroupIdentifier?.hashCode() ?: 0)
result = 31 * result + (subnetIds?.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 ModifyReplicationSubnetGroupRequest
if (replicationSubnetGroupDescription != other.replicationSubnetGroupDescription) return false
if (replicationSubnetGroupIdentifier != other.replicationSubnetGroupIdentifier) return false
if (subnetIds != other.subnetIds) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databasemigrationservice.model.ModifyReplicationSubnetGroupRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A description for the replication instance subnet group.
*/
public var replicationSubnetGroupDescription: kotlin.String? = null
/**
* The name of the replication instance subnet group.
*/
public var replicationSubnetGroupIdentifier: kotlin.String? = null
/**
* A list of subnet IDs.
*/
public var subnetIds: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.ModifyReplicationSubnetGroupRequest) : this() {
this.replicationSubnetGroupDescription = x.replicationSubnetGroupDescription
this.replicationSubnetGroupIdentifier = x.replicationSubnetGroupIdentifier
this.subnetIds = x.subnetIds
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databasemigrationservice.model.ModifyReplicationSubnetGroupRequest = ModifyReplicationSubnetGroupRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy