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

org.sisioh.aws4s.eb.model.RichS3Location.scala Maven / Gradle / Ivy

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

import com.amazonaws.services.elasticbeanstalk.model.S3Location
import org.sisioh.aws4s.PimpedType

object S3LocationFactory {

  def create(): S3Location = new S3Location()

}

class RichS3Location(val underlying: S3Location)
    extends AnyVal with PimpedType[S3Location] {

  def s3BucketOpt: Option[String] = Option(underlying.getS3Bucket)

  def s3BucketOpt_=(value: Option[String]): Unit =
    underlying.setS3Bucket(value.orNull)

  def withS3BucketOpt(value: Option[String]): S3Location =
    underlying.withS3Bucket(value.orNull)

  // ---

  def s3KeyOpt: Option[String] = Option(underlying.getS3Key)

  def s3KeyOpt_=(value: Option[String]): Unit =
    underlying.setS3Key(value.orNull)

  def withS3KeyOpt(value: Option[String]): S3Location =
    underlying.withS3Key(value.orNull)

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy