io.burkard.cdk.services.datasync.CfnLocationObjectStorageProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.datasync
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnLocationObjectStorageProps {
def apply(
agentArns: List[String],
serverHostname: String,
bucketName: String,
serverPort: Option[Number] = None,
serverProtocol: Option[String] = None,
tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
accessKey: Option[String] = None,
subdirectory: Option[String] = None,
secretKey: Option[String] = None
): software.amazon.awscdk.services.datasync.CfnLocationObjectStorageProps =
(new software.amazon.awscdk.services.datasync.CfnLocationObjectStorageProps.Builder)
.agentArns(agentArns.asJava)
.serverHostname(serverHostname)
.bucketName(bucketName)
.serverPort(serverPort.orNull)
.serverProtocol(serverProtocol.orNull)
.tags(tags.map(_.asJava).orNull)
.accessKey(accessKey.orNull)
.subdirectory(subdirectory.orNull)
.secretKey(secretKey.orNull)
.build()
}