public CreatePortalRequest withAlarms(Alarms alarms) {
        setAlarms(alarms);
        return this;
    }
<p>
Contains the configuration information of an alarm created in an IoT SiteWise Monitor portal. You can use the
alarm to monitor an asset property and get notified when the asset property value is outside a specified range.
For more information, see <a
href="https://docs.aws.amazon.com/iot-sitewise/latest/appguide/monitor-alarms.html">Monitoring with alarms</a> in
the <i>IoT SiteWise Application Guide</i>.
</p>

@param alarms
       Contains the configuration information of an alarm created in an IoT SiteWise Monitor portal. You can use
       the alarm to monitor an asset property and get notified when the asset property value is outside a
       specified range. For more information, see <a
       href="https://docs.aws.amazon.com/iot-sitewise/latest/appguide/monitor-alarms.html">Monitoring with
       alarms</a> in the <i>IoT SiteWise Application Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iotsitewise/src/main/java/com/amazonaws/services/iotsitewise/model/CreatePortalRequest.java