zio.aws.storagegateway.model.StartGatewayRequest.scala Maven / Gradle / Ivy
package zio.aws.storagegateway.model
import zio.aws.storagegateway.model.primitives.GatewayARN
import zio.ZIO
import zio.aws.core.BuilderHelper
import scala.jdk.CollectionConverters._
final case class StartGatewayRequest(gatewayARN: GatewayARN) {
def buildAwsValue()
: software.amazon.awssdk.services.storagegateway.model.StartGatewayRequest = {
import StartGatewayRequest.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.storagegateway.model.StartGatewayRequest
.builder()
.gatewayARN(GatewayARN.unwrap(gatewayARN): java.lang.String)
.build()
}
def asReadOnly: zio.aws.storagegateway.model.StartGatewayRequest.ReadOnly =
zio.aws.storagegateway.model.StartGatewayRequest.wrap(buildAwsValue())
}
object StartGatewayRequest {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.storagegateway.model.StartGatewayRequest
] = BuilderHelper.apply
trait ReadOnly {
def asEditable: zio.aws.storagegateway.model.StartGatewayRequest =
zio.aws.storagegateway.model.StartGatewayRequest(gatewayARN)
def gatewayARN: GatewayARN
def getGatewayARN: ZIO[Any, Nothing, GatewayARN] = ZIO.succeed(gatewayARN)
}
private final class Wrapper(
impl: software.amazon.awssdk.services.storagegateway.model.StartGatewayRequest
) extends zio.aws.storagegateway.model.StartGatewayRequest.ReadOnly {
override val gatewayARN: GatewayARN =
zio.aws.storagegateway.model.primitives.GatewayARN(impl.gatewayARN())
}
def wrap(
impl: software.amazon.awssdk.services.storagegateway.model.StartGatewayRequest
): zio.aws.storagegateway.model.StartGatewayRequest.ReadOnly = new Wrapper(
impl
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy