public Component withPlatform(String platform) {
        setPlatform(platform);
        return this;
    }
<p>
The operating system platform of the component.
</p>

@param platform
       The operating system platform of the component.
@return Returns a reference to this object so that method calls can be chained together.
@see Platform
aws-java-sdk-imagebuilder/src/main/java/com/amazonaws/services/imagebuilder/model/Component.java