zio.aws.emrcontainers.model.S3MonitoringConfiguration.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zio-aws-emrcontainers_2.12 Show documentation
Show all versions of zio-aws-emrcontainers_2.12 Show documentation
Low-level AWS wrapper for ZIO
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)
}