zio.aws.tnb.model.GetSolVnfcResourceInfoMetadata.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zio-aws-tnb_3 Show documentation
Show all versions of zio-aws-tnb_3 Show documentation
Low-level AWS wrapper for ZIO
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