/** * The type of event that will cause the notification to be sent. For details about notification * types supported by Auto Scaling, see <a>DescribeAutoScalingNotificationTypes</a>. * * <p>Returns a reference to this object so that method calls can be chained together. * * @param notificationTypes The type of event that will cause the notification to be sent. For * details about notification types supported by Auto Scaling, see * <a>DescribeAutoScalingNotificationTypes</a>. * @return A reference to this updated object so that method calls can be chained together. */ public PutNotificationConfigurationRequest withNotificationTypes(String... notificationTypes) { if (getNotificationTypes() == null) setNotificationTypes(new java.util.ArrayList<String>(notificationTypes.length)); for (String value : notificationTypes) { getNotificationTypes().add(value); } return this; }
/** * The type of event that will cause the notification to be sent. For details about notification * types supported by Auto Scaling, see <a>DescribeAutoScalingNotificationTypes</a>. * * <p><b>NOTE:</b> This method appends the values to the existing list (if any). Use {@link * #setNotificationTypes(java.util.Collection)} or {@link * #withNotificationTypes(java.util.Collection)} if you want to override the existing values. * * @param notificationTypes The type of event that will cause the notification to be sent. For * details about notification types supported by Auto Scaling, see * <a>DescribeAutoScalingNotificationTypes</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public PutNotificationConfigurationRequest withNotificationTypes(String... notificationTypes) { if (this.notificationTypes == null) { setNotificationTypes( new com.amazonaws.internal.SdkInternalList<String>(notificationTypes.length)); } for (String ele : notificationTypes) { this.notificationTypes.add(ele); } return this; }
/** * The type of event that will cause the notification to be sent. For details about notification * types supported by Auto Scaling, see <a>DescribeAutoScalingNotificationTypes</a>. * * @param notificationTypes The type of event that will cause the notification to be sent. For * details about notification types supported by Auto Scaling, see * <a>DescribeAutoScalingNotificationTypes</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public PutNotificationConfigurationRequest withNotificationTypes( java.util.Collection<String> notificationTypes) { setNotificationTypes(notificationTypes); return this; }