commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.ReplicationSubnetGroup.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
/**
* Describes a subnet group in response to a request by the `DescribeReplicationSubnetGroups` operation.
*/
public class ReplicationSubnetGroup private constructor(builder: Builder) {
/**
* A description for the replication subnet group.
*/
public val replicationSubnetGroupDescription: kotlin.String? = builder.replicationSubnetGroupDescription
/**
* The identifier of the replication instance subnet group.
*/
public val replicationSubnetGroupIdentifier: kotlin.String? = builder.replicationSubnetGroupIdentifier
/**
* The status of the subnet group.
*/
public val subnetGroupStatus: kotlin.String? = builder.subnetGroupStatus
/**
* The subnets that are in the subnet group.
*/
public val subnets: List? = builder.subnets
/**
* The IP addressing protocol supported by the subnet group. This is used by a replication instance with values such as IPv4 only or Dual-stack that supports both IPv4 and IPv6 addressing. IPv6 only is not yet supported.
*/
public val supportedNetworkTypes: List? = builder.supportedNetworkTypes
/**
* The ID of the VPC.
*/
public val vpcId: kotlin.String? = builder.vpcId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databasemigrationservice.model.ReplicationSubnetGroup = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ReplicationSubnetGroup(")
append("replicationSubnetGroupDescription=$replicationSubnetGroupDescription,")
append("replicationSubnetGroupIdentifier=$replicationSubnetGroupIdentifier,")
append("subnetGroupStatus=$subnetGroupStatus,")
append("subnets=$subnets,")
append("supportedNetworkTypes=$supportedNetworkTypes,")
append("vpcId=$vpcId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = replicationSubnetGroupDescription?.hashCode() ?: 0
result = 31 * result + (replicationSubnetGroupIdentifier?.hashCode() ?: 0)
result = 31 * result + (subnetGroupStatus?.hashCode() ?: 0)
result = 31 * result + (subnets?.hashCode() ?: 0)
result = 31 * result + (supportedNetworkTypes?.hashCode() ?: 0)
result = 31 * result + (vpcId?.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 ReplicationSubnetGroup
if (replicationSubnetGroupDescription != other.replicationSubnetGroupDescription) return false
if (replicationSubnetGroupIdentifier != other.replicationSubnetGroupIdentifier) return false
if (subnetGroupStatus != other.subnetGroupStatus) return false
if (subnets != other.subnets) return false
if (supportedNetworkTypes != other.supportedNetworkTypes) return false
if (vpcId != other.vpcId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databasemigrationservice.model.ReplicationSubnetGroup = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A description for the replication subnet group.
*/
public var replicationSubnetGroupDescription: kotlin.String? = null
/**
* The identifier of the replication instance subnet group.
*/
public var replicationSubnetGroupIdentifier: kotlin.String? = null
/**
* The status of the subnet group.
*/
public var subnetGroupStatus: kotlin.String? = null
/**
* The subnets that are in the subnet group.
*/
public var subnets: List? = null
/**
* The IP addressing protocol supported by the subnet group. This is used by a replication instance with values such as IPv4 only or Dual-stack that supports both IPv4 and IPv6 addressing. IPv6 only is not yet supported.
*/
public var supportedNetworkTypes: List? = null
/**
* The ID of the VPC.
*/
public var vpcId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.ReplicationSubnetGroup) : this() {
this.replicationSubnetGroupDescription = x.replicationSubnetGroupDescription
this.replicationSubnetGroupIdentifier = x.replicationSubnetGroupIdentifier
this.subnetGroupStatus = x.subnetGroupStatus
this.subnets = x.subnets
this.supportedNetworkTypes = x.supportedNetworkTypes
this.vpcId = x.vpcId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databasemigrationservice.model.ReplicationSubnetGroup = ReplicationSubnetGroup(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy