/** * <p> * The layer ID, which must correspond to a custom layer. You cannot assign a registered instance to a built-in * layer. * </p> * * @param layerIds * The layer ID, which must correspond to a custom layer. You cannot assign a registered instance to a * built-in layer. * @return Returns a reference to this object so that method calls can be chained together. */ public AssignInstanceRequest withLayerIds(java.util.Collection<String> layerIds) { setLayerIds(layerIds); return this; }
/** * <p> * The layer ID, which must correspond to a custom layer. You cannot assign a registered instance to a built-in * layer. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setLayerIds(java.util.Collection)} or {@link #withLayerIds(java.util.Collection)} if you want to override * the existing values. * </p> * * @param layerIds * The layer ID, which must correspond to a custom layer. You cannot assign a registered instance to a * built-in layer. * @return Returns a reference to this object so that method calls can be chained together. */ public AssignInstanceRequest withLayerIds(String... layerIds) { if (this.layerIds == null) { setLayerIds(new com.amazonaws.internal.SdkInternalList<String>(layerIds.length)); } for (String ele : layerIds) { this.layerIds.add(ele); } return this; }
/** * <p> * The layer ID, which must correspond to a custom layer. You cannot assign a registered instance to a built-in * layer. * </p> * * @param layerIds * The layer ID, which must correspond to a custom layer. You cannot assign a registered instance to a * built-in layer. * @return Returns a reference to this object so that method calls can be chained together. */ public AssignInstanceRequest withLayerIds(java.util.Collection<String> layerIds) { setLayerIds(layerIds); return this; }
/** * <p> * The layer ID, which must correspond to a custom layer. You cannot assign a registered instance to a built-in * layer. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setLayerIds(java.util.Collection)} or {@link #withLayerIds(java.util.Collection)} if you want to override * the existing values. * </p> * * @param layerIds * The layer ID, which must correspond to a custom layer. You cannot assign a registered instance to a * built-in layer. * @return Returns a reference to this object so that method calls can be chained together. */ public AssignInstanceRequest withLayerIds(String... layerIds) { if (this.layerIds == null) { setLayerIds(new com.amazonaws.internal.SdkInternalList<String>(layerIds.length)); } for (String ele : layerIds) { this.layerIds.add(ele); } return this; }