![JAR search and dependency download from the Maven repository](/logo.png)
zio.aws.lexruntimev2.model.RuntimeHintValue.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zio-aws-lexruntimev2_2.12 Show documentation
Show all versions of zio-aws-lexruntimev2_2.12 Show documentation
Low-level AWS wrapper for ZIO
package zio.aws.lexruntimev2.model
import zio.aws.lexruntimev2.model.primitives.RuntimeHintPhrase
import zio.ZIO
import zio.aws.core.BuilderHelper
import scala.jdk.CollectionConverters._
final case class RuntimeHintValue(phrase: RuntimeHintPhrase) {
def buildAwsValue()
: software.amazon.awssdk.services.lexruntimev2.model.RuntimeHintValue = {
import RuntimeHintValue.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.lexruntimev2.model.RuntimeHintValue
.builder()
.phrase(RuntimeHintPhrase.unwrap(phrase): java.lang.String)
.build()
}
def asReadOnly: zio.aws.lexruntimev2.model.RuntimeHintValue.ReadOnly =
zio.aws.lexruntimev2.model.RuntimeHintValue.wrap(buildAwsValue())
}
object RuntimeHintValue {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.lexruntimev2.model.RuntimeHintValue
] = BuilderHelper.apply
trait ReadOnly {
def asEditable: zio.aws.lexruntimev2.model.RuntimeHintValue =
zio.aws.lexruntimev2.model.RuntimeHintValue(phrase)
def phrase: RuntimeHintPhrase
def getPhrase: ZIO[Any, Nothing, RuntimeHintPhrase] = ZIO.succeed(phrase)
}
private final class Wrapper(
impl: software.amazon.awssdk.services.lexruntimev2.model.RuntimeHintValue
) extends zio.aws.lexruntimev2.model.RuntimeHintValue.ReadOnly {
override val phrase: RuntimeHintPhrase =
zio.aws.lexruntimev2.model.primitives.RuntimeHintPhrase(impl.phrase())
}
def wrap(
impl: software.amazon.awssdk.services.lexruntimev2.model.RuntimeHintValue
): zio.aws.lexruntimev2.model.RuntimeHintValue.ReadOnly = new Wrapper(impl)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy