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

zio.aws.tnb.model.GetSolVnfcResourceInfoMetadata.scala Maven / Gradle / Ivy

There is a newer version: 7.28.29.10
Show newest version
package zio.aws.tnb.model
import zio.ZIO
import zio.aws.core.{AwsError, BuilderHelper}
import zio.prelude.data.Optional
import scala.jdk.CollectionConverters.*
final case class GetSolVnfcResourceInfoMetadata(
    cluster: Optional[String] = Optional.Absent,
    helmChart: Optional[String] = Optional.Absent,
    nodeGroup: Optional[String] = Optional.Absent
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.tnb.model.GetSolVnfcResourceInfoMetadata = {
    import GetSolVnfcResourceInfoMetadata.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.tnb.model.GetSolVnfcResourceInfoMetadata
      .builder()
      .optionallyWith(cluster.map(value => value: java.lang.String))(_.cluster)
      .optionallyWith(helmChart.map(value => value: java.lang.String))(
        _.helmChart
      )
      .optionallyWith(nodeGroup.map(value => value: java.lang.String))(
        _.nodeGroup
      )
      .build()
  }
  def asReadOnly: zio.aws.tnb.model.GetSolVnfcResourceInfoMetadata.ReadOnly =
    zio.aws.tnb.model.GetSolVnfcResourceInfoMetadata.wrap(buildAwsValue())
}
object GetSolVnfcResourceInfoMetadata {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.tnb.model.GetSolVnfcResourceInfoMetadata
  ] = BuilderHelper.apply
  trait ReadOnly {
    def asEditable: zio.aws.tnb.model.GetSolVnfcResourceInfoMetadata =
      zio.aws.tnb.model.GetSolVnfcResourceInfoMetadata(
        cluster.map(value => value),
        helmChart.map(value => value),
        nodeGroup.map(value => value)
      )
    def cluster: Optional[String]
    def helmChart: Optional[String]
    def nodeGroup: Optional[String]
    def getCluster: ZIO[Any, AwsError, String] =
      AwsError.unwrapOptionField("cluster", cluster)
    def getHelmChart: ZIO[Any, AwsError, String] =
      AwsError.unwrapOptionField("helmChart", helmChart)
    def getNodeGroup: ZIO[Any, AwsError, String] =
      AwsError.unwrapOptionField("nodeGroup", nodeGroup)
  }
  private final class Wrapper(
      impl: software.amazon.awssdk.services.tnb.model.GetSolVnfcResourceInfoMetadata
  ) extends zio.aws.tnb.model.GetSolVnfcResourceInfoMetadata.ReadOnly {
    override val cluster: Optional[String] = zio.aws.core.internal
      .optionalFromNullable(impl.cluster())
      .map(value => value: String)
    override val helmChart: Optional[String] = zio.aws.core.internal
      .optionalFromNullable(impl.helmChart())
      .map(value => value: String)
    override val nodeGroup: Optional[String] = zio.aws.core.internal
      .optionalFromNullable(impl.nodeGroup())
      .map(value => value: String)
  }
  def wrap(
      impl: software.amazon.awssdk.services.tnb.model.GetSolVnfcResourceInfoMetadata
  ): zio.aws.tnb.model.GetSolVnfcResourceInfoMetadata.ReadOnly = new Wrapper(
    impl
  )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy