public TrustAnchorDetail withNotificationSettings(NotificationSettingDetail... notificationSettings) {
        if (this.notificationSettings == null) {
            setNotificationSettings(new java.util.ArrayList<NotificationSettingDetail>(notificationSettings.length));
        }
        for (NotificationSettingDetail ele : notificationSettings) {
            this.notificationSettings.add(ele);
        }
        return this;
    }
<p>
A list of notification settings to be associated to the trust anchor.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setNotificationSettings(java.util.Collection)} or {@link #withNotificationSettings(java.util.Collection)}
if you want to override the existing values.
</p>

@param notificationSettings
       A list of notification settings to be associated to the trust anchor.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iamrolesanywhere/src/main/java/com/amazonaws/services/iamrolesanywhere/model/TrustAnchorDetail.java