/** * <p> * A list of categories that describe the type of support issue a case describes. Categories consist of a category * name and a category code. Category names and codes are passed to AWS Support when you call <a>CreateCase</a>. * </p> * * @param categories * A list of categories that describe the type of support issue a case describes. Categories consist of a * category name and a category code. Category names and codes are passed to AWS Support when you call * <a>CreateCase</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public Service withCategories(java.util.Collection<Category> categories) { setCategories(categories); return this; }
/** * <p> * A list of categories that describe the type of support issue a case describes. Categories consist of a category * name and a category code. Category names and codes are passed to AWS Support when you call <a>CreateCase</a>. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setCategories(java.util.Collection)} or {@link #withCategories(java.util.Collection)} if you want to * override the existing values. * </p> * * @param categories * A list of categories that describe the type of support issue a case describes. Categories consist of a * category name and a category code. Category names and codes are passed to AWS Support when you call * <a>CreateCase</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public Service withCategories(Category... categories) { if (this.categories == null) { setCategories(new com.amazonaws.internal.SdkInternalList<Category>(categories.length)); } for (Category ele : categories) { this.categories.add(ele); } return this; }
service.setCategories(new ListUnmarshaller<Category>(CategoryJsonUnmarshaller.getInstance()).unmarshall(context));
/** * <p> * A list of categories that describe the type of support issue a case describes. Categories consist of a category * name and a category code. Category names and codes are passed to AWS Support when you call <a>CreateCase</a>. * </p> * * @param categories * A list of categories that describe the type of support issue a case describes. Categories consist of a * category name and a category code. Category names and codes are passed to AWS Support when you call * <a>CreateCase</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public Service withCategories(java.util.Collection<Category> categories) { setCategories(categories); return this; }
/** * <p> * A list of categories that describe the type of support issue a case describes. Categories consist of a category * name and a category code. Category names and codes are passed to AWS Support when you call <a>CreateCase</a>. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setCategories(java.util.Collection)} or {@link #withCategories(java.util.Collection)} if you want to * override the existing values. * </p> * * @param categories * A list of categories that describe the type of support issue a case describes. Categories consist of a * category name and a category code. Category names and codes are passed to AWS Support when you call * <a>CreateCase</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public Service withCategories(Category... categories) { if (this.categories == null) { setCategories(new com.amazonaws.internal.SdkInternalList<Category>(categories.length)); } for (Category ele : categories) { this.categories.add(ele); } return this; }
service.setCategories(new ListUnmarshaller<Category>(CategoryJsonUnmarshaller.getInstance()).unmarshall(context));