/** * <p> * The instance IDs for the deployment targets. * </p> * * @param instanceIds * The instance IDs for the deployment targets. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentRequest withInstanceIds(java.util.Collection<String> instanceIds) { setInstanceIds(instanceIds); return this; }
/** * <p> * The instance IDs for the deployment targets. * </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 instance IDs for the deployment targets. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentRequest 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; }
/** * <p> * The instance IDs for the deployment targets. * </p> * * @param instanceIds * The instance IDs for the deployment targets. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentRequest withInstanceIds(java.util.Collection<String> instanceIds) { setInstanceIds(instanceIds); return this; }
/** * <p> * The instance IDs for the deployment targets. * </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 instance IDs for the deployment targets. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDeploymentRequest 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; }