/** * <p> * Specifies the parts of web requests that you want to inspect the size of. * </p> * * @param sizeConstraints * Specifies the parts of web requests that you want to inspect the size of. * @return Returns a reference to this object so that method calls can be chained together. */ public SizeConstraintSet withSizeConstraints(java.util.Collection<SizeConstraint> sizeConstraints) { setSizeConstraints(sizeConstraints); return this; }
/** * <p> * Specifies the parts of web requests that you want to inspect the size of. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setSizeConstraints(java.util.Collection)} or {@link #withSizeConstraints(java.util.Collection)} if you * want to override the existing values. * </p> * * @param sizeConstraints * Specifies the parts of web requests that you want to inspect the size of. * @return Returns a reference to this object so that method calls can be chained together. */ public SizeConstraintSet withSizeConstraints(SizeConstraint... sizeConstraints) { if (this.sizeConstraints == null) { setSizeConstraints(new java.util.ArrayList<SizeConstraint>(sizeConstraints.length)); } for (SizeConstraint ele : sizeConstraints) { this.sizeConstraints.add(ele); } return this; }
context.nextToken(); sizeConstraintSet .setSizeConstraints(new ListUnmarshaller<SizeConstraint>(SizeConstraintJsonUnmarshaller.getInstance()).unmarshall(context));
context.nextToken(); sizeConstraintSet .setSizeConstraints(new ListUnmarshaller<SizeConstraint>(SizeConstraintJsonUnmarshaller.getInstance()).unmarshall(context));