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

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

There is a newer version: 0.8.3
Show newest version
package awscala.redshift

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

object PendingModifiedValues {
  def apply(p: aws.model.PendingModifiedValues): PendingModifiedValues = new PendingModifiedValues(
    clusterType = Option(p.getClusterType),
    clusterVersion = Option(p.getClusterVersion),
    masterUserPassword = Option(p.getMasterUserPassword),
    nodeType = Option(p.getNodeType),
    numOfNodes = Option[Integer](p.getNumberOfNodes).map(_.asInstanceOf[Int]),
    automatedSnapshotRetentionPeriod = Option[Integer](p.getAutomatedSnapshotRetentionPeriod).map(_.asInstanceOf[Int])
  )
}
case class PendingModifiedValues(
    clusterType: Option[String],
    clusterVersion: Option[String],
    masterUserPassword: Option[String],
    nodeType: Option[String],
    numOfNodes: Option[Int],
    automatedSnapshotRetentionPeriod: Option[Int]) extends aws.model.PendingModifiedValues {

  setAutomatedSnapshotRetentionPeriod(automatedSnapshotRetentionPeriod.map(_.asInstanceOf[Integer]).orNull[Integer])
  setClusterType(clusterType.orNull[String])
  setClusterVersion(clusterVersion.orNull[String])
  setMasterUserPassword(masterUserPassword.orNull[String])
  setNodeType(nodeType.orNull[String])
  setNumberOfNodes(numOfNodes.map(_.asInstanceOf[Integer]).orNull[Integer])
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy