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 UpateJob operation.
 
 public class UpdateJobRequest extends AmazonWebServiceRequest implements
         SerializableCloneable {
 
     private String jobId;
 
     private String manifest;
 
     private String jobType;
 
     private Boolean validateOnly;
 
     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 UpdateJobRequest withJobId(String jobId) {
         setJobId(jobId);
         return this;
     }

    
Sets the value of the Manifest property for this object.

Parameters:
manifest The new value for the Manifest property for this object.
 
     public void setManifest(String manifest) {
         this. = manifest;
     }

    
Returns the value of the Manifest property for this object.

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

    
Sets the value of the Manifest property for this object.

Parameters:
manifest The new value for the Manifest property for this object.
Returns:
Returns a reference to this object so that method calls can be chained together.
 
     public UpdateJobRequest withManifest(String manifest) {
         setManifest(manifest);
         return this;
     }

    
Sets the value of the JobType property for this object.

Parameters:
jobType The new value for the JobType property for this object.
See also:
JobType
    public void setJobType(String jobType) {
        this. = jobType;
    }

    
Returns the value of the JobType property for this object.

Returns:
The value of the JobType property for this object.
See also:
JobType
    public String getJobType() {
        return this.;
    }

    
Sets the value of the JobType property for this object.

Parameters:
jobType The new value for the JobType property for this object.
Returns:
Returns a reference to this object so that method calls can be chained together.
See also:
JobType
    public UpdateJobRequest withJobType(String jobType) {
        setJobType(jobType);
        return this;
    }

    
Sets the value of the JobType property for this object.

Parameters:
jobType The new value for the JobType property for this object.
Returns:
Returns a reference to this object so that method calls can be chained together.
See also:
JobType
    public void setJobType(JobType jobType) {
        this. = jobType.toString();
    }

    
Sets the value of the JobType property for this object.

Parameters:
jobType The new value for the JobType property for this object.
Returns:
Returns a reference to this object so that method calls can be chained together.
See also:
JobType
    public UpdateJobRequest withJobType(JobType jobType) {
        setJobType(jobType);
        return this;
    }

    
Sets the value of the ValidateOnly property for this object.

Parameters:
validateOnly The new value for the ValidateOnly property for this object.
    public void setValidateOnly(Boolean validateOnly) {
        this. = validateOnly;
    }

    
Returns the value of the ValidateOnly property for this object.

Returns:
The value of the ValidateOnly property for this object.
    public Boolean getValidateOnly() {
        return this.;
    }

    
Sets the value of the ValidateOnly property for this object.

Parameters:
validateOnly The new value for the ValidateOnly property for this object.
Returns:
Returns a reference to this object so that method calls can be chained together.
    public UpdateJobRequest withValidateOnly(Boolean validateOnly) {
        setValidateOnly(validateOnly);
        return this;
    }

    
Returns the value of the ValidateOnly property for this object.

Returns:
The value of the ValidateOnly property for this object.
    public Boolean isValidateOnly() {
        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 UpdateJobRequest 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 (getManifest() != null)
            sb.append("Manifest: " + getManifest() + ",");
        if (getJobType() != null)
            sb.append("JobType: " + getJobType() + ",");
        if (getValidateOnly() != null)
            sb.append("ValidateOnly: " + getValidateOnly() + ",");
        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 UpdateJobRequest == false)
            return false;
        UpdateJobRequest other = (UpdateJobRequestobj;
        if (other.getJobId() == null ^ this.getJobId() == null)
            return false;
        if (other.getJobId() != null
                && other.getJobId().equals(this.getJobId()) == false)
            return false;
        if (other.getManifest() == null ^ this.getManifest() == null)
            return false;
        if (other.getManifest() != null
                && other.getManifest().equals(this.getManifest()) == false)
            return false;
        if (other.getJobType() == null ^ this.getJobType() == null)
            return false;
        if (other.getJobType() != null
                && other.getJobType().equals(this.getJobType()) == false)
            return false;
        if (other.getValidateOnly() == null ^ this.getValidateOnly() == null)
            return false;
        if (other.getValidateOnly() != null
                && other.getValidateOnly().equals(this.getValidateOnly()) == 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
                + ((getManifest() == null) ? 0 : getManifest().hashCode());
        hashCode = prime * hashCode
                + ((getJobType() == null) ? 0 : getJobType().hashCode());
        hashCode = prime
                * hashCode
                + ((getValidateOnly() == null) ? 0 : getValidateOnly()
                        .hashCode());
        hashCode = prime * hashCode
                + ((getAPIVersion() == null) ? 0 : getAPIVersion().hashCode());
        return hashCode;
    }
    @Override
    public UpdateJobRequest clone() {
        return (UpdateJobRequestsuper.clone();
    }
New to GrepCode? Check out our FAQ X