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;
 
 
 
     private String workflowId;
     
     private WorkflowType workflowType;
     
     private String taskList;
     
     private String input;
     
     
     
     private java.util.List<StringtagList;
     
     private int taskPriority;
    
    
Returns the value of the WorkflowId property for this object.

Constraints:
Length: 1 - 64

Returns:
The value of the WorkflowId property for this object.
 
     public String getWorkflowId() {
         return ;
     }
    
    
Sets the value of the WorkflowId property for this object.

Constraints:
Length: 1 - 64

Parameters:
workflowId The new value for the WorkflowId property for this object.
 
     public void setWorkflowId(String workflowId) {
         this. = workflowId;
     }
    
    
Sets the value of the WorkflowId property for this object.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 64

Parameters:
workflowId The new value for the WorkflowId property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public StartWorkflowExecutionParameters withWorkflowId(String workflowId) {
         this. = workflowId;
         return this;
     }
    
    
    
Returns the value of the WorkflowType property for this object.

Returns:
The value of the WorkflowType property for this object.
 
     public WorkflowType getWorkflowType() {
         return ;
     }
    
    
Sets the value of the WorkflowType property for this object.

Parameters:
workflowType The new value for the WorkflowType property for this object.
 
     public void setWorkflowType(WorkflowType workflowType) {
         this. = workflowType;
     }
    
    
Sets the value of the WorkflowType property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
workflowType The new value for the WorkflowType property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = workflowType;
        return this;
    }
    
    
    
Returns the value of the TaskList property for this object.

Returns:
The value of the TaskList property for this object.
    public String getTaskList() {
        return ;
    }
    
    
Sets the value of the TaskList property for this object.

Parameters:
taskList The new value for the TaskList property for this object.
    public void setTaskList(String taskList) {
        this. = taskList;
    }
    
    
Sets the value of the TaskList property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
taskList The new value for the TaskList property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = taskList;
        return this;
    }
    
    
    
Returns the value of the Input property for this object.

Constraints:
Length: 0 - 100000

Returns:
The value of the Input property for this object.
    public String getInput() {
        return ;
    }
    
    
Sets the value of the Input property for this object.

Constraints:
Length: 0 - 100000

Parameters:
input The new value for the Input property for this object.
    public void setInput(String input) {
        this. = input;
    }
    
    
Sets the value of the Input property for this object.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 100000

Parameters:
input The new value for the Input property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = input;
        return this;
    }
    
    
    
Returns the value of the StartToCloseTimeout property for this object.

Constraints:
Length: 0 - 64

Returns:
The value of the StartToCloseTimeout property for this object.
    public long getExecutionStartToCloseTimeout() {
    }
    
    
Sets the value of the StartToCloseTimeout property for this object.

Constraints:
Length: 0 - 64

Parameters:
startToCloseTimeout The new value for the StartToCloseTimeout property for this object.
    public void setExecutionStartToCloseTimeoutSeconds(long executionStartToCloseTimeoutSeconds) {
        this. = executionStartToCloseTimeoutSeconds;
    }
    
    
Sets the value of the StartToCloseTimeout property for this object.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 64

Parameters:
startToCloseTimeout The new value for the StartToCloseTimeout property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
    public StartWorkflowExecutionParameters withExecutionStartToCloseTimeoutSeconds(long executionStartToCloseTimeoutSeconds) {
        this. = executionStartToCloseTimeoutSeconds;
        return this;
    }
    
    public long getTaskStartToCloseTimeoutSeconds() {
        return ;
    }
    
    public void setTaskStartToCloseTimeoutSeconds(long taskStartToCloseTimeoutSeconds) {
        this. = taskStartToCloseTimeoutSeconds;
    }
    
    public StartWorkflowExecutionParameters withTaskStartToCloseTimeoutSeconds(long taskStartToCloseTimeoutSeconds) {
        this. = taskStartToCloseTimeoutSeconds;
        return this;
    }
    
    
Returns the value of the TagList property for this object.

Constraints:
Length: 0 - 5

Returns:
The value of the TagList property for this object.
    public java.util.List<StringgetTagList() {
        if ( == null) {
             = new java.util.ArrayList<String>();
        }
        return ;
    }
    
    
