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 CreateJob operation.

This operation initiates the process of scheduling an upload or download of your data. You include in the request a manifest that describes the data transfer specifics. The response to the request includes a job ID, which you can use in other operations, a signature that you use to identify your storage device, and the address where you should ship your storage device.

 
 public class CreateJobRequest extends AmazonWebServiceRequest implements SerializableCloneable {

    
Specifies whether the job to initiate is an import or export job.

Constraints:
Allowed Values: Import, Export

 
     private String jobType;

    
The UTF-8 encoded text of the manifest file.
 
     private String manifest;

    
For internal use only.
 
     private String manifestAddendum;

    
Validate the manifest and parameter values in the request but do not actually create a job.
 
     private Boolean validateOnly;

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

    
Specifies whether the job to initiate is an import or export job.

Constraints:
Allowed Values: Import, Export

Returns:
Specifies whether the job to initiate is an import or export job.
See also:
JobType
 
     public String getJobType() {
         return ;
     }
    
    
Specifies whether the job to initiate is an import or export job.

Constraints:
Allowed Values: Import, Export

Parameters:
jobType Specifies whether the job to initiate is an import or export job.
See also:
JobType
 
     public void setJobType(String jobType) {
         this. = jobType;
     }
    
    
Specifies whether the job to initiate is an import or export job.

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

Constraints:
Allowed Values: Import, Export

Parameters:
jobType Specifies whether the job to initiate is an import or export job.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
JobType
    public CreateJobRequest withJobType(String jobType) {
        this. = jobType;
        return this;
    }

    
Specifies whether the job to initiate is an import or export job.

Constraints:
Allowed Values: Import, Export

Parameters:
jobType Specifies whether the job to initiate is an import or export job.
See also:
JobType
    public void setJobType(JobType jobType) {
        this. = jobType.toString();
    }
    
    
Specifies whether the job to initiate is an import or export job.

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

Constraints:
Allowed Values: Import, Export

Parameters:
jobType Specifies whether the job to initiate is an import or export job.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
JobType
    public CreateJobRequest withJobType(JobType jobType) {
        this. = jobType.toString();
        return this;
    }

    
The UTF-8 encoded text of the manifest file.

Returns:
The UTF-8 encoded text of the manifest file.
    public String getManifest() {
        return ;
    }
    
    
The UTF-8 encoded text of the manifest file.

Parameters:
manifest The UTF-8 encoded text of the manifest file.
    public void setManifest(String manifest) {
        this. = manifest;
    }
    
    
The UTF-8 encoded text of the manifest file.

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

Parameters:
manifest The UTF-8 encoded text of the manifest file.
Returns:
A reference to this updated object so that method calls can be chained together.
    public CreateJobRequest withManifest(String manifest) {
        this. = manifest;
        return this;
    }

    
For internal use only.

Returns:
For internal use only.
    public String getManifestAddendum() {
        return ;
    }
    
    
For internal use only.

Parameters:
manifestAddendum For internal use only.
    public void setManifestAddendum(String manifestAddendum) {
        this. = manifestAddendum;
    }
    
    
For internal use only.

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

Parameters:
manifestAddendum For internal use only.
Returns:
A reference to this updated object so that method calls can be chained together.
    public CreateJobRequest withManifestAddendum(String manifestAddendum) {
        this. = manifestAddendum;
        return this;
    }

    
Validate the manifest and parameter values in the request but do not actually create a job.

Returns:
Validate the manifest and parameter values in the request but do not actually create a job.
    public Boolean isValidateOnly() {
        return ;
    }
    
    
Validate the manifest and parameter values in the request but do not actually create a job.

Parameters:
validateOnly Validate the manifest and parameter values in the request but do not actually create a job.
    public void setValidateOnly(Boolean validateOnly) {
        this. = validateOnly;
    }
    
    
Validate the manifest and parameter values in the request but do not actually create a job.

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

Parameters:
validateOnly Validate the manifest and parameter values in the request but do not actually create a job.
Returns:
A reference to this updated object so that method calls can be chained together.
    public CreateJobRequest withValidateOnly(Boolean validateOnly) {
        this. = validateOnly;
        return this;
    }

    
Validate the manifest and parameter values in the request but do not actually create a job.

Returns:
Validate the manifest and parameter values in the request but do not actually create a job.
    public Boolean getValidateOnly() {
        return ;
    }

    
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 CreateJobRequest 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 (getJobType() != nullsb.append("JobType: " + getJobType() + ",");
        if (getManifest() != nullsb.append("Manifest: " + getManifest() + ",");
        if (getManifestAddendum() != nullsb.append("ManifestAddendum: " + getManifestAddendum() + ",");
        if (isValidateOnly() != nullsb.append("ValidateOnly: " + isValidateOnly() + ",");
        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 + ((getJobType() == null) ? 0 : getJobType().hashCode()); 
        hashCode = prime * hashCode + ((getManifest() == null) ? 0 : getManifest().hashCode()); 
        hashCode = prime * hashCode + ((getManifestAddendum() == null) ? 0 : getManifestAddendum().hashCode()); 
        hashCode = prime * hashCode + ((isValidateOnly() == null) ? 0 : isValidateOnly().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 CreateJobRequest == falsereturn false;
        CreateJobRequest other = (CreateJobRequest)obj;
        
        if (other.getJobType() == null ^ this.getJobType() == nullreturn false;
        if (other.getJobType() != null && other.getJobType().equals(this.getJobType()) == falsereturn false
        if (other.getManifest() == null ^ this.getManifest() == nullreturn false;
        if (other.getManifest() != null && other.getManifest().equals(this.getManifest()) == falsereturn false
        if (other.getManifestAddendum() == null ^ this.getManifestAddendum() == nullreturn false;
        if (other.getManifestAddendum() != null && other.getManifestAddendum().equals(this.getManifestAddendum()) == falsereturn false
        if (other.isValidateOnly() == null ^ this.isValidateOnly() == nullreturn false;
        if (other.isValidateOnly() != null && other.isValidateOnly().equals(this.isValidateOnly()) == 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 CreateJobRequest clone() {
        
            return (CreateJobRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X