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

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

The newest version!
package zio.aws.emrcontainers.model
import zio.ZIO
import zio.aws.core.BuilderHelper
import zio.aws.emrcontainers.model.primitives.UriString
import scala.jdk.CollectionConverters._
final case class S3MonitoringConfiguration(logUri: UriString) {
  def buildAwsValue()
      : software.amazon.awssdk.services.emrcontainers.model.S3MonitoringConfiguration = {
    import S3MonitoringConfiguration.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.emrcontainers.model.S3MonitoringConfiguration
      .builder()
      .logUri(UriString.unwrap(logUri): java.lang.String)
      .build()
  }
  def asReadOnly
      : zio.aws.emrcontainers.model.S3MonitoringConfiguration.ReadOnly =
    zio.aws.emrcontainers.model.S3MonitoringConfiguration.wrap(buildAwsValue())
}
object S3MonitoringConfiguration {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.emrcontainers.model.S3MonitoringConfiguration
  ] = BuilderHelper.apply
  trait ReadOnly {
    def asEditable: zio.aws.emrcontainers.model.S3MonitoringConfiguration =
      zio.aws.emrcontainers.model.S3MonitoringConfiguration(logUri)
    def logUri: UriString
    def getLogUri: ZIO[Any, Nothing, UriString] = ZIO.succeed(logUri)
  }
  private final class Wrapper(
      impl: software.amazon.awssdk.services.emrcontainers.model.S3MonitoringConfiguration
  ) extends zio.aws.emrcontainers.model.S3MonitoringConfiguration.ReadOnly {
    override val logUri: UriString =
      zio.aws.emrcontainers.model.primitives.UriString(impl.logUri())
  }
  def wrap(
      impl: software.amazon.awssdk.services.emrcontainers.model.S3MonitoringConfiguration
  ): zio.aws.emrcontainers.model.S3MonitoringConfiguration.ReadOnly =
    new Wrapper(impl)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy