public Component withSupportedOsVersions(String... supportedOsVersions) {
        if (this.supportedOsVersions == null) {
            setSupportedOsVersions(new java.util.ArrayList<String>(supportedOsVersions.length));
        }
        for (String ele : supportedOsVersions) {
            this.supportedOsVersions.add(ele);
        }
        return this;
    }
<p>
The operating system (OS) version supported by the component. If the OS information is available, Image Builder
performs a prefix match against the base image OS version during image recipe creation.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSupportedOsVersions(java.util.Collection)} or {@link #withSupportedOsVersions(java.util.Collection)}
if you want to override the existing values.
</p>

@param supportedOsVersions
       The operating system (OS) version supported by the component. If the OS information is available, Image
       Builder performs a prefix match against the base image OS version during image recipe creation.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-imagebuilder/src/main/java/com/amazonaws/services/imagebuilder/model/Component.java