public DescribeAlarmsRequest withParentsOfAlarmName(String parentsOfAlarmName) {
        setParentsOfAlarmName(parentsOfAlarmName);
        return this;
    }
<p>
If you use this parameter and specify the name of a metric or composite alarm, the operation returns information
about the "parent" alarms of the alarm you specify. These are the composite alarms that have
<code>AlarmRule</code> parameters that reference the alarm named in <code>ParentsOfAlarmName</code>. Information
about the alarm that you specify in <code>ParentsOfAlarmName</code> is not returned.
</p>
<p>
If you specify <code>ParentsOfAlarmName</code>, you cannot specify any other parameters in the request except for
<code>MaxRecords</code> and <code>NextToken</code>. If you do so, you receive a validation error.
</p>
<note>
<p>
Only the Alarm Name and ARN are returned by this operation when you use this parameter. To get complete
information about these alarms, perform another <code>DescribeAlarms</code> operation and specify the parent
alarm names in the <code>AlarmNames</code> parameter.
</p>
</note>

@param parentsOfAlarmName
       If you use this parameter and specify the name of a metric or composite alarm, the operation returns
       information about the "parent" alarms of the alarm you specify. These are the composite alarms that have
       <code>AlarmRule</code> parameters that reference the alarm named in <code>ParentsOfAlarmName</code>.
       Information about the alarm that you specify in <code>ParentsOfAlarmName</code> is not returned.</p>
       <p>
       If you specify <code>ParentsOfAlarmName</code>, you cannot specify any other parameters in the request
       except for <code>MaxRecords</code> and <code>NextToken</code>. If you do so, you receive a validation
       error.
       </p>
       <note>
       <p>
       Only the Alarm Name and ARN are returned by this operation when you use this parameter. To get complete
       information about these alarms, perform another <code>DescribeAlarms</code> operation and specify the
       parent alarm names in the <code>AlarmNames</code> parameter.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/model/DescribeAlarmsRequest.java