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

zio.aws.tnb.model.ListSolNetworkOperationsRequest.scala Maven / Gradle / Ivy

There is a newer version: 7.28.29.10
Show newest version
package zio.aws.tnb.model
import zio.aws.tnb.model.primitives.{
  PaginationToken,
  ListSolNetworkOperationsInputMaxResultsInteger
}
import zio.prelude.data.Optional
import zio.aws.core.{AwsError, BuilderHelper}
import zio.ZIO
import java.lang.Integer
import scala.jdk.CollectionConverters.*
final case class ListSolNetworkOperationsRequest(
    maxResults: Optional[ListSolNetworkOperationsInputMaxResultsInteger] =
      Optional.Absent,
    nextToken: Optional[PaginationToken] = Optional.Absent
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.tnb.model.ListSolNetworkOperationsRequest = {
    import ListSolNetworkOperationsRequest.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.tnb.model.ListSolNetworkOperationsRequest
      .builder()
      .optionallyWith(
        maxResults.map(value =>
          ListSolNetworkOperationsInputMaxResultsInteger.unwrap(value): Integer
        )
      )(_.maxResults)
      .optionallyWith(
        nextToken.map(value => PaginationToken.unwrap(value): java.lang.String)
      )(_.nextToken)
      .build()
  }
  def asReadOnly: zio.aws.tnb.model.ListSolNetworkOperationsRequest.ReadOnly =
    zio.aws.tnb.model.ListSolNetworkOperationsRequest.wrap(buildAwsValue())
}
object ListSolNetworkOperationsRequest {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.tnb.model.ListSolNetworkOperationsRequest
  ] = BuilderHelper.apply
  trait ReadOnly {
    def asEditable: zio.aws.tnb.model.ListSolNetworkOperationsRequest =
      zio.aws.tnb.model.ListSolNetworkOperationsRequest(
        maxResults.map(value => value),
        nextToken.map(value => value)
      )
    def maxResults: Optional[ListSolNetworkOperationsInputMaxResultsInteger]
    def nextToken: Optional[PaginationToken]
    def getMaxResults
        : ZIO[Any, AwsError, ListSolNetworkOperationsInputMaxResultsInteger] =
      AwsError.unwrapOptionField("maxResults", maxResults)
    def getNextToken: ZIO[Any, AwsError, PaginationToken] =
      AwsError.unwrapOptionField("nextToken", nextToken)
  }
  private final class Wrapper(
      impl: software.amazon.awssdk.services.tnb.model.ListSolNetworkOperationsRequest
  ) extends zio.aws.tnb.model.ListSolNetworkOperationsRequest.ReadOnly {
    override val maxResults
        : Optional[ListSolNetworkOperationsInputMaxResultsInteger] =
      zio.aws.core.internal
        .optionalFromNullable(impl.maxResults())
        .map(value =>
          zio.aws.tnb.model.primitives
            .ListSolNetworkOperationsInputMaxResultsInteger(value)
        )
    override val nextToken: Optional[PaginationToken] = zio.aws.core.internal
      .optionalFromNullable(impl.nextToken())
      .map(value => zio.aws.tnb.model.primitives.PaginationToken(value))
  }
  def wrap(
      impl: software.amazon.awssdk.services.tnb.model.ListSolNetworkOperationsRequest
  ): zio.aws.tnb.model.ListSolNetworkOperationsRequest.ReadOnly = new Wrapper(
    impl
  )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy