Examples of SwapEnvironmentCNAMEsRequest


Examples of com.amazonaws.services.elasticbeanstalk.model.SwapEnvironmentCNAMEsRequest

        new WaitForEnvironmentCommand(this).execute(new WaitForEnvironmentContextBuilder().withStatusToWaitFor("Ready").withApplicationName(applicationName).withHealth("Green").withEnvironmentRef(otherEnvId).build());

        getLog().info(format("Ok. Switching"));

        getService().swapEnvironmentCNAMEs(new SwapEnvironmentCNAMEsRequest().withDestinationEnvironmentId(curEnv.getEnvironmentId()).withSourceEnvironmentId(otherEnvId));

        getLog().info(format("Done."));

        return null//To change body of implemented methods use File | Settings | File Templates.
    }
View Full Code Here

Examples of com.amazonaws.services.elasticbeanstalk.model.SwapEnvironmentCNAMEsRequest

  String destinationEnvironmentName;

  @Override
  protected Object executeInternal() throws MojoExecutionException,
      MojoFailureException {
    SwapEnvironmentCNAMEsRequest req = getRequest();

    if (null != req) {
      service.swapEnvironmentCNAMEs(req);
    } else {
      service.swapEnvironmentCNAMEs();
View Full Code Here

Examples of com.amazonaws.services.elasticbeanstalk.model.SwapEnvironmentCNAMEsRequest

    return null;
  }

  SwapEnvironmentCNAMEsRequest getRequest() {
    SwapEnvironmentCNAMEsRequest request = new SwapEnvironmentCNAMEsRequest();

    if (StringUtils.isNotBlank(sourceEnvironmentName))
      request.setSourceEnvironmentName(sourceEnvironmentName);

    if (StringUtils.isNotBlank(destinationEnvironmentName))
      request.setDestinationEnvironmentName(destinationEnvironmentName);

    return request;
  }
View Full Code Here

Examples of com.amazonaws.services.elasticbeanstalk.model.SwapEnvironmentCNAMEsRequest

    super(parentMojo);
  }

  @Override
  protected Object executeInternal(SwapCNamesContext context) throws Exception {
    SwapEnvironmentCNAMEsRequest request = new SwapEnvironmentCNAMEsRequest();

    request.setSourceEnvironmentName(context.getSourceEnvironmentName());

    request.setSourceEnvironmentId(context.getSourceEnvironmentId());

    request
        .setDestinationEnvironmentName(context.getDestinationEnvironmentName());

    request.setDestinationEnvironmentId(context.getDestinationEnvironmentId());
   
    service.swapEnvironmentCNAMEs(request);

    return request;
  }
View Full Code Here

Examples of com.amazonaws.services.elasticbeanstalk.model.SwapEnvironmentCNAMEsRequest

  String destinationEnvironmentName;

  @Override
  protected Object executeInternal() throws MojoExecutionException,
      MojoFailureException {
    SwapEnvironmentCNAMEsRequest req = getRequest();

    if (null != req) {
      service.swapEnvironmentCNAMEs(req);
    } else {
      service.swapEnvironmentCNAMEs();
View Full Code Here

Examples of com.amazonaws.services.elasticbeanstalk.model.SwapEnvironmentCNAMEsRequest

    return null;
  }

  SwapEnvironmentCNAMEsRequest getRequest() {
    SwapEnvironmentCNAMEsRequest request = new SwapEnvironmentCNAMEsRequest();

    if (StringUtils.isNotBlank(sourceEnvironmentName))
      request.setSourceEnvironmentName(sourceEnvironmentName);

    if (StringUtils.isNotBlank(destinationEnvironmentName))
      request.setDestinationEnvironmentName(destinationEnvironmentName);

    return request;
  }
View Full Code Here

Examples of com.amazonaws.services.elasticbeanstalk.model.SwapEnvironmentCNAMEsRequest

    super(parentMojo);
  }

  @Override
  protected Object executeInternal(SwapCNamesContext context) throws Exception {
    SwapEnvironmentCNAMEsRequest request = new SwapEnvironmentCNAMEsRequest();

    request.setSourceEnvironmentName(context.getSourceEnvironmentName());

    request.setSourceEnvironmentId(context.getSourceEnvironmentId());

    request
        .setDestinationEnvironmentName(context.getDestinationEnvironmentName());

    request.setDestinationEnvironmentId(context.getDestinationEnvironmentId());
   
    service.swapEnvironmentCNAMEs(request);

    return request;
  }
View Full Code Here

Examples of com.amazonaws.services.elasticbeanstalk.model.SwapEnvironmentCNAMEsRequest

        new WaitForEnvironmentCommand(this).execute(new WaitForEnvironmentContextBuilder().withStatusToWaitFor("Ready").withApplicationName(applicationName).withHealth("Green").withEnvironmentRef(otherEnvId).build());

        getLog().info(format("Ok. Switching"));

        getService().swapEnvironmentCNAMEs(new SwapEnvironmentCNAMEsRequest().withDestinationEnvironmentId(curEnv.getEnvironmentId()).withSourceEnvironmentId(otherEnvId));

        getLog().info(format("Done."));

        return null//To change body of implemented methods use File | Settings | File Templates.
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.