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

zio.aws.mediastore.model.GetMetricPolicyResponse.scala Maven / Gradle / Ivy

There is a newer version: 7.28.29.6
Show newest version
package zio.aws.mediastore.model
import zio.ZIO
import zio.aws.core.BuilderHelper
import scala.jdk.CollectionConverters.*
final case class GetMetricPolicyResponse(
    metricPolicy: zio.aws.mediastore.model.MetricPolicy
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.mediastore.model.GetMetricPolicyResponse = {
    import GetMetricPolicyResponse.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.mediastore.model.GetMetricPolicyResponse
      .builder()
      .metricPolicy(metricPolicy.buildAwsValue())
      .build()
  }
  def asReadOnly: zio.aws.mediastore.model.GetMetricPolicyResponse.ReadOnly =
    zio.aws.mediastore.model.GetMetricPolicyResponse.wrap(buildAwsValue())
}
object GetMetricPolicyResponse {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.mediastore.model.GetMetricPolicyResponse
  ] = BuilderHelper.apply
  trait ReadOnly {
    def asEditable: zio.aws.mediastore.model.GetMetricPolicyResponse =
      zio.aws.mediastore.model.GetMetricPolicyResponse(metricPolicy.asEditable)
    def metricPolicy: zio.aws.mediastore.model.MetricPolicy.ReadOnly
    def getMetricPolicy
        : ZIO[Any, Nothing, zio.aws.mediastore.model.MetricPolicy.ReadOnly] =
      ZIO.succeed(metricPolicy)
  }
  private final class Wrapper(
      impl: software.amazon.awssdk.services.mediastore.model.GetMetricPolicyResponse
  ) extends zio.aws.mediastore.model.GetMetricPolicyResponse.ReadOnly {
    override val metricPolicy: zio.aws.mediastore.model.MetricPolicy.ReadOnly =
      zio.aws.mediastore.model.MetricPolicy.wrap(impl.metricPolicy())
  }
  def wrap(
      impl: software.amazon.awssdk.services.mediastore.model.GetMetricPolicyResponse
  ): zio.aws.mediastore.model.GetMetricPolicyResponse.ReadOnly = new Wrapper(
    impl
  )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy