Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License"). You may not
   * use this file except in compliance with the License. A copy of the License is
   * located at
   * 
   * http://aws.amazon.com/apache2.0
   * 
  * or in the "license" file accompanying this file. This file is distributed on
  * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  * express or implied. See the License for the specific language governing
  * permissions and limitations under the License.
  */
 package com.amazonaws.services.simpleworkflow.flow.generic;
 
 import java.util.List;
 
 
 public class StartChildWorkflowExecutionParameters implements Cloneable {
 
     private String control;
 
 
     private String input;
 
     private List<StringtagList;
 
     private String taskList;
 
 
     private String workflowId;
 
     private WorkflowType workflowType;
 
     private ChildPolicy childPolicy;
 
     private int taskPriority;
     
     }
 
     public String getControl() {
         return ;
     }
 
     public void setControl(String control) {
         this. = control;
     }
 
         this. = control;
         return this;
     }
 
     public long getExecutionStartToCloseTimeoutSeconds() {
         return ;
     }
 
     public void setExecutionStartToCloseTimeoutSeconds(long executionStartToCloseTimeoutSeconds) {
         this. = executionStartToCloseTimeoutSeconds;
     }
 
     public StartChildWorkflowExecutionParameters withExecutionStartToCloseTimeoutSeconds(long executionStartToCloseTimeoutSeconds) {
         this. = executionStartToCloseTimeoutSeconds;
         return this;
     }
 
     public String getInput() {
         return ;
     }
 
     public void setInput(String input) {
         this. = input;
     }
 
         this. = input;
         return this;
     }
 
     public List<StringgetTagList() {
         return ;
     }
 
     public void setTagList(List<StringtagList) {
         this. = tagList;
     }
 
         this. = tagList;
         return this;
     }
    public String getTaskList() {
        return ;
    }
    public void setTaskList(String taskList) {
        this. = taskList;
    }
        this. = taskList;
        return this;
    }
    public long getTaskStartToCloseTimeoutSeconds() {
        return ;
    }
    public void setTaskStartToCloseTimeoutSeconds(long taskStartToCloseTimeoutSeconds) {
        this. = taskStartToCloseTimeoutSeconds;
    }
    public StartChildWorkflowExecutionParameters withTaskStartToCloseTimeoutSeconds(long taskStartToCloseTimeoutSeconds) {
        this. = taskStartToCloseTimeoutSeconds;
        return this;
    }
    public String getWorkflowId() {
        return ;
    }
    public void setWorkflowId(String workflowId) {
        this. = workflowId;
    }
        this. = workflowId;
        return this;
    }
    public WorkflowType getWorkflowType() {
        return ;
    }
    public void setWorkflowType(WorkflowType workflowType) {
        this. = workflowType;
    }
        this. = workflowType;
        return this;
    }
    public ChildPolicy getChildPolicy() {
        return ;
    }
    public void setChildPolicy(ChildPolicy childPolicy) {
        this. = childPolicy;
    }
        this. = childPolicy;
        return this;
    }
    
    public int getTaskPriority() {
        return ;
    }
    public void setTaskPriority(int taskPriority) {
        this. = taskPriority;
    }
    public StartChildWorkflowExecutionParameters withTaskPriority(int taskPriority) {
        this. = taskPriority;
        return this;
    }
            StartWorkflowOptions optionsStartWorkflowOptions optionsOverride) {
        StartChildWorkflowExecutionParameters startChildWorkflowExecutionParameters = this.clone();
        if (options != null) {
            Long executionStartToCloseTimeoutSeconds = options.getExecutionStartToCloseTimeoutSeconds();
            if (executionStartToCloseTimeoutSeconds != null) {
                startChildWorkflowExecutionParameters.setExecutionStartToCloseTimeoutSeconds(executionStartToCloseTimeoutSeconds);
            }
            Long taskStartToCloseTimeoutSeconds = options.getTaskStartToCloseTimeoutSeconds();
            if (taskStartToCloseTimeoutSeconds != null) {
                startChildWorkflowExecutionParameters.setTaskStartToCloseTimeoutSeconds(taskStartToCloseTimeoutSeconds);
            }
            List<StringtagList = options.getTagList();
            if (tagList != null) {
                startChildWorkflowExecutionParameters.setTagList(tagList);
            }
            String taskList = options.getTaskList();
            if (taskList != null && !taskList.isEmpty()) {
                startChildWorkflowExecutionParameters.setTaskList(taskList);
            }
            ChildPolicy childPolicy = options.getChildPolicy();
            if (childPolicy != null) {
                startChildWorkflowExecutionParameters.setChildPolicy(childPolicy);
            }
            
            Integer taskPriority = options.getTaskPriority();
            if (taskPriority != null) {
                startChildWorkflowExecutionParameters.setTaskPriority(taskPriority);
            }
        }
        if (optionsOverride != null) {
            Long executionStartToCloseTimeoutSeconds = optionsOverride.getExecutionStartToCloseTimeoutSeconds();
            if (executionStartToCloseTimeoutSeconds != null) {
                startChildWorkflowExecutionParameters.setExecutionStartToCloseTimeoutSeconds(executionStartToCloseTimeoutSeconds);
            }
            Long taskStartToCloseTimeoutSeconds = optionsOverride.getTaskStartToCloseTimeoutSeconds();
            if (taskStartToCloseTimeoutSeconds != null) {
                startChildWorkflowExecutionParameters.setTaskStartToCloseTimeoutSeconds(taskStartToCloseTimeoutSeconds);
            }
            List<StringtagList = optionsOverride.getTagList();
            if (tagList != null) {
                startChildWorkflowExecutionParameters.setTagList(tagList);
            }
            String taskList = optionsOverride.getTaskList();
            if (taskList != null && !taskList.isEmpty()) {
                startChildWorkflowExecutionParameters.setTaskList(taskList);
            }
            ChildPolicy childPolicy = optionsOverride.getChildPolicy();
            if (childPolicy != null) {
                startChildWorkflowExecutionParameters.setChildPolicy(childPolicy);
            }
            Integer taskPriority = optionsOverride.getTaskPriority();
            if (taskPriority != null) {
                startChildWorkflowExecutionParameters.setTaskPriority(taskPriority);
            }
        }
        return startChildWorkflowExecutionParameters;
    }
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        sb.append("WorkflowType: " +  + ", ");
        sb.append("WorkflowId: " +  + ", ");
        sb.append("Input: " +  + ", ");
        sb.append("Control: " +  + ", ");
        sb.append("ExecutionStartToCloseTimeout: " +  + ", ");
        sb.append("TaskStartToCloseTimeout: " +  + ", ");
        sb.append("TagList: " +  + ", ");
        sb.append("TaskList: " +  + ", ");
        sb.append("TaskPriority: " + );
        sb.append("}");
        return sb.toString();
    }
        result.setControl();
        result.setInput();
        result.setTagList();
        result.setTaskList();
        result.setWorkflowId();
        result.setWorkflowType();
        result.setTaskPriority();
        return result;
    }
New to GrepCode? Check out our FAQ X