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

zio.aws.snowdevicemanagement.model.DescribeDeviceRequest.scala Maven / Gradle / Ivy

The newest version!
package zio.aws.snowdevicemanagement.model
import zio.ZIO
import zio.aws.core.BuilderHelper
import zio.aws.snowdevicemanagement.model.primitives.ManagedDeviceId
import scala.jdk.CollectionConverters._
final case class DescribeDeviceRequest(managedDeviceId: ManagedDeviceId) {
  def buildAwsValue()
      : software.amazon.awssdk.services.snowdevicemanagement.model.DescribeDeviceRequest = {
    import DescribeDeviceRequest.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.snowdevicemanagement.model.DescribeDeviceRequest
      .builder()
      .managedDeviceId(
        ManagedDeviceId.unwrap(managedDeviceId): java.lang.String
      )
      .build()
  }
  def asReadOnly
      : zio.aws.snowdevicemanagement.model.DescribeDeviceRequest.ReadOnly =
    zio.aws.snowdevicemanagement.model.DescribeDeviceRequest
      .wrap(buildAwsValue())
}
object DescribeDeviceRequest {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.snowdevicemanagement.model.DescribeDeviceRequest
  ] = BuilderHelper.apply
  trait ReadOnly {
    def asEditable: zio.aws.snowdevicemanagement.model.DescribeDeviceRequest =
      zio.aws.snowdevicemanagement.model.DescribeDeviceRequest(managedDeviceId)
    def managedDeviceId: ManagedDeviceId
    def getManagedDeviceId: ZIO[Any, Nothing, ManagedDeviceId] =
      ZIO.succeed(managedDeviceId)
  }
  private final class Wrapper(
      impl: software.amazon.awssdk.services.snowdevicemanagement.model.DescribeDeviceRequest
  ) extends zio.aws.snowdevicemanagement.model.DescribeDeviceRequest.ReadOnly {
    override val managedDeviceId: ManagedDeviceId =
      zio.aws.snowdevicemanagement.model.primitives
        .ManagedDeviceId(impl.managedDeviceId())
  }
  def wrap(
      impl: software.amazon.awssdk.services.snowdevicemanagement.model.DescribeDeviceRequest
  ): zio.aws.snowdevicemanagement.model.DescribeDeviceRequest.ReadOnly =
    new Wrapper(impl)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy