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

zio.aws.emrcontainers.model.ParametricS3MonitoringConfiguration.scala Maven / Gradle / Ivy

The newest version!
package zio.aws.emrcontainers.model
import zio.ZIO
import zio.aws.core.{AwsError, BuilderHelper}
import zio.prelude.data.Optional
import zio.aws.emrcontainers.model.primitives.UriString
import scala.jdk.CollectionConverters._
final case class ParametricS3MonitoringConfiguration(
    logUri: Optional[UriString] = Optional.Absent
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.emrcontainers.model.ParametricS3MonitoringConfiguration = {
    import ParametricS3MonitoringConfiguration.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.emrcontainers.model.ParametricS3MonitoringConfiguration
      .builder()
      .optionallyWith(
        logUri.map(value => UriString.unwrap(value): java.lang.String)
      )(_.logUri)
      .build()
  }
  def asReadOnly
      : zio.aws.emrcontainers.model.ParametricS3MonitoringConfiguration.ReadOnly =
    zio.aws.emrcontainers.model.ParametricS3MonitoringConfiguration
      .wrap(buildAwsValue())
}
object ParametricS3MonitoringConfiguration {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.emrcontainers.model.ParametricS3MonitoringConfiguration
  ] = BuilderHelper.apply
  trait ReadOnly {
    def asEditable
        : zio.aws.emrcontainers.model.ParametricS3MonitoringConfiguration =
      zio.aws.emrcontainers.model
        .ParametricS3MonitoringConfiguration(logUri.map(value => value))
    def logUri: Optional[UriString]
    def getLogUri: ZIO[Any, AwsError, UriString] =
      AwsError.unwrapOptionField("logUri", logUri)
  }
  private final class Wrapper(
      impl: software.amazon.awssdk.services.emrcontainers.model.ParametricS3MonitoringConfiguration
  ) extends zio.aws.emrcontainers.model.ParametricS3MonitoringConfiguration.ReadOnly {
    override val logUri: Optional[UriString] = zio.aws.core.internal
      .optionalFromNullable(impl.logUri())
      .map(value => zio.aws.emrcontainers.model.primitives.UriString(value))
  }
  def wrap(
      impl: software.amazon.awssdk.services.emrcontainers.model.ParametricS3MonitoringConfiguration
  ): zio.aws.emrcontainers.model.ParametricS3MonitoringConfiguration.ReadOnly =
    new Wrapper(impl)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy