/** * <p> * The IDs of the target instances. * </p> * * @param instanceIds * The IDs of the target instances. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withInstanceIds(java.util.Collection<String> instanceIds) { setInstanceIds(instanceIds); return this; }
/** * <p> * The IDs of the target instances. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setInstanceIds(java.util.Collection)} or {@link #withInstanceIds(java.util.Collection)} if you want to * override the existing values. * </p> * * @param instanceIds * The IDs of the target instances. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withInstanceIds(String... instanceIds) { if (this.instanceIds == null) { setInstanceIds(new com.amazonaws.internal.SdkInternalList<String>(instanceIds.length)); } for (String ele : instanceIds) { this.instanceIds.add(ele); } return this; }
deployment.setInstanceIds(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));
/** * <p> * The IDs of the target instances. * </p> * * @param instanceIds * The IDs of the target instances. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withInstanceIds(java.util.Collection<String> instanceIds) { setInstanceIds(instanceIds); return this; }
/** * <p> * The IDs of the target instances. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setInstanceIds(java.util.Collection)} or {@link #withInstanceIds(java.util.Collection)} if you want to * override the existing values. * </p> * * @param instanceIds * The IDs of the target instances. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withInstanceIds(String... instanceIds) { if (this.instanceIds == null) { setInstanceIds(new com.amazonaws.internal.SdkInternalList<String>(instanceIds.length)); } for (String ele : instanceIds) { this.instanceIds.add(ele); } return this; }
deployment.setInstanceIds(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));