src.index.ProviderArgs.scala Maven / Gradle / Ivy
The newest version!
package besom.api.akamai
final case class ProviderArgs private(
cacheEnabled: besom.types.Output[scala.Option[Boolean]],
config: besom.types.Output[scala.Option[besom.api.akamai.inputs.ProviderConfigArgs]],
configSection: besom.types.Output[scala.Option[String]],
edgerc: besom.types.Output[scala.Option[String]],
requestLimit: besom.types.Output[scala.Option[Int]],
retryDisabled: besom.types.Output[scala.Option[Boolean]],
retryMax: besom.types.Output[scala.Option[Int]],
retryWaitMax: besom.types.Output[scala.Option[Int]],
retryWaitMin: besom.types.Output[scala.Option[Int]]
)
object ProviderArgs:
def apply(
cacheEnabled: besom.types.Input.Optional[Boolean] = scala.None,
config: besom.types.Input.Optional[besom.api.akamai.inputs.ProviderConfigArgs] = scala.None,
configSection: besom.types.Input.Optional[String] = scala.None,
edgerc: besom.types.Input.Optional[String] = scala.None,
requestLimit: besom.types.Input.Optional[Int] = scala.None,
retryDisabled: besom.types.Input.Optional[Boolean] = scala.None,
retryMax: besom.types.Input.Optional[Int] = scala.None,
retryWaitMax: besom.types.Input.Optional[Int] = scala.None,
retryWaitMin: besom.types.Input.Optional[Int] = scala.None
)(using besom.types.Context): ProviderArgs =
new ProviderArgs(
cacheEnabled = cacheEnabled.asOptionOutput(isSecret = false),
config = config.asOptionOutput(isSecret = false),
configSection = configSection.asOptionOutput(isSecret = false),
edgerc = edgerc.asOptionOutput(isSecret = false),
requestLimit = requestLimit.asOptionOutput(isSecret = false),
retryDisabled = retryDisabled.asOptionOutput(isSecret = false),
retryMax = retryMax.asOptionOutput(isSecret = false),
retryWaitMax = retryWaitMax.asOptionOutput(isSecret = false),
retryWaitMin = retryWaitMin.asOptionOutput(isSecret = false)
)
given encoder(using besom.types.Context): besom.types.Encoder[ProviderArgs] =
besom.internal.Encoder.derived[ProviderArgs]
given providerArgsEncoder(using besom.types.Context): besom.types.ProviderArgsEncoder[ProviderArgs] =
besom.internal.ProviderArgsEncoder.derived[ProviderArgs]