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;
 
 
 public class ExecuteActivityParameters implements Cloneable {
     private String activityId;
     private ActivityType activityType;
     private String control;
     private String input;
     private String taskList;
     private int taskPriority;
     
     public ExecuteActivityParameters() {
     }
    
    
Returns the value of the Control property for this object.

Constraints:
Length: 0 - 100000

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

Constraints:
Length: 0 - 100000

Parameters:
control The new value for the Control property for this object.
 
     public void setControl(String control) {
         this. = control;
     }
    
    
Sets the value of the Control property for this object.

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

Constraints:
Length: 0 - 100000

Parameters:
control The new value for the Control property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ExecuteActivityParameters withControl(String control) {
         this. = control;
         return this;
     }
    
    
Returns the value of the ActivityType property for this object.

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

Parameters:
activityType The new value for the ActivityType property for this object.
 
     public void setActivityType(ActivityType activityType) {
         this. = activityType;
     }
    
    
Sets the value of the ActivityType property for this object.

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

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

Constraints:
Length: 1 - 64

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

Constraints:
Length: 1 - 64

Parameters:
activityId The new value for the ActivityId property for this object.
    public void setActivityId(String activityId) {
        this. = activityId;
    }
    
    
Sets the value of the ActivityId property for this object.

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

Constraints:
Length: 1 - 64

Parameters:
activityId The new value for the ActivityId property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ExecuteActivityParameters withActivityId(String activityId) {
        this. = activityId;
        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.
    public ExecuteActivityParameters withInput(String input) {
        this. = input;
        return this;
    }    
    
    public long getHeartbeatTimeoutSeconds() {
        return ;
    }
    
    public void setHeartbeatTimeoutSeconds(long heartbeatTimeoutSeconds) {
        this. = heartbeatTimeoutSeconds;
    }
    
    public ExecuteActivityParameters withHeartbeatTimeoutSeconds(long heartbeatTimeoutSeconds) {
        this. = heartbeatTimeoutSeconds;
        return this;
    }
    
    
    
Returns the value of the ScheduleToStartTimeout property for this object.

Constraints:
Length: 1 - 64

Returns:
The value of the ScheduleToStartTimeout property for this object.
    public long getScheduleToStartTimeoutSeconds() {
        return ;
    }
    
    
Sets the value of the ScheduleToStartTimeout property for this object.

Constraints:
Length: 1 - 64

Parameters:
scheduleToStartTimeoutSeconds The new value for the ScheduleToStartTimeout property for this object.
    public void setScheduleToStartTimeoutSeconds(long scheduleToStartTimeoutSeconds) {
        this. = scheduleToStartTimeoutSeconds;
    }
    
    
Sets the value of the ScheduleToStartTimeout property for this object.

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

Constraints:
Length: 1 - 64

Parameters:
scheduleToStartTimeoutSeconds The new value for the ScheduleToStartTimeout property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ExecuteActivityParameters withScheduleToStartTimeoutSeconds(long scheduleToStartTimeoutSeconds) {
        this. = scheduleToStartTimeoutSeconds;
        return this;
    }
    
    
    
Returns the value of the ScheduleToCloseTimeout property for this object.

Constraints:
Length: 1 - 64

Returns:
The value of the ScheduleToCloseTimeout property for this object.
    public long getScheduleToCloseTimeoutSeconds() {
        return ;
    }
    
    
Sets the value of the ScheduleToCloseTimeout property for this object.

Constraints:
Length: 1 - 64

Parameters:
scheduleToCloseTimeoutSeconds The new value for the ScheduleToCloseTimeout property for this object.
    public void setScheduleToCloseTimeoutSeconds(long scheduleToCloseTimeoutSeconds) {
        this. = scheduleToCloseTimeoutSeconds;
    }
    
    
Sets the value of the ScheduleToCloseTimeout property for this object.

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

Constraints:
Length: 1 - 64

Parameters:
scheduleToCloseTimeoutSeconds The new value for the ScheduleToCloseTimeout property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ExecuteActivityParameters withScheduleToCloseTimeoutSeconds(long scheduleToCloseTimeoutSeconds) {
        this. = scheduleToCloseTimeoutSeconds;
        return this;
    }
    
    public long getStartToCloseTimeoutSeconds() {
        return ;
    }
    
    public void setStartToCloseTimeoutSeconds(long startToCloseTimeoutSeconds) {
        this. = startToCloseTimeoutSeconds;
    }
    
    public ExecuteActivityParameters withStartToCloseTimeoutSeconds(long startToCloseTimeoutSeconds) {
        this. = startToCloseTimeoutSeconds;
        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.
    public ExecuteActivityParameters withTaskList(String taskList) {
        this. = taskList;
        return this;
    }
    public int getTaskPriority() {
        return ;
    }
    public void setTaskPriority(int taskPriority) {
        this. = taskPriority;
    }
    public ExecuteActivityParameters withTaskPriority(int taskPriority) {
        this. = taskPriority;
        return this;
    }
    		ActivitySchedulingOptions optionsOverride) {
    	ExecuteActivityParameters scheduleActivityParameters = this.clone();
    	
    	if (options != null) {
    	    Long heartbeatTimeoutSeconds = options.getHeartbeatTimeoutSeconds();
    	    if (heartbeatTimeoutSeconds != null) {
    	        scheduleActivityParameters.setHeartbeatTimeoutSeconds(heartbeatTimeoutSeconds);
    	    }
    	    
    		Long scheduleToCloseTimeout = options.getScheduleToCloseTimeoutSeconds();
    		if (scheduleToCloseTimeout != null) {
    			scheduleActivityParameters.setScheduleToCloseTimeoutSeconds(scheduleToCloseTimeout);
    		}
    		
    		Long scheduleToStartTimeout = options.getScheduleToStartTimeoutSeconds();
    		if (scheduleToStartTimeout != null) {
    			scheduleActivityParameters.setScheduleToStartTimeoutSeconds(scheduleToStartTimeout);
    		}
    		
    		Long startToCloseTimeoutSeconds = options.getStartToCloseTimeoutSeconds();
    		if (startToCloseTimeoutSeconds != null) {
    		    scheduleActivityParameters.setStartToCloseTimeoutSeconds(startToCloseTimeoutSeconds);
    		}
    		
    		String taskList = options.getTaskList();
    		if (taskList != null && !taskList.isEmpty()) { 
    			scheduleActivityParameters.setTaskList(taskList);
    		}
    		
            Integer taskPriority = options.getTaskPriority();
            if (taskPriority != null) {
                scheduleActivityParameters.setTaskPriority(taskPriority);
            }
    	}
    	
    	if (optionsOverride != null) {    
    	    Long heartbeatTimeoutSeconds = optionsOverride.getHeartbeatTimeoutSeconds();
            if (heartbeatTimeoutSeconds != null) {
                scheduleActivityParameters.setHeartbeatTimeoutSeconds(heartbeatTimeoutSeconds);
            }
            
    		Long scheduleToCloseTimeout = optionsOverride.getScheduleToCloseTimeoutSeconds();
    		if (scheduleToCloseTimeout != null) {
    			scheduleActivityParameters.setScheduleToCloseTimeoutSeconds(scheduleToCloseTimeout);
    		}
    		
    		Long scheduleToStartTimeout = optionsOverride.getScheduleToStartTimeoutSeconds();
    		if (scheduleToStartTimeout != null) {
    			scheduleActivityParameters.setScheduleToStartTimeoutSeconds(scheduleToStartTimeout);
    		}
    		
    		Long startToCloseTimeoutSeconds = optionsOverride.getStartToCloseTimeoutSeconds();
            if (startToCloseTimeoutSeconds != null) {
                scheduleActivityParameters.setStartToCloseTimeoutSeconds(startToCloseTimeoutSeconds);
            }
    		
    		String taskList = optionsOverride.getTaskList();
    		if (taskList != null && !taskList.isEmpty()) { 
    			scheduleActivityParameters.setTaskList(taskList);
    		}
    		
            Integer taskPriority = optionsOverride.getTaskPriority();
            if (taskPriority != null) {
                scheduleActivityParameters.setTaskPriority(taskPriority);
            }
    	}
    	
    	return scheduleActivityParameters;
    }
    
    
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("ActivityType: " +  + ", ");
        sb.append("ActivityId: " +  + ", ");
        sb.append("Input: " +  + ", ");
        sb.append("Control: " +  + ", ");
        sb.append("HeartbeatTimeout: " +  + ", ");
        sb.append("ScheduleToStartTimeout: " +  + ", ");
        sb.append("ScheduleToCloseTimeout: " +  + ", ");
        sb.append("StartToCloseTimeout: " +  + ", ");
        sb.append("TaskList: " +  + ", ");
        sb.append("TaskPriority: " + );
        sb.append("}");
        return sb.toString();
    }
    public ExecuteActivityParameters clone() {
        ExecuteActivityParameters result = new ExecuteActivityParameters();
        result.setActivityType();
        result.setActivityId();
        result.setInput();
        result.setControl();
        result.setTaskList();
        result.setTaskPriority();
        return result;
    }
New to GrepCode? Check out our FAQ X