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;
 

Contains details about a workflow execution.

 
 public class WorkflowExecutionDetail implements SerializableCloneable {

    
Information about the workflow execution.
 
     private WorkflowExecutionInfo executionInfo;

    
The configuration settings for this workflow execution including timeout values, tasklist etc.
 
The number of tasks for this workflow execution. This includes open and closed tasks of all types.
 
     private WorkflowExecutionOpenCounts openCounts;

    
The time when the last activity task was scheduled for this workflow execution. You can use this information to determine if the workflow has not made progress for an unusually long period of time and might require a corrective action.
 
     private java.util.Date latestActivityTaskTimestamp;

    
The latest executionContext provided by the decider for this workflow execution. A decider can provide an executionContext (a free-form string) when closing a decision task using RespondDecisionTaskCompleted.

Constraints:
Length: 0 - 32768

 
     private String latestExecutionContext;

    
Information about the workflow execution.

Returns:
Information about the workflow execution.
 
         return ;
     }
    
    
Information about the workflow execution.

Parameters:
executionInfo Information about the workflow execution.
 
     public void setExecutionInfo(WorkflowExecutionInfo executionInfo) {
         this. = executionInfo;
     }
    
    
Information about the workflow execution.

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

Parameters:
executionInfo Information about the workflow execution.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         this. = executionInfo;
         return this;
     }

    
The configuration settings for this workflow execution including timeout values, tasklist etc.

Returns:
The configuration settings for this workflow execution including timeout values, tasklist etc.
        return ;
    }
    
    
The configuration settings for this workflow execution including timeout values, tasklist etc.

Parameters:
executionConfiguration The configuration settings for this workflow execution including timeout values, tasklist etc.
    public void setExecutionConfiguration(WorkflowExecutionConfiguration executionConfiguration) {
        this. = executionConfiguration;
    }
    
    
The configuration settings for this workflow execution including timeout values, tasklist etc.

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

Parameters:
executionConfiguration The configuration settings for this workflow execution including timeout values, tasklist etc.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = executionConfiguration;
        return this;
    }

    
The number of tasks for this workflow execution. This includes open and closed tasks of all types.

Returns:
The number of tasks for this workflow execution. This includes open and closed tasks of all types.
        return ;
    }
    
    
The number of tasks for this workflow execution. This includes open and closed tasks of all types.

Parameters:
openCounts The number of tasks for this workflow execution. This includes open and closed tasks of all types.
    public void setOpenCounts(WorkflowExecutionOpenCounts openCounts) {
        this. = openCounts;
    }
    
    
The number of tasks for this workflow execution. This includes open and closed tasks of all types.

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

Parameters:
openCounts The number of tasks for this workflow execution. This includes open and closed tasks of all types.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = openCounts;
        return this;
    }

    
The time when the last activity task was scheduled for this workflow execution. You can use this information to determine if the workflow has not made progress for an unusually long period of time and might require a corrective action.

Returns:
The time when the last activity task was scheduled for this workflow execution. You can use this information to determine if the workflow has not made progress for an unusually long period of time and might require a corrective action.
        return ;
    }
    
    
The time when the last activity task was scheduled for this workflow execution. You can use this information to determine if the workflow has not made progress for an unusually long period of time and might require a corrective action.

Parameters:
latestActivityTaskTimestamp The time when the last activity task was scheduled for this workflow execution. You can use this information to determine if the workflow has not made progress for an unusually long period of time and might require a corrective action.
    public void setLatestActivityTaskTimestamp(java.util.Date latestActivityTaskTimestamp) {
        this. = latestActivityTaskTimestamp;
    }
    
    
The time when the last activity task was scheduled for this workflow execution. You can use this information to determine if the workflow has not made progress for an unusually long period of time and might require a corrective action.

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

Parameters:
latestActivityTaskTimestamp The time when the last activity task was scheduled for this workflow execution. You can use this information to determine if the workflow has not made progress for an unusually long period of time and might require a corrective action.
Returns:
A reference to this updated object so that method calls can be chained together.
    public WorkflowExecutionDetail withLatestActivityTaskTimestamp(java.util.Date latestActivityTaskTimestamp) {
        this. = latestActivityTaskTimestamp;
        return this;
    }

    
The latest executionContext provided by the decider for this workflow execution. A decider can provide an executionContext (a free-form string) when closing a decision task using RespondDecisionTaskCompleted.

Constraints:
Length: 0 - 32768

Returns:
The latest executionContext provided by the decider for this workflow execution. A decider can provide an executionContext (a free-form string) when closing a decision task using RespondDecisionTaskCompleted.
    public String getLatestExecutionContext() {
        return ;
    }
    
    
The latest executionContext provided by the decider for this workflow execution. A decider can provide an executionContext (a free-form string) when closing a decision task using RespondDecisionTaskCompleted.

Constraints:
Length: 0 - 32768

Parameters:
latestExecutionContext The latest executionContext provided by the decider for this workflow execution. A decider can provide an executionContext (a free-form string) when closing a decision task using RespondDecisionTaskCompleted.
    public void setLatestExecutionContext(String latestExecutionContext) {
        this. = latestExecutionContext;
    }
    
    
The latest executionContext provided by the decider for this workflow execution. A decider can provide an executionContext (a free-form string) when closing a decision task using RespondDecisionTaskCompleted.

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

Constraints:
Length: 0 - 32768

Parameters:
latestExecutionContext The latest executionContext provided by the decider for this workflow execution. A decider can provide an executionContext (a free-form string) when closing a decision task using RespondDecisionTaskCompleted.
Returns:
A reference to this updated object so that method calls can be chained together.
    public WorkflowExecutionDetail withLatestExecutionContext(String latestExecutionContext) {
        this. = latestExecutionContext;
        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 (getExecutionInfo() != nullsb.append("ExecutionInfo: " + getExecutionInfo() + ",");
        if (getExecutionConfiguration() != nullsb.append("ExecutionConfiguration: " + getExecutionConfiguration() + ",");
        if (getOpenCounts() != nullsb.append("OpenCounts: " + getOpenCounts() + ",");
        if (getLatestActivityTaskTimestamp() != nullsb.append("LatestActivityTaskTimestamp: " + getLatestActivityTaskTimestamp() + ",");
        if (getLatestExecutionContext() != nullsb.append("LatestExecutionContext: " + getLatestExecutionContext() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getExecutionInfo() == null) ? 0 : getExecutionInfo().hashCode()); 
        hashCode = prime * hashCode + ((getExecutionConfiguration() == null) ? 0 : getExecutionConfiguration().hashCode()); 
        hashCode = prime * hashCode + ((getOpenCounts() == null) ? 0 : getOpenCounts().hashCode()); 
        hashCode = prime * hashCode + ((getLatestActivityTaskTimestamp() == null) ? 0 : getLatestActivityTaskTimestamp().hashCode()); 
        hashCode = prime * hashCode + ((getLatestExecutionContext() == null) ? 0 : getLatestExecutionContext().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof WorkflowExecutionDetail == falsereturn false;
        WorkflowExecutionDetail other = (WorkflowExecutionDetail)obj;
        
        if (other.getExecutionInfo() == null ^ this.getExecutionInfo() == nullreturn false;
        if (other.getExecutionInfo() != null && other.getExecutionInfo().equals(this.getExecutionInfo()) == falsereturn false
        if (other.getExecutionConfiguration() == null ^ this.getExecutionConfiguration() == nullreturn false;
        if (other.getExecutionConfiguration() != null && other.getExecutionConfiguration().equals(this.getExecutionConfiguration()) == falsereturn false
        if (other.getOpenCounts() == null ^ this.getOpenCounts() == nullreturn false;
        if (other.getOpenCounts() != null && other.getOpenCounts().equals(this.getOpenCounts()) == falsereturn false
        if (other.getLatestActivityTaskTimestamp() == null ^ this.getLatestActivityTaskTimestamp() == nullreturn false;
        if (other.getLatestActivityTaskTimestamp() != null && other.getLatestActivityTaskTimestamp().equals(this.getLatestActivityTaskTimestamp()) == falsereturn false
        if (other.getLatestExecutionContext() == null ^ this.getLatestExecutionContext() == nullreturn false;
        if (other.getLatestExecutionContext() != null && other.getLatestExecutionContext().equals(this.getLatestExecutionContext()) == falsereturn false
        return true;
    }
    
    @Override
    public WorkflowExecutionDetail clone() {
        try {
            return (WorkflowExecutionDetailsuper.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