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.importexport.model;
 

Output structure for the ListJobs operation.

 
 public class ListJobsResult implements SerializableCloneable {

    
A list container for Jobs returned by the ListJobs operation.
 
Indicates whether the list of jobs was truncated. If true, then call ListJobs again using the last JobId element as the marker.
 
     private Boolean isTruncated;

    
A list container for Jobs returned by the ListJobs operation.

Returns:
A list container for Jobs returned by the ListJobs operation.
 
     public java.util.List<JobgetJobs() {
         if ( == null) {
                = new com.amazonaws.internal.ListWithAutoConstructFlag<Job>();
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
A list container for Jobs returned by the ListJobs operation.

Parameters:
jobs A list container for Jobs returned by the ListJobs operation.
 
     public void setJobs(java.util.Collection<Jobjobs) {
         if (jobs == null) {
             this. = null;
             return;
         }
         jobsCopy.addAll(jobs);
         this. = jobsCopy;
     }
    
    
A list container for Jobs returned by the ListJobs operation.

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

Parameters:
jobs A list container for Jobs returned by the ListJobs operation.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ListJobsResult withJobs(Job... jobs) {
         if (getJobs() == nullsetJobs(new java.util.ArrayList<Job>(jobs.length));
         for (Job value : jobs) {
             getJobs().add(value);
         }
         return this;
     }
    
    
A list container for Jobs returned by the ListJobs operation.

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

Parameters:
jobs A list container for Jobs returned by the ListJobs operation.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ListJobsResult withJobs(java.util.Collection<Jobjobs) {
         if (jobs == null) {
             this. = null;
         } else {
             jobsCopy.addAll(jobs);
             this. = jobsCopy;
        }
        return this;
    }

    
Indicates whether the list of jobs was truncated. If true, then call ListJobs again using the last JobId element as the marker.

Returns:
Indicates whether the list of jobs was truncated. If true, then call ListJobs again using the last JobId element as the marker.
    public Boolean isTruncated() {
        return ;
    }
    
    
Indicates whether the list of jobs was truncated. If true, then call ListJobs again using the last JobId element as the marker.

Parameters:
isTruncated Indicates whether the list of jobs was truncated. If true, then call ListJobs again using the last JobId element as the marker.
    public void setIsTruncated(Boolean isTruncated) {
        this. = isTruncated;
    }
    
    
Indicates whether the list of jobs was truncated. If true, then call ListJobs again using the last JobId element as the marker.

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

Parameters:
isTruncated Indicates whether the list of jobs was truncated. If true, then call ListJobs again using the last JobId element as the marker.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ListJobsResult withIsTruncated(Boolean isTruncated) {
        this. = isTruncated;
        return this;
    }

    
Indicates whether the list of jobs was truncated. If true, then call ListJobs again using the last JobId element as the marker.

Returns:
Indicates whether the list of jobs was truncated. If true, then call ListJobs again using the last JobId element as the marker.
    public Boolean getIsTruncated() {
        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 (getJobs() != nullsb.append("Jobs: " + getJobs() + ",");
        if (isTruncated() != nullsb.append("IsTruncated: " + isTruncated() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getJobs() == null) ? 0 : getJobs().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 ListJobsResult == falsereturn false;
        ListJobsResult other = (ListJobsResult)obj;
        
        if (other.getJobs() == null ^ this.getJobs() == nullreturn false;
        if (other.getJobs() != null && other.getJobs().equals(this.getJobs()) == 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 ListJobsResult clone() {
        try {
            return (ListJobsResultsuper.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