/** * The list of the first 20 warnings about the configuration XML elements or attributes that were sanitized. * * @param warnings * The list of the first 20 warnings about the configuration XML elements or attributes that were sanitized. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateConfigurationResult withWarnings(java.util.Collection<SanitizationWarning> warnings) { setWarnings(warnings); return this; }
/** * The list of the first 20 warnings about the configuration XML elements or attributes that were sanitized. * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setWarnings(java.util.Collection)} or {@link #withWarnings(java.util.Collection)} if you want to override * the existing values. * </p> * * @param warnings * The list of the first 20 warnings about the configuration XML elements or attributes that were sanitized. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateConfigurationResult withWarnings(SanitizationWarning... warnings) { if (this.warnings == null) { setWarnings(new java.util.ArrayList<SanitizationWarning>(warnings.length)); } for (SanitizationWarning ele : warnings) { this.warnings.add(ele); } return this; }
updateConfigurationResult.setWarnings(new ListUnmarshaller<SanitizationWarning>(SanitizationWarningJsonUnmarshaller.getInstance()) .unmarshall(context));
/** * The list of the first 20 warnings about the configuration XML elements or attributes that were sanitized. * * @param warnings * The list of the first 20 warnings about the configuration XML elements or attributes that were sanitized. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateConfigurationResult withWarnings(java.util.Collection<SanitizationWarning> warnings) { setWarnings(warnings); return this; }
/** * The list of the first 20 warnings about the configuration XML elements or attributes that were sanitized. * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setWarnings(java.util.Collection)} or {@link #withWarnings(java.util.Collection)} if you want to override * the existing values. * </p> * * @param warnings * The list of the first 20 warnings about the configuration XML elements or attributes that were sanitized. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateConfigurationResult withWarnings(SanitizationWarning... warnings) { if (this.warnings == null) { setWarnings(new java.util.ArrayList<SanitizationWarning>(warnings.length)); } for (SanitizationWarning ele : warnings) { this.warnings.add(ele); } return this; }
updateConfigurationResult.setWarnings(new ListUnmarshaller<SanitizationWarning>(SanitizationWarningJsonUnmarshaller.getInstance()) .unmarshall(context));