zio.aws.snowdevicemanagement.model.DescribeExecutionRequest.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.{TaskId, ManagedDeviceId}
import scala.jdk.CollectionConverters._
final case class DescribeExecutionRequest(
managedDeviceId: ManagedDeviceId,
taskId: TaskId
) {
def buildAwsValue()
: software.amazon.awssdk.services.snowdevicemanagement.model.DescribeExecutionRequest = {
import DescribeExecutionRequest.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.snowdevicemanagement.model.DescribeExecutionRequest
.builder()
.managedDeviceId(
ManagedDeviceId.unwrap(managedDeviceId): java.lang.String
)
.taskId(TaskId.unwrap(taskId): java.lang.String)
.build()
}
def asReadOnly
: zio.aws.snowdevicemanagement.model.DescribeExecutionRequest.ReadOnly =
zio.aws.snowdevicemanagement.model.DescribeExecutionRequest
.wrap(buildAwsValue())
}
object DescribeExecutionRequest {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.snowdevicemanagement.model.DescribeExecutionRequest
] = BuilderHelper.apply
trait ReadOnly {
def asEditable
: zio.aws.snowdevicemanagement.model.DescribeExecutionRequest =
zio.aws.snowdevicemanagement.model
.DescribeExecutionRequest(managedDeviceId, taskId)
def managedDeviceId: ManagedDeviceId
def taskId: TaskId
def getManagedDeviceId: ZIO[Any, Nothing, ManagedDeviceId] =
ZIO.succeed(managedDeviceId)
def getTaskId: ZIO[Any, Nothing, TaskId] = ZIO.succeed(taskId)
}
private final class Wrapper(
impl: software.amazon.awssdk.services.snowdevicemanagement.model.DescribeExecutionRequest
) extends zio.aws.snowdevicemanagement.model.DescribeExecutionRequest.ReadOnly {
override val managedDeviceId: ManagedDeviceId =
zio.aws.snowdevicemanagement.model.primitives
.ManagedDeviceId(impl.managedDeviceId())
override val taskId: TaskId =
zio.aws.snowdevicemanagement.model.primitives.TaskId(impl.taskId())
}
def wrap(
impl: software.amazon.awssdk.services.snowdevicemanagement.model.DescribeExecutionRequest
): zio.aws.snowdevicemanagement.model.DescribeExecutionRequest.ReadOnly =
new Wrapper(impl)
}