Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 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.model;
 

Provides details of the ActivityTaskScheduled event.

 
 public class ActivityTaskScheduledEventAttributes implements SerializableCloneable {

    
The type of the activity task.
 
     private ActivityType activityType;

    
The unique id of the activity task.

Constraints:
Length: 1 - 256

 
     private String activityId;

    
The input provided to the activity task.

Constraints:
Length: 0 - 32768

 
     private String input;

    
Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the activity.

Constraints:
Length: 0 - 32768

 
     private String control;

    
The maximum amount of time the activity task can wait to be assigned to a worker.

Constraints:
Length: 0 - 8

 
     private String scheduleToStartTimeout;

    
The maximum amount of time for this activity task.

Constraints:
Length: 0 - 8

 
     private String scheduleToCloseTimeout;

    
The maximum amount of time a worker may take to process the activity task.

Constraints:
Length: 0 - 8

 
     private String startToCloseTimeout;

    
The task list in which the activity task has been scheduled.
 
     private TaskList taskList;

    
Optional. The priority to assign to the scheduled activity task. This will override any default priority that was assigned when the activity type was registered. If not set, then the priority set on the activity type is used as the task priority.

Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.

Constraints:
Length: 0 - 11

    private String taskPriority;

    
The id of the DecisionTaskCompleted event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
    private Long decisionTaskCompletedEventId;

    
The maximum time before which the worker processing this task must report progress by calling RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or return a result, it will be ignored.

Constraints:
Length: 0 - 8

    private String heartbeatTimeout;

    
The type of the activity task.

Returns:
The type of the activity task.
    public ActivityType getActivityType() {
        return ;
    }
    
    
The type of the activity task.

Parameters:
activityType The type of the activity task.
    public void setActivityType(ActivityType activityType) {
        this. = activityType;
    }
    
    
The type of the activity task.

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

Parameters:
activityType The type of the activity task.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = activityType;
        return this;
    }

    
The unique id of the activity task.

Constraints:
Length: 1 - 256

Returns:
The unique id of the activity task.
    public String getActivityId() {
        return ;
    }
    
    
The unique id of the activity task.

Constraints:
Length: 1 - 256

Parameters:
activityId The unique id of the activity task.
    public void setActivityId(String activityId) {
        this. = activityId;
    }
    
    
The unique id of the activity task.

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

Constraints:
Length: 1 - 256

Parameters:
activityId The unique id of the activity task.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = activityId;
        return this;
    }

    
The input provided to the activity task.

Constraints:
Length: 0 - 32768

Returns:
The input provided to the activity task.
    public String getInput() {
        return ;
    }
    
    
The input provided to the activity task.

Constraints:
Length: 0 - 32768

Parameters:
input The input provided to the activity task.
    public void setInput(String input) {
        this. = input;
    }
    
    
The input provided to the activity task.

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

Constraints:
Length: 0 - 32768

Parameters:
input The input provided to the activity task.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = input;
        return this;
    }

    
Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the activity.

Constraints:
Length: 0 - 32768

Returns:
Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the activity.
    public String getControl() {
        return ;
    }
    
    
Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the activity.

Constraints:
Length: 0 - 32768

Parameters:
control Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the activity.
    public void setControl(String control) {
        this. = control;
    }
    
    
Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the activity.

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

Constraints:
Length: 0 - 32768

Parameters:
control Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the activity.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = control;
        return this;
    }

    
The maximum amount of time the activity task can wait to be assigned to a worker.

Constraints:
Length: 0 - 8

Returns:
The maximum amount of time the activity task can wait to be assigned to a worker.
    public String getScheduleToStartTimeout() {
        return ;
    }
    
    
The maximum amount of time the activity task can wait to be assigned to a worker.

Constraints:
Length: 0 - 8

Parameters:
scheduleToStartTimeout The maximum amount of time the activity task can wait to be assigned to a worker.
    public void setScheduleToStartTimeout(String scheduleToStartTimeout) {
        this. = scheduleToStartTimeout;
    }
    
    
The maximum amount of time the activity task can wait to be assigned to a worker.

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

Constraints:
Length: 0 - 8

Parameters:
scheduleToStartTimeout The maximum amount of time the activity task can wait to be assigned to a worker.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = scheduleToStartTimeout;
        return this;
    }

    
The maximum amount of time for this activity task.

Constraints:
Length: 0 - 8

Returns:
The maximum amount of time for this activity task.
    public String getScheduleToCloseTimeout() {
        return ;
    }
    
    
The maximum amount of time for this activity task.

Constraints:
Length: 0 - 8

Parameters:
scheduleToCloseTimeout The maximum amount of time for this activity task.
    public void setScheduleToCloseTimeout(String scheduleToCloseTimeout) {
        this. = scheduleToCloseTimeout;
    }
    
    
The maximum amount of time for this activity task.

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

Constraints:
Length: 0 - 8

Parameters:
scheduleToCloseTimeout The maximum amount of time for this activity task.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = scheduleToCloseTimeout;
        return this;
    }

    
