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

zio.aws.costoptimizationhub.model.GetRecommendationRequest.scala Maven / Gradle / Ivy

There is a newer version: 7.28.29.14
Show newest version
package zio.aws.costoptimizationhub.model
import zio.ZIO
import zio.aws.core.BuilderHelper
import scala.jdk.CollectionConverters._
final case class GetRecommendationRequest(recommendationId: String) {
  def buildAwsValue()
      : software.amazon.awssdk.services.costoptimizationhub.model.GetRecommendationRequest = {
    import GetRecommendationRequest.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.costoptimizationhub.model.GetRecommendationRequest
      .builder()
      .recommendationId(recommendationId: java.lang.String)
      .build()
  }
  def asReadOnly
      : zio.aws.costoptimizationhub.model.GetRecommendationRequest.ReadOnly =
    zio.aws.costoptimizationhub.model.GetRecommendationRequest
      .wrap(buildAwsValue())
}
object GetRecommendationRequest {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.costoptimizationhub.model.GetRecommendationRequest
  ] = BuilderHelper.apply
  trait ReadOnly {
    def asEditable: zio.aws.costoptimizationhub.model.GetRecommendationRequest =
      zio.aws.costoptimizationhub.model
        .GetRecommendationRequest(recommendationId)
    def recommendationId: String
    def getRecommendationId: ZIO[Any, Nothing, String] =
      ZIO.succeed(recommendationId)
  }
  private final class Wrapper(
      impl: software.amazon.awssdk.services.costoptimizationhub.model.GetRecommendationRequest
  ) extends zio.aws.costoptimizationhub.model.GetRecommendationRequest.ReadOnly {
    override val recommendationId: String = impl.recommendationId(): String
  }
  def wrap(
      impl: software.amazon.awssdk.services.costoptimizationhub.model.GetRecommendationRequest
  ): zio.aws.costoptimizationhub.model.GetRecommendationRequest.ReadOnly =
    new Wrapper(impl)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy