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;
 
Input structure for the GetStatus operation.
 
 public class GetStatusRequest extends AmazonWebServiceRequest implements
         SerializableCloneable {
 
     private String jobId;
 
     private String aPIVersion;

    
Sets the value of the JobId property for this object.

Parameters:
jobId The new value for the JobId property for this object.
 
     public void setJobId(String jobId) {
         this. = jobId;
     }

    
Returns the value of the JobId property for this object.

Returns:
The value of the JobId property for this object.
 
     public String getJobId() {
         return this.;
     }

    
Sets the value of the JobId property for this object.

Parameters:
jobId The new value for the JobId property for this object.
Returns:
Returns a reference to this object so that method calls can be chained together.
 
     public GetStatusRequest withJobId(String jobId) {
         setJobId(jobId);
         return this;
     }

    
Sets the value of the APIVersion property for this object.

Parameters:
aPIVersion The new value for the APIVersion property for this object.
 
     public void setAPIVersion(String aPIVersion) {
         this. = aPIVersion;
     }

    
Returns the value of the APIVersion property for this object.

Returns:
The value of the APIVersion property for this object.
 
     public String getAPIVersion() {
         return this.;
     }

    
Sets the value of the APIVersion property for this object.

Parameters:
aPIVersion The new value for the APIVersion property for this object.
Returns:
Returns a reference to this object so that method calls can be chained together.
 
     public GetStatusRequest withAPIVersion(String aPIVersion) {
         setAPIVersion(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 (getJobId() != null)
            sb.append("JobId: " + getJobId() + ",");
        if (getAPIVersion() != null)
            sb.append("APIVersion: " + getAPIVersion());
        sb.append("}");
        return sb.toString();
    }
    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (obj instanceof GetStatusRequest == false)
            return false;
        GetStatusRequest other = (GetStatusRequestobj;
        if (other.getJobId() == null ^ this.getJobId() == null)
            return false;
        if (other.getJobId() != null
                && other.getJobId().equals(this.getJobId()) == false)
            return false;
        if (other.getAPIVersion() == null ^ this.getAPIVersion() == null)
            return false;
        if (other.getAPIVersion() != null
                && other.getAPIVersion().equals(this.getAPIVersion()) == false)
            return false;
        return true;
    }
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        hashCode = prime * hashCode
                + ((getJobId() == null) ? 0 : getJobId().hashCode());
        hashCode = prime * hashCode
                + ((getAPIVersion() == null) ? 0 : getAPIVersion().hashCode());
        return hashCode;
    }
    @Override
    public GetStatusRequest clone() {
        return (GetStatusRequestsuper.clone();
    }
New to GrepCode? Check out our FAQ X