The maximum amount of time a worker may take to process the activity task.

Constraints:
Length: 0 - 8

Returns:
The maximum amount of time a worker may take to process the activity task.
    public String getStartToCloseTimeout() {
        return ;
    }
    
    
The maximum amount of time a worker may take to process the activity task.

Constraints:
Length: 0 - 8

Parameters:
startToCloseTimeout The maximum amount of time a worker may take to process the activity task.
    public void setStartToCloseTimeout(String startToCloseTimeout) {
        this. = startToCloseTimeout;
    }
    
    
The maximum amount of time a worker may take to process the activity task.

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

Constraints:
Length: 0 - 8

Parameters:
startToCloseTimeout The maximum amount of time a worker may take to process the activity task.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = startToCloseTimeout;
        return this;
    }

    
The task list in which the activity task has been scheduled.

Returns:
The task list in which the activity task has been scheduled.
    public TaskList getTaskList() {
        return ;
    }
    
    
The task list in which the activity task has been scheduled.

Parameters:
taskList The task list in which the activity task has been scheduled.
    public void setTaskList(TaskList taskList) {
        this. = taskList;
    }
    
    
The task list in which the activity task has been scheduled.

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

Parameters:
taskList The task list in which the activity task has been scheduled.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = taskList;
        return this;
    }

    
Optional. The priority to assign to the scheduled activity task. This will override any default priority that was assigned when the activity type was registered. If not set, then the priority set on the activity type is used as the task priority.

Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.

Constraints:
Length: 0 - 11

Returns:
Optional. The priority to assign to the scheduled activity task. This will override any default priority that was assigned when the activity type was registered. If not set, then the priority set on the activity type is used as the task priority.

Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.

    public String getTaskPriority() {
        return ;
    }
    
    
Optional. The priority to assign to the scheduled activity task. This will override any default priority that was assigned when the activity type was registered. If not set, then the priority set on the activity type is used as the task priority.

Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.

Constraints:
Length: 0 - 11

Parameters:
taskPriority Optional. The priority to assign to the scheduled activity task. This will override any default priority that was assigned when the activity type was registered. If not set, then the priority set on the activity type is used as the task priority.

Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.

    public void setTaskPriority(String taskPriority) {
        this. = taskPriority;
    }
    
    
Optional. The priority to assign to the scheduled activity task. This will override any default priority that was assigned when the activity type was registered. If not set, then the priority set on the activity type is used as the task priority.

Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.

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

Constraints:
Length: 0 - 11

Parameters:
taskPriority Optional. The priority to assign to the scheduled activity task. This will override any default priority that was assigned when the activity type was registered. If not set, then the priority set on the activity type is used as the task priority.

Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.

Returns:
A reference to this updated object so that method calls can be chained together.
        this. = taskPriority;
        return this;
    }

    
The id of the DecisionTaskCompleted event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

Returns:
The id of the DecisionTaskCompleted event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
        return ;
    }
    
    
The id of the DecisionTaskCompleted event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

Parameters:
decisionTaskCompletedEventId The id of the DecisionTaskCompleted event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
    public void setDecisionTaskCompletedEventId(Long decisionTaskCompletedEventId) {
        this. = decisionTaskCompletedEventId;
    }
    
    
The id of the DecisionTaskCompleted event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

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

Parameters:
decisionTaskCompletedEventId The id of the DecisionTaskCompleted event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ActivityTaskScheduledEventAttributes withDecisionTaskCompletedEventId(Long decisionTaskCompletedEventId) {
        this. = decisionTaskCompletedEventId;
        return this;
    }

    
The maximum time before which the worker processing this task must report progress by calling RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or return a result, it will be ignored.

Constraints:
Length: 0 - 8

Returns:
The maximum time before which the worker processing this task must report progress by calling RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or return a result, it will be ignored.
    public String getHeartbeatTimeout() {
        return ;
    }
    
    
The maximum time before which the worker processing this task must report progress by calling RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or return a result, it will be ignored.

Constraints:
Length: 0 - 8

Parameters:
heartbeatTimeout The maximum time before which the worker processing this task must report progress by calling RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or return a result, it will be ignored.
    public void setHeartbeatTimeout(String heartbeatTimeout) {
        this. = heartbeatTimeout;
    }
    
    
The maximum time before which the worker processing this task must report progress by calling RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or return a result, it will be ignored.

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

Constraints:
Length: 0 - 8

