All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sisioh.aws4s.dynamodb.model.RichUpdateGlobalSecondaryIndexAction.scala Maven / Gradle / Ivy

There is a newer version: 1.0.16
Show newest version
package org.sisioh.aws4s.dynamodb.model

import com.amazonaws.services.dynamodbv2.model.{ ProvisionedThroughput, UpdateGlobalSecondaryIndexAction }
import org.sisioh.aws4s.PimpedType

object UpdateGlobalSecondaryIndexActionFactory {

  def create(): UpdateGlobalSecondaryIndexAction = new UpdateGlobalSecondaryIndexAction()
}

class RichUpdateGlobalSecondaryIndexAction(val underlying: UpdateGlobalSecondaryIndexAction) extends AnyVal with PimpedType[UpdateGlobalSecondaryIndexAction] {

  // ---

  def indexNameOpt: Option[String] = Option(underlying.getIndexName)

  def indexNameOpt_=(value: Option[String]): Unit = underlying.setIndexName(value.orNull)

  def withIndexNameOpt(value: Option[String]): UpdateGlobalSecondaryIndexAction =
    underlying.withIndexName(value.orNull)

  // ---

  def provisionedThroughputOpt: Option[ProvisionedThroughput] = Option(underlying.getProvisionedThroughput)

  def provisionedThroughputOpt_=(value: Option[ProvisionedThroughput]): Unit = underlying.setProvisionedThroughput(value.orNull)

  def withProvisionedThroughputOpt(value: Option[ProvisionedThroughput]): Unit = underlying.setProvisionedThroughput(value.orNull)

  // ---

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy