<p>
One or more Spot Instance requests.
</p>

@param spotInstanceRequests
One or more Spot Instance requests.
480850
public void setSpotInstanceRequests(java.util.Collection<SpotInstanceRequest> spotInstanceRequests) {
        if (spotInstanceRequests == null) {
            this.spotInstanceRequests = null;
            return;
        }

        this.spotInstanceRequests = new com.amazonaws.internal.SdkInternalList<SpotInstanceRequest>(spotInstanceRequests);
    }
1179308
public void requestResource(List<ResourceRequestInfo> requestList) {
    if (deleted) {
      throw new RuntimeException("Session: " + sessionId +
          " has been deleted");
    }

    for (ResourceRequestInfo req : requestList) {
      boolean newRequest = idToRequest.put(req.getId(), req) == null;
      if (!newRequest) {
        LOG.warn("Duplicate request from Session: " + sessionId + "" +
            " request: " + req.getId());
        continue;
      }

      incrementRequestCount(req.getType(), 1);
      addPendingRequest(req);
      setTypeRequested(req.getType());
    }
  }
1335691
public java.util.List<SpotInstanceRequest> getSpotInstanceRequests() {
        if (spotInstanceRequests == null) {
            spotInstanceRequests = new com.amazonaws.internal.SdkInternalList<SpotInstanceRequest>();
        }
        return spotInstanceRequests;
    }
123947
@RequestMapping(value = "/cloud/instance/refresh", method = POST, consumes = APPLICATION_JSON_VALUE,
            produces = APPLICATION_JSON_VALUE)

    public ResponseEntity<Collection<String>> refreshInstances(
            @Valid @RequestBody(required = false) CloudInstanceListRefreshRequest request) {
        return ResponseEntity.ok().body(cloudInstanceService.refreshInstances(request));
    }
363148
protected void startInstance(final HttpServletRequest request, final String requestBody) {
        try {
            addPropertiesStart(request, requestBody);
            writePropertiesToLog(this.logger, Level.DEBUG);
        } catch (Exception e) {
            logger.error("Failed logging HTTP transaction start: " + e.getMessage(), e);
        }
    }
745952
public void setSampledRequests(java.util.Collection<SampledHTTPRequest> sampledRequests) {
        if (sampledRequests == null) {
            this.sampledRequests = null;
            return;
        }

        this.sampledRequests = new java.util.ArrayList<SampledHTTPRequest>(sampledRequests);
    }
957039
public void setInstanceGroupIds(java.util.Collection<String> instanceGroupIds) {
        if (instanceGroupIds == null) {
            this.instanceGroupIds = null;
            return;
        }

        this.instanceGroupIds = new com.amazonaws.internal.SdkInternalList<String>(instanceGroupIds);
    }
1255435
public void setInstances(java.util.Collection<DeviceInstance> instances) {
        if (instances == null) {
            this.instances = null;
            return;
        }

        this.instances = new java.util.ArrayList<DeviceInstance>(instances);
    }
64988
public <T> void notifyObserversOfRequestSuccess(CachedSpiceRequest<T> request) {
        RequestProcessingContext requestProcessingContext = new RequestProcessingContext();
        requestProcessingContext.setExecutionThread(Thread.currentThread());
        post(new RequestSucceededNotifier<T>(request, spiceServiceListenerList, requestProcessingContext));
    }
26123
public void setInstanceMonitorings(java.util.Collection<InstanceMonitoring> instanceMonitorings) {
        if (instanceMonitorings == null) {
            this.instanceMonitorings = null;
            return;
        }

        this.instanceMonitorings = new com.amazonaws.internal.SdkInternalList<InstanceMonitoring>(instanceMonitorings);
    }
1191067
public void setInstanceIds(java.util.Collection<String> instanceIds) {
        if (instanceIds == null) {
            this.instanceIds = null;
            return;
        }

        this.instanceIds = new com.amazonaws.internal.SdkInternalList<String>(instanceIds);
    }
92374
public void setResourceAwsEc2InstanceType(java.util.Collection<StringFilter> resourceAwsEc2InstanceType) {
        if (resourceAwsEc2InstanceType == null) {
            this.resourceAwsEc2InstanceType = null;
            return;
        }

        this.resourceAwsEc2InstanceType = new java.util.ArrayList<StringFilter>(resourceAwsEc2InstanceType);
    }
1359782
public java.util.List<String> getSpotInstanceRequestIds() {
        if (spotInstanceRequestIds == null) {
            spotInstanceRequestIds = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return spotInstanceRequestIds;
    }
38951
public void setBrokerInstances(java.util.Collection<BrokerInstance> brokerInstances) {
        if (brokerInstances == null) {
            this.brokerInstances = null;
            return;
        }

        this.brokerInstances = new java.util.ArrayList<BrokerInstance>(brokerInstances);
    }
359519
public void setInstanceNames(java.util.Collection<String> instanceNames) {
        if (instanceNames == null) {
            this.instanceNames = null;
            return;
        }

        this.instanceNames = new com.amazonaws.internal.SdkInternalList<String>(instanceNames);
    }
420452
public void addApplicationInstances(Collection<ApplicationInstance> applicationInstances)
    {
        for(ApplicationInstance applicationInstance : applicationInstances)
        {
            // Add the instance to any application hosts it is associated with
            long applicationHostId = applicationInstance.getLinks().getApplicationHost();
            ApplicationHost applicationHost = applicationHosts.get(applicationHostId);
            if(applicationHost != null)
                applicationInstances(applicationHostId).add(applicationInstance);
            else
                logger.severe(String.format("Unable to find application host for application instance '%s': %d", applicationInstance.getName(), applicationHostId));
        }
    }
1323350
def cancel_spot_instance_requests(self, request_ids):
        
        params = {}
        if request_ids:
            self.build_list_params(params, request_ids, 'SpotInstanceRequestId')
        return self.get_list('CancelSpotInstanceRequests', params,
                             [('item', Instance)], verb='POST')