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

org.sisioh.aws4s.dynamodb.model.RichDescribeTableRequest.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.DescribeTableRequest
import org.sisioh.aws4s.PimpedType

object DescribeTableRequestFactory {

  def create(): DescribeTableRequest = new DescribeTableRequest()

  def create(tableName: String): DescribeTableRequest = new DescribeTableRequest(tableName)

}

class RichDescribeTableRequest(val underlying: DescribeTableRequest) extends AnyVal with PimpedType[DescribeTableRequest] {

  // ---

  def tableNameOpt: Option[String] = Option(underlying.getTableName)

  def tableNameOpt_=(value: Option[String]): Unit = underlying.setTableName(value.orNull)

  def withTableNameOpt(value: Option[String]): DescribeTableRequest = underlying.withTableName(value.orNull)

  // ---

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy