/** * <p> * A list of image layer objects corresponding to the image layer references in the request. * </p> * * @param layers * A list of image layer objects corresponding to the image layer references in the request. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchCheckLayerAvailabilityResult withLayers(java.util.Collection<Layer> layers) { setLayers(layers); return this; }
/** * <p> * A list of image layer objects corresponding to the image layer references in the request. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setLayers(java.util.Collection)} or {@link #withLayers(java.util.Collection)} if you want to override the * existing values. * </p> * * @param layers * A list of image layer objects corresponding to the image layer references in the request. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchCheckLayerAvailabilityResult withLayers(Layer... layers) { if (this.layers == null) { setLayers(new java.util.ArrayList<Layer>(layers.length)); } for (Layer ele : layers) { this.layers.add(ele); } return this; }
if (context.testExpression("layers", targetDepth)) { context.nextToken(); batchCheckLayerAvailabilityResult.setLayers(new ListUnmarshaller<Layer>(LayerJsonUnmarshaller.getInstance()).unmarshall(context));
/** * <p> * A list of image layer objects corresponding to the image layer references in the request. * </p> * * @param layers * A list of image layer objects corresponding to the image layer references in the request. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchCheckLayerAvailabilityResult withLayers(java.util.Collection<Layer> layers) { setLayers(layers); return this; }
/** * <p> * A list of image layer objects corresponding to the image layer references in the request. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setLayers(java.util.Collection)} or {@link #withLayers(java.util.Collection)} if you want to override the * existing values. * </p> * * @param layers * A list of image layer objects corresponding to the image layer references in the request. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchCheckLayerAvailabilityResult withLayers(Layer... layers) { if (this.layers == null) { setLayers(new java.util.ArrayList<Layer>(layers.length)); } for (Layer ele : layers) { this.layers.add(ele); } return this; }
if (context.testExpression("layers", targetDepth)) { context.nextToken(); batchCheckLayerAvailabilityResult.setLayers(new ListUnmarshaller<Layer>(LayerJsonUnmarshaller.getInstance()).unmarshall(context));