public ArtifactConfigInput withS3Encryption(S3EncryptionConfig s3Encryption) {
        setS3Encryption(s3Encryption);
        return this;
    }
<p>
A structure that contains the configuration of the encryption-at-rest settings for artifacts that the canary
uploads to Amazon S3. Artifact encryption functionality is available only for canaries that use Synthetics
runtime version syn-nodejs-puppeteer-3.3 or later. For more information, see <a href=
"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_artifact_encryption.html"
>Encrypting canary artifacts</a>
</p>

@param s3Encryption
       A structure that contains the configuration of the encryption-at-rest settings for artifacts that the
       canary uploads to Amazon S3. Artifact encryption functionality is available only for canaries that use
       Synthetics runtime version syn-nodejs-puppeteer-3.3 or later. For more information, see <a href=
       "https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_artifact_encryption.html"
       >Encrypting canary artifacts</a>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-synthetics/src/main/java/com/amazonaws/services/synthetics/model/ArtifactConfigInput.java