Creates an option to deploy existing content to the runtime for each deployment

@param deployments a set of deployments to deploy

@return the deploy operation
427927
public static Operation createDeployOperation(final Set<DeploymentDescription> deployments) {
        Assertions.requiresNotNullOrNotEmptyParameter("deployments", deployments);
        final CompositeOperationBuilder builder = CompositeOperationBuilder.create(true);
        for (DeploymentDescription deployment : deployments) {
            addDeployOperationStep(builder, deployment);
        }
        return builder.build();
    }
1117899
public static DeploymentCreator creator(final String pathServiceSid, 
                                            final String pathEnvironmentSid, 
                                            final String buildSid) {
        return new DeploymentCreator(pathServiceSid, pathEnvironmentSid, buildSid);
    }
1030411
public void setDeploymentsInfo(java.util.Collection<DeploymentInfo> deploymentsInfo) {
        if (deploymentsInfo == null) {
            this.deploymentsInfo = null;
            return;
        }

        this.deploymentsInfo = new com.amazonaws.internal.SdkInternalList<DeploymentInfo>(deploymentsInfo);
    }
235761
public void deployApplication(String applicationName, String... classpathLocations) throws IOException {

        final List<URL> classpathElements = Arrays.stream(classpathLocations)
            .map(classpath -> Thread.currentThread().getContextClassLoader().getResource(classpath))
            .collect(Collectors.toList());

        deployApplication(applicationName, classpathElements.toArray(new URL[classpathElements.size()]));
    }
1230159
public DescribeDeploymentJobResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
1249552
@Override
    public DeploymentPlanBuilder andRemoveUndeployed() {
        DeploymentActionImpl removeMod = DeploymentActionImpl.getRemoveAction(replacementModification.getReplacedDeploymentUnitUniqueName());
        return new DeploymentPlanBuilderImpl(this, removeMod);
    }
217880
public void setDeploymentJobs(java.util.Collection<DeploymentJob> deploymentJobs) {
        if (deploymentJobs == null) {
            this.deploymentJobs = null;
            return;
        }

        this.deploymentJobs = new java.util.ArrayList<DeploymentJob>(deploymentJobs);
    }
309921
public static Set<String> listDeployments(Resource deploymentRootResource, Set<String> runtimeNames) {
          Set<Pattern> set = new HashSet<>();
          for (String wildcardExpr : runtimeNames) {
              Pattern pattern = DeploymentOverlayIndex.getPattern(wildcardExpr);
              set.add(pattern);
          }
          return listDeploymentNames(deploymentRootResource, set);
      }
183616
private List<Deployment> managedDeployments(List<Deployment> deployments) {
        List<Deployment> managed = new ArrayList<Deployment>();
        for (Deployment deployment : deployments) {
            if (deployment.getDescription().managed()) {
                managed.add(deployment);
            }
        }
        return managed;
    }
434320
@Override
    public void updateDeployments(Iterable<Deployment> deployments) {
        Deployment oldDeployment = deploymentColumn.getSelectedItem();
        Deployment newDeployment = null;

        if (oldDeployment != null) {
            for (Deployment d : deployments) {
                if (d.getName().equals(oldDeployment.getName())) {
                    newDeployment = d;
                }
            }
        }
        deploymentColumn.updateFrom(Lists.newArrayList(deployments), newDeployment);
    }
858307
public void add(Collection<Deployment> deployments)
    {
        for(Deployment deployment : deployments)
            this.deployments.put(deployment.getId(), deployment);
    }
340366
private List<Deployment> defaultDeployments(List<Deployment> deployments) {
        List<Deployment> defaults = new ArrayList<Deployment>();
        for (Deployment deployment : deployments) {
            if (deployment.getDescription().getName().equals(DeploymentTargetDescription.DEFAULT.getName())) {
                defaults.add(deployment);
            }
        }
        return defaults;
    }
1287421
public DeploymentBuilder connectionFactory(ConnectionFactory v)
   {
      if (connectionFactories == null)
         connectionFactories = new ArrayList<ConnectionFactory>();
      
      connectionFactories.add(v);
      return this;
   }
1016877
public void setDeployments(java.util.Collection<Deployment> deployments) {
        if (deployments == null) {
            this.deployments = null;
            return;
        }

        this.deployments = new java.util.ArrayList<Deployment>(deployments);
    }
421673
public DeploymentCache deployments(long applicationId)
    {
        DeploymentCache cache = deployments.get(applicationId);
        if(cache == null)
            deployments.put(applicationId, cache = new DeploymentCache(applicationId));
        return cache;
    }
560900
public GrantListEntry withOperations(GrantOperation... operations) {
        com.ibm.cloud.objectstorage.internal.SdkInternalList<String> operationsCopy = new com.ibm.cloud.objectstorage.internal.SdkInternalList<String>(operations.length);
        for (GrantOperation value : operations) {
            operationsCopy.add(value.toString());
        }
        if (getOperations() == null) {
            setOperations(operationsCopy);
        } else {
            getOperations().addAll(operationsCopy);
        }
        return this;
    }
1051234
public OperationFuture<List<Server>> addSecondaryNetwork(List<Server> servers, AddNetworkConfig config) {
        List<JobFuture> futures = servers.stream()
            .map(server -> addSecondaryNetwork(server, config).jobFuture())
            .collect(toList());

        return new OperationFuture<>(
            servers,
            new ParallelJobsFuture(futures)
        );
    }