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 the count of workflow executions returned from CountOpenWorkflowExecutions or CountClosedWorkflowExecutions

 
 public class WorkflowExecutionCount implements SerializableCloneable {

    
The number of workflow executions.

Constraints:
Range: 0 -

 
     private Integer count;

    
If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.
 
     private Boolean truncated;

    
The number of workflow executions.

Constraints:
Range: 0 -

Returns:
The number of workflow executions.
 
     public Integer getCount() {
         return ;
     }
    
    
The number of workflow executions.

Constraints:
Range: 0 -

Parameters:
count The number of workflow executions.
 
     public void setCount(Integer count) {
         this. = count;
     }
    
    
The number of workflow executions.

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

Constraints:
Range: 0 -

Parameters:
count The number of workflow executions.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public WorkflowExecutionCount withCount(Integer count) {
         this. = count;
         return this;
     }

    
If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.

Returns:
If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.
 
     public Boolean isTruncated() {
         return ;
     }
    
    
If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.

Parameters:
truncated If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.
    public void setTruncated(Boolean truncated) {
        this. = truncated;
    }
    
    
If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.

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

Parameters:
truncated If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.
Returns:
A reference to this updated object so that method calls can be chained together.
    public WorkflowExecutionCount withTruncated(Boolean truncated) {
        this. = truncated;
        return this;
    }

    
If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.

Returns:
If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.
    public Boolean getTruncated() {
        return ;
    }

    
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 (getCount() != nullsb.append("Count: " + getCount() + ",");
        if (isTruncated() != nullsb.append("Truncated: " + isTruncated() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getCount() == null) ? 0 : getCount().hashCode()); 
        hashCode = prime * hashCode + ((isTruncated() == null) ? 0 : isTruncated().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof WorkflowExecutionCount == falsereturn false;
        WorkflowExecutionCount other = (WorkflowExecutionCount)obj;
        
        if (other.getCount() == null ^ this.getCount() == nullreturn false;
        if (other.getCount() != null && other.getCount().equals(this.getCount()) == falsereturn false
        if (other.isTruncated() == null ^ this.isTruncated() == nullreturn false;
        if (other.isTruncated() != null && other.isTruncated().equals(this.isTruncated()) == falsereturn false
        return true;
    }
    
    @Override
    public WorkflowExecutionCount clone() {
        try {
            return (WorkflowExecutionCountsuper.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