
io.github.vigoo.zioaws.elasticloadbalancing.model.ConfigureHealthCheckResponse.scala Maven / Gradle / Ivy
package io.github.vigoo.zioaws.elasticloadbalancing.model
import scala.jdk.CollectionConverters.*
import java.time.Instant
import zio.{ Chunk, ZIO }
import software.amazon.awssdk.core.SdkBytes
final case class ConfigureHealthCheckResponse(healthCheck: scala.Option[HealthCheck] = None) {
def buildAwsValue(): software.amazon.awssdk.services.elasticloadbalancing.model.ConfigureHealthCheckResponse = {
import ConfigureHealthCheckResponse.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.elasticloadbalancing.model.ConfigureHealthCheckResponse.builder().optionallyWith(healthCheck.map(value => value.buildAwsValue()))(_.healthCheck).build()
}
def asReadOnly: ConfigureHealthCheckResponse.ReadOnly = ConfigureHealthCheckResponse.wrap(buildAwsValue())
}
object ConfigureHealthCheckResponse {
private lazy val zioAwsBuilderHelper: io.github.vigoo.zioaws.core.BuilderHelper[software.amazon.awssdk.services.elasticloadbalancing.model.ConfigureHealthCheckResponse] = io.github.vigoo.zioaws.core.BuilderHelper.apply
trait ReadOnly {
def editable: ConfigureHealthCheckResponse = ConfigureHealthCheckResponse(healthCheckValue.map(value => value.editable))
def healthCheckValue: scala.Option[HealthCheck.ReadOnly]
def healthCheck: ZIO[Any, io.github.vigoo.zioaws.core.AwsError, HealthCheck.ReadOnly] = io.github.vigoo.zioaws.core.AwsError.unwrapOptionField("healthCheck", healthCheckValue)
}
private class Wrapper(impl: software.amazon.awssdk.services.elasticloadbalancing.model.ConfigureHealthCheckResponse) extends ConfigureHealthCheckResponse.ReadOnly { override def healthCheckValue: scala.Option[HealthCheck.ReadOnly] = scala.Option(impl.healthCheck()).map(value => HealthCheck.wrap(value)) }
def wrap(impl: software.amazon.awssdk.services.elasticloadbalancing.model.ConfigureHealthCheckResponse): ReadOnly = new Wrapper(impl)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy