public void setSynonyms(String synonyms) {
        this.synonyms = synonyms;
    }
<p>
A JSON object that defines synonym groups and aliases. A synonym group is an array of arrays, where each
sub-array is a group of terms where each term in the group is considered a synonym of every other term in the
group. The aliases value is an object that contains a collection of string:value pairs where the string specifies
a term and the array of values specifies each of the aliases for that term. An alias is considered a synonym of
the specified term, but the term is not considered a synonym of the alias. For more information about specifying
synonyms, see <a
href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html#synonyms"
>Synonyms</a> in the <i>Amazon CloudSearch Developer Guide</i>.
</p>

@param synonyms
       A JSON object that defines synonym groups and aliases. A synonym group is an array of arrays, where each
       sub-array is a group of terms where each term in the group is considered a synonym of every other term in
       the group. The aliases value is an object that contains a collection of string:value pairs where the
       string specifies a term and the array of values specifies each of the aliases for that term. An alias is
       considered a synonym of the specified term, but the term is not considered a synonym of the alias. For
       more information about specifying synonyms, see <a href=
       "http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html#synonyms"
       >Synonyms</a> in the <i>Amazon CloudSearch Developer Guide</i>.
aws-java-sdk-cloudsearch/src/main/java/com/amazonaws/services/cloudsearchv2/model/AnalysisOptions.java