
commonMain.aws.sdk.kotlin.services.opensearchserverless.model.UpdateVpcEndpointRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearchserverless.model
public class UpdateVpcEndpointRequest private constructor(builder: Builder) {
/**
* The unique identifiers of the security groups to add to the endpoint. Security groups define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
*/
public val addSecurityGroupIds: List? = builder.addSecurityGroupIds
/**
* The ID of one or more subnets to add to the endpoint.
*/
public val addSubnetIds: List? = builder.addSubnetIds
/**
* Unique, case-sensitive identifier to ensure idempotency of the request.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The unique identifier of the interface endpoint to update.
*/
public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
/**
* The unique identifiers of the security groups to remove from the endpoint.
*/
public val removeSecurityGroupIds: List? = builder.removeSecurityGroupIds
/**
* The unique identifiers of the subnets to remove from the endpoint.
*/
public val removeSubnetIds: List? = builder.removeSubnetIds
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearchserverless.model.UpdateVpcEndpointRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateVpcEndpointRequest(")
append("addSecurityGroupIds=$addSecurityGroupIds,")
append("addSubnetIds=$addSubnetIds,")
append("clientToken=$clientToken,")
append("id=$id,")
append("removeSecurityGroupIds=$removeSecurityGroupIds,")
append("removeSubnetIds=$removeSubnetIds")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = addSecurityGroupIds?.hashCode() ?: 0
result = 31 * result + (addSubnetIds?.hashCode() ?: 0)
result = 31 * result + (clientToken?.hashCode() ?: 0)
result = 31 * result + (id.hashCode())
result = 31 * result + (removeSecurityGroupIds?.hashCode() ?: 0)
result = 31 * result + (removeSubnetIds?.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 UpdateVpcEndpointRequest
if (addSecurityGroupIds != other.addSecurityGroupIds) return false
if (addSubnetIds != other.addSubnetIds) return false
if (clientToken != other.clientToken) return false
if (id != other.id) return false
if (removeSecurityGroupIds != other.removeSecurityGroupIds) return false
if (removeSubnetIds != other.removeSubnetIds) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearchserverless.model.UpdateVpcEndpointRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The unique identifiers of the security groups to add to the endpoint. Security groups define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
*/
public var addSecurityGroupIds: List? = null
/**
* The ID of one or more subnets to add to the endpoint.
*/
public var addSubnetIds: List? = null
/**
* Unique, case-sensitive identifier to ensure idempotency of the request.
*/
public var clientToken: kotlin.String? = null
/**
* The unique identifier of the interface endpoint to update.
*/
public var id: kotlin.String? = null
/**
* The unique identifiers of the security groups to remove from the endpoint.
*/
public var removeSecurityGroupIds: List? = null
/**
* The unique identifiers of the subnets to remove from the endpoint.
*/
public var removeSubnetIds: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearchserverless.model.UpdateVpcEndpointRequest) : this() {
this.addSecurityGroupIds = x.addSecurityGroupIds
this.addSubnetIds = x.addSubnetIds
this.clientToken = x.clientToken
this.id = x.id
this.removeSecurityGroupIds = x.removeSecurityGroupIds
this.removeSubnetIds = x.removeSubnetIds
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearchserverless.model.UpdateVpcEndpointRequest = UpdateVpcEndpointRequest(this)
internal fun correctErrors(): Builder {
if (id == null) id = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy