public ApplicationComponentStrategy withIsPreferred(Boolean isPreferred) {
        setIsPreferred(isPreferred);
        return this;
    }
<p>
Set to true if the recommendation is set as preferred.
</p>

@param isPreferred
       Set to true if the recommendation is set as preferred.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-migrationhubstrategyrecommendations/src/main/java/com/amazonaws/services/migrationhubstrategyrecommendations/model/ApplicationComponentStrategy.java