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

scala.googleapis.storage.ComposeRequestSourceObjectObjectPreconditions.scala Maven / Gradle / Ivy

The newest version!
package googleapis.storage

import io.circe._
import io.circe.syntax._

final case class ComposeRequestSourceObjectObjectPreconditions(
    /** Only perform the composition if the generation of the source object that would be used matches this value. If this value and a generation are both specified, they must be the same value or the call will fail.
      */
    ifGenerationMatch: Option[Long] = None
)
object ComposeRequestSourceObjectObjectPreconditions {
  implicit val encoder: Encoder[
    ComposeRequestSourceObjectObjectPreconditions
  ] = Encoder.instance { x =>
    Json.obj("ifGenerationMatch" := x.ifGenerationMatch)
  }
  implicit val decoder: Decoder[
    ComposeRequestSourceObjectObjectPreconditions
  ] = Decoder.instance { c =>
    for {
      v0 <- c.get[Option[Long]]("ifGenerationMatch")
    } yield ComposeRequestSourceObjectObjectPreconditions(v0)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy