public RecommendationTemplate withRecommendationTypes(RenderRecommendationType... recommendationTypes) {
        java.util.ArrayList<String> recommendationTypesCopy = new java.util.ArrayList<String>(recommendationTypes.length);
        for (RenderRecommendationType value : recommendationTypes) {
            recommendationTypesCopy.add(value.toString());
        }
        if (getRecommendationTypes() == null) {
            setRecommendationTypes(recommendationTypesCopy);
        } else {
            getRecommendationTypes().addAll(recommendationTypesCopy);
        }
        return this;
    }
<p>
An array of strings that specify the recommendation template type or types.
</p>
<dl>
<dt>Alarm</dt>
<dd>
<p>
The template is an <a>AlarmRecommendation</a> template.
</p>
</dd>
<dt>Sop</dt>
<dd>
<p>
The template is a <a>SopRecommendation</a> template.
</p>
</dd>
<dt>Test</dt>
<dd>
<p>
The template is a <a>TestRecommendation</a> template.
</p>
</dd>
</dl>

@param recommendationTypes
       An array of strings that specify the recommendation template type or types.</p>
       <dl>
       <dt>Alarm</dt>
       <dd>
       <p>
       The template is an <a>AlarmRecommendation</a> template.
       </p>
       </dd>
       <dt>Sop</dt>
       <dd>
       <p>
       The template is a <a>SopRecommendation</a> template.
       </p>
       </dd>
       <dt>Test</dt>
       <dd>
       <p>
       The template is a <a>TestRecommendation</a> template.
       </p>
       </dd>
@return Returns a reference to this object so that method calls can be chained together.
@see RenderRecommendationType
aws-java-sdk-resiliencehub/src/main/java/com/amazonaws/services/resiliencehub/model/RecommendationTemplate.java