Sets the value of the TagList property for this object.

Constraints:
Length: 0 - 5

Parameters:
tagList The new value for the TagList property for this object.
    public void setTagList(java.util.Collection<StringtagList) {
        java.util.List<StringtagListCopy = new java.util.ArrayList<String>();
        if (tagList != null) {
            tagListCopy.addAll(tagList);
        }
        this. = tagListCopy;
    }
    
    
Sets the value of the TagList property for this object.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 5

Parameters:
tagList The new value for the TagList property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
    public StartWorkflowExecutionParameters withTagList(String... tagList) {
        for (String value : tagList) {
            getTagList().add(value);
        }
        return this;
    }
    
    
Sets the value of the TagList property for this object.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 5

Parameters:
tagList The new value for the TagList property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
        java.util.List<StringtagListCopy = new java.util.ArrayList<String>();
        if (tagList != null) {
            tagListCopy.addAll(tagList);
        }
        this. = tagListCopy;
        return this;
    }
    
    public int getTaskPriority() {
        return ;
    }
    public void setTaskPriority(int taskPriority) {
        this. = taskPriority;
    }
    public StartWorkflowExecutionParameters withTaskPriority(int taskPriority) {
        this. = taskPriority;
        return this;
    }
    
    		StartWorkflowOptions optionsOverride) {
    	StartWorkflowExecutionParameters parameters = this.clone();
    	
    	if (options != null) {
    		Long executionStartToCloseTimeout = options.getExecutionStartToCloseTimeoutSeconds();
    		if (executionStartToCloseTimeout != null) {
    			parameters.setExecutionStartToCloseTimeoutSeconds(executionStartToCloseTimeout);
    		}
    		
    		Long taskStartToCloseTimeout = options.getTaskStartToCloseTimeoutSeconds();
            if (taskStartToCloseTimeout != null) {
                parameters.setTaskStartToCloseTimeoutSeconds(taskStartToCloseTimeout);
            }
    		
    		java.util.Collection<StringtagList = options.getTagList();
    		if (tagList != null) {
    			parameters.setTagList(tagList);
    		}
    		
    		String taskList = options.getTaskList();
    		if (taskList != null && !taskList.isEmpty()) { 
    			parameters.setTaskList(taskList);
    		}
    		
            Integer taskPriority = options.getTaskPriority();
            if (taskPriority != null) {
                parameters.setTaskPriority(taskPriority);
            }
    	}
    	
    	if (optionsOverride != null) {
    	    Long executionStartToCloseTimeout = optionsOverride.getExecutionStartToCloseTimeoutSeconds();
            if (executionStartToCloseTimeout != null) {
                parameters.setExecutionStartToCloseTimeoutSeconds(executionStartToCloseTimeout);
            }
            
            Long taskStartToCloseTimeout = optionsOverride.getTaskStartToCloseTimeoutSeconds();
            if (taskStartToCloseTimeout != null) {
                parameters.setTaskStartToCloseTimeoutSeconds(taskStartToCloseTimeout);
            }
            
    		java.util.Collection<StringtagList = optionsOverride.getTagList();
    		if (tagList != null) {
    			parameters.setTagList(tagList);
    		}
    		
    		String taskList = optionsOverride.getTaskList();
    		if (taskList != null && !taskList.isEmpty()) { 
    			parameters.setTaskList(taskList);
    		}
    		
            Integer taskPriority = optionsOverride.getTaskPriority();
            if (taskPriority != null) {
                parameters.setTaskPriority(taskPriority);
            }
    	}
    	
    	return parameters;
    }
    
    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        sb.append("WorkflowId: " +  + ", ");
        sb.append("WorkflowType: " +  + ", ");
        sb.append("TaskList: " +  + ", ");
        sb.append("Input: " +  + ", ");
        sb.append("StartToCloseTimeout: " +  + ", ");
        sb.append("TagList: " +  + ", ");
        sb.append("TaskPriority: " + );
        sb.append("}");
        return sb.toString();
    }
    
        result.setInput();
        result.setTagList();
        result.setTaskList();
        result.setWorkflowId();
        result.setWorkflowType();
        result.setTaskPriority();
        return result;
    }
}
    
New to GrepCode? Check out our FAQ X