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

awscala.redshift.Event.scala Maven / Gradle / Ivy

package awscala.redshift

import awscala._
import com.amazonaws.services.{ redshift => aws }

object Event {

  def apply(e: aws.model.Event): Event = new Event(
    sourceIdentifier = e.getSourceIdentifier,
    sourceType = aws.model.SourceType.fromValue(e.getSourceType),
    message = e.getMessage,
    createdAt = new DateTime(e.getDate)
  )
}

case class Event(
    sourceIdentifier: String,
    sourceType: aws.model.SourceType,
    message: String,
    createdAt: DateTime) extends aws.model.Event {

  setDate(createdAt.toDate)
  setMessage(message)
  setSourceIdentifier(sourceIdentifier)
  setSourceType(sourceType)
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy