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

io.github.vigoo.zioaws.swf.model.ExternalWorkflowExecutionCancelRequestedEventAttributes.scala Maven / Gradle / Ivy

package io.github.vigoo.zioaws.swf.model
import zio.ZIO
import io.github.vigoo.zioaws.swf.model.primitives.EventId
import io.github.vigoo.zioaws.core.BuilderHelper
import scala.jdk.CollectionConverters._
final case class ExternalWorkflowExecutionCancelRequestedEventAttributes(
    workflowExecution: io.github.vigoo.zioaws.swf.model.WorkflowExecution,
    initiatedEventId: EventId
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.swf.model.ExternalWorkflowExecutionCancelRequestedEventAttributes = {
    import ExternalWorkflowExecutionCancelRequestedEventAttributes.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.swf.model.ExternalWorkflowExecutionCancelRequestedEventAttributes
      .builder()
      .workflowExecution(workflowExecution.buildAwsValue())
      .initiatedEventId(initiatedEventId: java.lang.Long)
      .build()
  }
  def asReadOnly
      : io.github.vigoo.zioaws.swf.model.ExternalWorkflowExecutionCancelRequestedEventAttributes.ReadOnly =
    io.github.vigoo.zioaws.swf.model.ExternalWorkflowExecutionCancelRequestedEventAttributes
      .wrap(buildAwsValue())
}
object ExternalWorkflowExecutionCancelRequestedEventAttributes {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.swf.model.ExternalWorkflowExecutionCancelRequestedEventAttributes
  ] = BuilderHelper.apply
  trait ReadOnly {
    def editable
        : io.github.vigoo.zioaws.swf.model.ExternalWorkflowExecutionCancelRequestedEventAttributes =
      io.github.vigoo.zioaws.swf.model
        .ExternalWorkflowExecutionCancelRequestedEventAttributes(
          workflowExecutionValue.editable,
          initiatedEventIdValue
        )
    def workflowExecutionValue
        : io.github.vigoo.zioaws.swf.model.WorkflowExecution.ReadOnly
    def initiatedEventIdValue: EventId
    def workflowExecution: ZIO[
      Any,
      Nothing,
      io.github.vigoo.zioaws.swf.model.WorkflowExecution.ReadOnly
    ] = ZIO.succeed(workflowExecutionValue)
    def initiatedEventId: ZIO[Any, Nothing, EventId] =
      ZIO.succeed(initiatedEventIdValue)
  }
  private class Wrapper(
      impl: software.amazon.awssdk.services.swf.model.ExternalWorkflowExecutionCancelRequestedEventAttributes
  ) extends io.github.vigoo.zioaws.swf.model.ExternalWorkflowExecutionCancelRequestedEventAttributes.ReadOnly {
    override def workflowExecutionValue
        : io.github.vigoo.zioaws.swf.model.WorkflowExecution.ReadOnly =
      io.github.vigoo.zioaws.swf.model.WorkflowExecution
        .wrap(impl.workflowExecution())
    override def initiatedEventIdValue: EventId =
      impl.initiatedEventId(): EventId
  }
  def wrap(
      impl: software.amazon.awssdk.services.swf.model.ExternalWorkflowExecutionCancelRequestedEventAttributes
  ): io.github.vigoo.zioaws.swf.model.ExternalWorkflowExecutionCancelRequestedEventAttributes.ReadOnly =
    new Wrapper(impl)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy