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

org.sisioh.aws4s.dynamodb.model.RichDescribeTableResult.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.{ DescribeTableResult, TableDescription }
import org.sisioh.aws4s.PimpedType

object DescribeTableResultFactory {

  def create(): DescribeTableResult = new DescribeTableResult()

}

class RichDescribeTableResult(val underlying: DescribeTableResult) extends AnyVal with PimpedType[DescribeTableResult] {

  // ---

  def tableOpt: Option[TableDescription] = Option(underlying.getTable)

  def tableOpt_=(value: Option[TableDescription]): Unit = underlying.setTable(value.orNull)

  def withTableOpt(value: Option[TableDescription]): DescribeTableResult = underlying.withTable(value.orNull)

  // ---

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy