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;
 
 
Container for the parameters to the ListJobs operation.

This operation returns the jobs associated with the requester. AWS Import/Export lists the jobs in reverse chronological order based on the date of creation. For example if Job Test1 was created 2009Dec30 and Test2 was created 2010Feb05, the ListJobs operation would return Test2 followed by Test1.

 
 public class ListJobsRequest extends AmazonWebServiceRequest implements SerializableCloneable {

    
Sets the maximum number of jobs returned in the response. If there are additional jobs that were not returned because MaxJobs was exceeded, the response contains <IsTruncated>true</IsTruncated>. To return the additional jobs, see Marker.
 
     private Integer maxJobs;

    
Specifies the JOBID to start after when listing the jobs created with your account. AWS Import/Export lists your jobs in reverse chronological order. See MaxJobs.
 
     private String marker;

    
Specifies the version of the client tool.
 
     private String aPIVersion;

    
Sets the maximum number of jobs returned in the response. If there are additional jobs that were not returned because MaxJobs was exceeded, the response contains <IsTruncated>true</IsTruncated>. To return the additional jobs, see Marker.

Returns:
Sets the maximum number of jobs returned in the response. If there are additional jobs that were not returned because MaxJobs was exceeded, the response contains <IsTruncated>true</IsTruncated>. To return the additional jobs, see Marker.
 
     public Integer getMaxJobs() {
         return ;
     }
    
    
Sets the maximum number of jobs returned in the response. If there are additional jobs that were not returned because MaxJobs was exceeded, the response contains <IsTruncated>true</IsTruncated>. To return the additional jobs, see Marker.

Parameters:
maxJobs Sets the maximum number of jobs returned in the response. If there are additional jobs that were not returned because MaxJobs was exceeded, the response contains <IsTruncated>true</IsTruncated>. To return the additional jobs, see Marker.
 
     public void setMaxJobs(Integer maxJobs) {
         this. = maxJobs;
     }
    
    
Sets the maximum number of jobs returned in the response. If there are additional jobs that were not returned because MaxJobs was exceeded, the response contains <IsTruncated>true</IsTruncated>. To return the additional jobs, see Marker.

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

Parameters:
maxJobs Sets the maximum number of jobs returned in the response. If there are additional jobs that were not returned because MaxJobs was exceeded, the response contains <IsTruncated>true</IsTruncated>. To return the additional jobs, see Marker.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ListJobsRequest withMaxJobs(Integer maxJobs) {
        this. = maxJobs;
        return this;
    }

    
Specifies the JOBID to start after when listing the jobs created with your account. AWS Import/Export lists your jobs in reverse chronological order. See MaxJobs.

Returns:
Specifies the JOBID to start after when listing the jobs created with your account. AWS Import/Export lists your jobs in reverse chronological order. See MaxJobs.
    public String getMarker() {
        return ;
    }
    
    
Specifies the JOBID to start after when listing the jobs created with your account. AWS Import/Export lists your jobs in reverse chronological order. See MaxJobs.

Parameters:
marker Specifies the JOBID to start after when listing the jobs created with your account. AWS Import/Export lists your jobs in reverse chronological order. See MaxJobs.
    public void setMarker(String marker) {
        this. = marker;
    }
    
    
Specifies the JOBID to start after when listing the jobs created with your account. AWS Import/Export lists your jobs in reverse chronological order. See MaxJobs.

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

Parameters:
marker Specifies the JOBID to start after when listing the jobs created with your account. AWS Import/Export lists your jobs in reverse chronological order. See MaxJobs.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ListJobsRequest withMarker(String marker) {
        this. = marker;
        return this;
    }

    
Specifies the version of the client tool.

Returns:
Specifies the version of the client tool.
    public String getAPIVersion() {
        return ;
    }
    
    
Specifies the version of the client tool.

Parameters:
aPIVersion Specifies the version of the client tool.
    public void setAPIVersion(String aPIVersion) {
        this. = aPIVersion;
    }
    
    
Specifies the version of the client tool.

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

Parameters:
aPIVersion Specifies the version of the client tool.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ListJobsRequest withAPIVersion(String aPIVersion) {
        this. = aPIVersion;
        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 (getMaxJobs() != nullsb.append("MaxJobs: " + getMaxJobs() + ",");
        if (getMarker() != nullsb.append("Marker: " + getMarker() + ",");
        if (getAPIVersion() != nullsb.append("APIVersion: " + getAPIVersion() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getMaxJobs() == null) ? 0 : getMaxJobs().hashCode()); 
        hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); 
        hashCode = prime * hashCode + ((getAPIVersion() == null) ? 0 : getAPIVersion().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof ListJobsRequest == falsereturn false;
        ListJobsRequest other = (ListJobsRequest)obj;
        
        if (other.getMaxJobs() == null ^ this.getMaxJobs() == nullreturn false;
        if (other.getMaxJobs() != null && other.getMaxJobs().equals(this.getMaxJobs()) == falsereturn false
        if (other.getMarker() == null ^ this.getMarker() == nullreturn false;
        if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == falsereturn false
        if (other.getAPIVersion() == null ^ this.getAPIVersion() == nullreturn false;
        if (other.getAPIVersion() != null && other.getAPIVersion().equals(this.getAPIVersion()) == falsereturn false
        return true;
    }
    
    @Override
    public ListJobsRequest clone() {
        
            return (ListJobsRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X