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;
 
 
 
     private String workflowTypeVersion;
     private String input;
     private List<StringtagList;
     private String taskList;
     private ChildPolicy childPolicy;
     private int taskPriority;
     
     }
     
     public String getWorkflowTypeVersion() {
         return ;
     }
     
     public void setWorkflowTypeVersion(String workflowTypeVersion) {
         this. = workflowTypeVersion;
     }
     
     public ChildPolicy getChildPolicy() {
         return ;
     }
     
     public void setChildPolicy(ChildPolicy childPolicy) {
         this. = childPolicy;
     }
 
     public long getExecutionStartToCloseTimeoutSeconds() {
         return ;
     }
     
     public void setExecutionStartToCloseTimeoutSeconds(long executionStartToCloseTimeoutSeconds) {
         this. = executionStartToCloseTimeoutSeconds;
     }
     
     public ContinueAsNewWorkflowExecutionParameters 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 int getTaskPriority() {
        return ;
    }
    public void setTaskPriority(int taskPriority) {
        this. = taskPriority;
    }
    public ContinueAsNewWorkflowExecutionParameters withTaskPriority(int taskPriority) {
        this. = taskPriority;
        return this;
    }
    public long getTaskStartToCloseTimeoutSeconds() {
        return ;
    }
    
    public void setTaskStartToCloseTimeoutSeconds(long taskStartToCloseTimeoutSeconds) {
        this. = taskStartToCloseTimeoutSeconds;
    }
    
    public ContinueAsNewWorkflowExecutionParameters withTaskStartToCloseTimeoutSeconds(long taskStartToCloseTimeoutSeconds) {
        this. = taskStartToCloseTimeoutSeconds;
        return this;
    }
            StartWorkflowOptions optionsOverride) {
        ContinueAsNewWorkflowExecutionParameters continueAsNewWorkflowExecutionParameters = this.clone();
        
        if (options != null) {
            Long executionStartToCloseTimeoutSeconds = options.getExecutionStartToCloseTimeoutSeconds();
            if (executionStartToCloseTimeoutSeconds != null) {
                continueAsNewWorkflowExecutionParameters.setExecutionStartToCloseTimeoutSeconds(executionStartToCloseTimeoutSeconds);
            }
            
            Long taskStartToCloseTimeoutSeconds = options.getTaskStartToCloseTimeoutSeconds();
            if (taskStartToCloseTimeoutSeconds != null) {
                continueAsNewWorkflowExecutionParameters.setTaskStartToCloseTimeoutSeconds(taskStartToCloseTimeoutSeconds);
            }
            
            List<StringtagList = options.getTagList();
            if (tagList != null) {
                continueAsNewWorkflowExecutionParameters.setTagList(tagList);
            }
            
            String taskList = options.getTaskList();
            if (taskList != null && !taskList.isEmpty()) { 
                continueAsNewWorkflowExecutionParameters.setTaskList(taskList);
            }
            
            ChildPolicy childPolicy = options.getChildPolicy();
            if (childPolicy != null) {
                continueAsNewWorkflowExecutionParameters.setChildPolicy(childPolicy);
            }
            
            Integer taskPriority = options.getTaskPriority();
            if (taskPriority != null) {
                continueAsNewWorkflowExecutionParameters.setTaskPriority(taskPriority);
            }
        }
        
        if (optionsOverride != null) {    
            Long executionStartToCloseTimeoutSeconds = optionsOverride.getExecutionStartToCloseTimeoutSeconds();
            if (executionStartToCloseTimeoutSeconds != null) {
                continueAsNewWorkflowExecutionParameters.setExecutionStartToCloseTimeoutSeconds(executionStartToCloseTimeoutSeconds);
            }
            
            Long taskStartToCloseTimeoutSeconds = optionsOverride.getTaskStartToCloseTimeoutSeconds();
            if (taskStartToCloseTimeoutSeconds != null) {
                continueAsNewWorkflowExecutionParameters.setTaskStartToCloseTimeoutSeconds(taskStartToCloseTimeoutSeconds);
            }
            
            List<StringtagList = optionsOverride.getTagList();
            if (tagList != null) {
                continueAsNewWorkflowExecutionParameters.setTagList(tagList);
            }
            
            String taskList = optionsOverride.getTaskList();
            if (taskList != null && !taskList.isEmpty()) { 
                continueAsNewWorkflowExecutionParameters.setTaskList(taskList);
            }
            
            ChildPolicy childPolicy = optionsOverride.getChildPolicy();
            if (childPolicy != null) {
                continueAsNewWorkflowExecutionParameters.setChildPolicy(childPolicy);
            }
            
            Integer taskPriority = optionsOverride.getTaskPriority();
            if (taskPriority != null) {
                continueAsNewWorkflowExecutionParameters.setTaskPriority(taskPriority);
            }
        }
        
        return continueAsNewWorkflowExecutionParameters;
    }
    
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        sb.append("Input: " +  + ", ");
        sb.append("ExecutionStartToCloseTimeout: " +  + ", ");
        sb.append("TaskStartToCloseTimeout: " +  + ", ");
        sb.append("TagList: " +  + ", ");
        sb.append("TaskList: " +  + ", ");
        sb.append("TaskPriority: " + );
        sb.append("}");
        return sb.toString();
    }
    
        result.setInput();
        result.setTagList();
        result.setTaskList();
        result.setChildPolicy();
        result.setTaskPriority();
        return result;
    }
New to GrepCode? Check out our FAQ X