/** * <p> * An array of <a>GeoMatchConstraint</a> objects, which contain the country that you want AWS WAF to search for. * </p> * * @param geoMatchConstraints * An array of <a>GeoMatchConstraint</a> objects, which contain the country that you want AWS WAF to search * for. * @return Returns a reference to this object so that method calls can be chained together. */ public GeoMatchSet withGeoMatchConstraints(java.util.Collection<GeoMatchConstraint> geoMatchConstraints) { setGeoMatchConstraints(geoMatchConstraints); return this; }
/** * <p> * An array of <a>GeoMatchConstraint</a> objects, which contain the country that you want AWS WAF to search for. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setGeoMatchConstraints(java.util.Collection)} or {@link #withGeoMatchConstraints(java.util.Collection)} * if you want to override the existing values. * </p> * * @param geoMatchConstraints * An array of <a>GeoMatchConstraint</a> objects, which contain the country that you want AWS WAF to search * for. * @return Returns a reference to this object so that method calls can be chained together. */ public GeoMatchSet withGeoMatchConstraints(GeoMatchConstraint... geoMatchConstraints) { if (this.geoMatchConstraints == null) { setGeoMatchConstraints(new java.util.ArrayList<GeoMatchConstraint>(geoMatchConstraints.length)); } for (GeoMatchConstraint ele : geoMatchConstraints) { this.geoMatchConstraints.add(ele); } return this; }
geoMatchSet.setGeoMatchConstraints(new ListUnmarshaller<GeoMatchConstraint>(GeoMatchConstraintJsonUnmarshaller.getInstance()) .unmarshall(context));
geoMatchSet.setGeoMatchConstraints(new ListUnmarshaller<GeoMatchConstraint>(GeoMatchConstraintJsonUnmarshaller.getInstance()) .unmarshall(context));