commonMain.aws.sdk.kotlin.services.redshift.model.ModifyClusterSubnetGroupRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redshift-jvm Show documentation
Show all versions of redshift-jvm Show documentation
The AWS SDK for Kotlin client for Redshift
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.redshift.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
*
*/
public class ModifyClusterSubnetGroupRequest private constructor(builder: Builder) {
/**
* The name of the subnet group to be modified.
*/
public val clusterSubnetGroupName: kotlin.String? = builder.clusterSubnetGroupName
/**
* A text description of the subnet group to be modified.
*/
public val description: kotlin.String? = builder.description
/**
* An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a single request.
*/
public val subnetIds: List? = builder.subnetIds
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshift.model.ModifyClusterSubnetGroupRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ModifyClusterSubnetGroupRequest(")
append("clusterSubnetGroupName=$clusterSubnetGroupName,")
append("description=$description,")
append("subnetIds=$subnetIds")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clusterSubnetGroupName?.hashCode() ?: 0
result = 31 * result + (description?.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 ModifyClusterSubnetGroupRequest
if (clusterSubnetGroupName != other.clusterSubnetGroupName) return false
if (description != other.description) return false
if (subnetIds != other.subnetIds) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshift.model.ModifyClusterSubnetGroupRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the subnet group to be modified.
*/
public var clusterSubnetGroupName: kotlin.String? = null
/**
* A text description of the subnet group to be modified.
*/
public var description: kotlin.String? = null
/**
* An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a single request.
*/
public var subnetIds: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshift.model.ModifyClusterSubnetGroupRequest) : this() {
this.clusterSubnetGroupName = x.clusterSubnetGroupName
this.description = x.description
this.subnetIds = x.subnetIds
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshift.model.ModifyClusterSubnetGroupRequest = ModifyClusterSubnetGroupRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}