Parameters:
heartbeatTimeout The maximum time before which the worker processing this task must report progress by calling RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or return a result, it will be ignored.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = heartbeatTimeout;
        return this;
    }

    
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("{");
        if (getActivityType() != nullsb.append("ActivityType: " + getActivityType() + ",");
        if (getActivityId() != nullsb.append("ActivityId: " + getActivityId() + ",");
        if (getInput() != nullsb.append("Input: " + getInput() + ",");
        if (getControl() != nullsb.append("Control: " + getControl() + ",");
        if (getScheduleToStartTimeout() != nullsb.append("ScheduleToStartTimeout: " + getScheduleToStartTimeout() + ",");
        if (getScheduleToCloseTimeout() != nullsb.append("ScheduleToCloseTimeout: " + getScheduleToCloseTimeout() + ",");
        if (getStartToCloseTimeout() != nullsb.append("StartToCloseTimeout: " + getStartToCloseTimeout() + ",");
        if (getTaskList() != nullsb.append("TaskList: " + getTaskList() + ",");
        if (getTaskPriority() != nullsb.append("TaskPriority: " + getTaskPriority() + ",");
        if (getDecisionTaskCompletedEventId() != nullsb.append("DecisionTaskCompletedEventId: " + getDecisionTaskCompletedEventId() + ",");
        if (getHeartbeatTimeout() != nullsb.append("HeartbeatTimeout: " + getHeartbeatTimeout() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getActivityType() == null) ? 0 : getActivityType().hashCode()); 
        hashCode = prime * hashCode + ((getActivityId() == null) ? 0 : getActivityId().hashCode()); 
        hashCode = prime * hashCode + ((getInput() == null) ? 0 : getInput().hashCode()); 
        hashCode = prime * hashCode + ((getControl() == null) ? 0 : getControl().hashCode()); 
        hashCode = prime * hashCode + ((getScheduleToStartTimeout() == null) ? 0 : getScheduleToStartTimeout().hashCode()); 
        hashCode = prime * hashCode + ((getScheduleToCloseTimeout() == null) ? 0 : getScheduleToCloseTimeout().hashCode()); 
        hashCode = prime * hashCode + ((getStartToCloseTimeout() == null) ? 0 : getStartToCloseTimeout().hashCode()); 
        hashCode = prime * hashCode + ((getTaskList() == null) ? 0 : getTaskList().hashCode()); 
        hashCode = prime * hashCode + ((getTaskPriority() == null) ? 0 : getTaskPriority().hashCode()); 
        hashCode = prime * hashCode + ((getDecisionTaskCompletedEventId() == null) ? 0 : getDecisionTaskCompletedEventId().hashCode()); 
        hashCode = prime * hashCode + ((getHeartbeatTimeout() == null) ? 0 : getHeartbeatTimeout().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof ActivityTaskScheduledEventAttributes == falsereturn false;
        
        if (other.getActivityType() == null ^ this.getActivityType() == nullreturn false;
        if (other.getActivityType() != null && other.getActivityType().equals(this.getActivityType()) == falsereturn false
        if (other.getActivityId() == null ^ this.getActivityId() == nullreturn false;
        if (other.getActivityId() != null && other.getActivityId().equals(this.getActivityId()) == falsereturn false
        if (other.getInput() == null ^ this.getInput() == nullreturn false;
        if (other.getInput() != null && other.getInput().equals(this.getInput()) == falsereturn false
        if (other.getControl() == null ^ this.getControl() == nullreturn false;
        if (other.getControl() != null && other.getControl().equals(this.getControl()) == falsereturn false
        if (other.getScheduleToStartTimeout() == null ^ this.getScheduleToStartTimeout() == nullreturn false;
        if (other.getScheduleToStartTimeout() != null && other.getScheduleToStartTimeout().equals(this.getScheduleToStartTimeout()) == falsereturn false
        if (other.getScheduleToCloseTimeout() == null ^ this.getScheduleToCloseTimeout() == nullreturn false;
        if (other.getScheduleToCloseTimeout() != null && other.getScheduleToCloseTimeout().equals(this.getScheduleToCloseTimeout()) == falsereturn false
        if (other.getStartToCloseTimeout() == null ^ this.getStartToCloseTimeout() == nullreturn false;
        if (other.getStartToCloseTimeout() != null && other.getStartToCloseTimeout().equals(this.getStartToCloseTimeout()) == falsereturn false
        if (other.getTaskList() == null ^ this.getTaskList() == nullreturn false;
        if (other.getTaskList() != null && other.getTaskList().equals(this.getTaskList()) == falsereturn false
        if (other.getTaskPriority() == null ^ this.getTaskPriority() == nullreturn false;
        if (other.getTaskPriority() != null && other.getTaskPriority().equals(this.getTaskPriority()) == falsereturn false
        if (other.getDecisionTaskCompletedEventId() == null ^ this.getDecisionTaskCompletedEventId() == nullreturn false;
        if (other.getDecisionTaskCompletedEventId() != null && other.getDecisionTaskCompletedEventId().equals(this.getDecisionTaskCompletedEventId()) == falsereturn false
        if (other.getHeartbeatTimeout() == null ^ this.getHeartbeatTimeout() == nullreturn false;
        if (other.getHeartbeatTimeout() != null && other.getHeartbeatTimeout().equals(this.getHeartbeatTimeout()) == falsereturn false
        return true;
    }
    
    @Override
        try {
            return (ActivityTaskScheduledEventAttributessuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X