public CreateCanaryRequest withRuntimeVersion(String runtimeVersion) {
        setRuntimeVersion(runtimeVersion);
        return this;
    }
<p>
Specifies the runtime version to use for the canary. For a list of valid runtime versions and more information
about runtime versions, see <a href=
"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html">
Canary Runtime Versions</a>.
</p>

@param runtimeVersion
       Specifies the runtime version to use for the canary. For a list of valid runtime versions and more
       information about runtime versions, see <a href=
       "https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html"
       > Canary Runtime Versions</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/CreateCanaryRequest.java