Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010 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 GetStatus operation.

 
 public class GetStatusResult {

    
A unique identifier which refers to a particular job.
 
     private String jobId;

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

Constraints:
Allowed Values: Import, Export

 
     private String jobType;

    
Address you ship your storage device to.
 
     private String awsShippingAddress;

    
A token representing the location of the storage device, such as "AtAWS".
 
     private String locationCode;

    
A more human readable form of the physical location of the storage device.
 
     private String locationMessage;

    
A token representing the state of the job, such as "Started".
 
     private String progressCode;

    
A more human readable form of the job status.
 
     private String progressMessage;

    
Name of the shipping company. This value is included when the LocationCode is "Returned".
 
     private String carrier;

    
The shipping tracking number assigned by AWS Import/Export to the storage device when it's returned to you. We return this value when the LocationCode is "Returned".
 
     private String trackingNumber;

    
Amazon S3 bucket for user logs.
 
     private String logBucket;

    
The key where the user logs were stored.
 
     private String logKey;

    
Number of errors. We return this value when the ProgressCode is Success or SuccessWithErrors.
 
     private Integer errorCount;

    
An encrypted code used to authenticate the request and response, for example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you want to create the signature file yourself. Generally you should use the SignatureFileContents value.
 
     private String signature;

    
An encrypted code used to authenticate the request and response, for example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you want to create the signature file yourself. Generally you should use the SignatureFileContents value.
    private String signatureFileContents;

    
The last manifest submitted, which will be used to process the job.
    private String currentManifest;

    
Timestamp of the CreateJob request in ISO8601 date format. For example "2010-03-28T20:27:35Z".
    private java.util.Date creationDate;

    
A unique identifier which refers to a particular job.

Returns:
A unique identifier which refers to a particular job.
    public String getJobId() {
        return ;
    }
    
    
A unique identifier which refers to a particular job.

Parameters:
jobId A unique identifier which refers to a particular job.
    public void setJobId(String jobId) {
        this. = jobId;
    }
    
    
A unique identifier which refers to a particular job.

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

Parameters:
jobId A unique identifier which refers to a particular job.
Returns:
A reference to this updated object so that method calls can be chained together.
    public GetStatusResult withJobId(String jobId) {
        this. = jobId;
        return this;
    }
    
    
    
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 GetStatusResult withJobType(String jobType) {
        this. = jobType;
        return this;
    }
    
    
    
Address you ship your storage device to.

Returns:
Address you ship your storage device to.
    public String getAwsShippingAddress() {
        return ;
    }
    
    
Address you ship your storage device to.

Parameters:
awsShippingAddress Address you ship your storage device to.
    public void setAwsShippingAddress(String awsShippingAddress) {
        this. = awsShippingAddress;
    }
    
    
Address you ship your storage device to.

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

Parameters:
awsShippingAddress Address you ship your storage device to.
Returns:
A reference to this updated object so that method calls can be chained together.
    public GetStatusResult withAwsShippingAddress(String awsShippingAddress) {
        this. = awsShippingAddress;
        return this;
    }
    
    
    
A token representing the location of the storage device, such as "AtAWS".

Returns:
A token representing the location of the storage device, such as "AtAWS".
    public String getLocationCode() {
        return ;
    }
    
    
A token representing the location of the storage device, such as "AtAWS".

Parameters:
locationCode A token representing the location of the storage device, such as "AtAWS".
    public void setLocationCode(String locationCode) {
        this. = locationCode;
    }
    
    
A token representing the location of the storage device, such as "AtAWS".

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

Parameters:
locationCode A token representing the location of the storage device, such as "AtAWS".
Returns:
A reference to this updated object so that method calls can be chained together.
    public GetStatusResult withLocationCode(String locationCode) {
        this. = locationCode;
        return this;
    }
    
    
    
A more human readable form of the physical location of the storage device.

Returns:
A more human readable form of the physical location of the storage device.
    public String getLocationMessage() {
        return ;
    }
    
    
A more human readable form of the physical location of the storage device.

Parameters:
locationMessage A more human readable form of the physical location of the storage device.
    public void setLocationMessage(String locationMessage) {
        this. = locationMessage;
    }
    
    
A more human readable form of the physical location of the storage device.

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

Parameters:
locationMessage A more human readable form of the physical location of the storage device.
Returns:
A reference to this updated object so that method calls can be chained together.
    public GetStatusResult withLocationMessage(String locationMessage) {
        this. = locationMessage;
        return this;
    }
    
    
    
A token representing the state of the job, such as "Started".

Returns:
A token representing the state of the job, such as "Started".
    public String getProgressCode() {
        return ;
    }
    
    
A token representing the state of the job, such as "Started".

Parameters:
progressCode A token representing the state of the job, such as "Started".
    public void setProgressCode(String progressCode) {
        this. = progressCode;
    }
    
    
A token representing the state of the job, such as "Started".

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

Parameters:
progressCode A token representing the state of the job, such as "Started".
Returns:
A reference to this updated object so that method calls can be chained together.
    public GetStatusResult withProgressCode(String progressCode) {
        this. = progressCode;
        return this;
    }
    
    
    
A more human readable form of the job status.

Returns:
A more human readable form of the job status.
    public String getProgressMessage() {
        return ;
    }
    
    
A more human readable form of the job status.

Parameters:
progressMessage A more human readable form of the job status.
    public void setProgressMessage(String progressMessage) {
        this. = progressMessage;
    }
    
    
A more human readable form of the job status.

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

Parameters:
progressMessage A more human readable form of the job status.
Returns:
A reference to this updated object so that method calls can be chained together.
    public GetStatusResult withProgressMessage(String progressMessage) {
        this. = progressMessage;
        return this;
    }
    
    
    
Name of the shipping company. This value is included when the LocationCode is "Returned".

Returns:
Name of the shipping company. This value is included when the LocationCode is "Returned".
    public String getCarrier() {
        return ;
    }
    
    
Name of the shipping company. This value is included when the LocationCode is "Returned".

Parameters:
carrier Name of the shipping company. This value is included when the LocationCode is "Returned".
    public void setCarrier(String carrier) {
        this. = carrier;
    }
    
    
Name of the shipping company. This value is included when the LocationCode is "Returned".

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

Parameters:
carrier Name of the shipping company. This value is included when the LocationCode is "Returned".
Returns:
A reference to this updated object so that method calls can be chained together.
    public GetStatusResult withCarrier(String carrier) {
        this. = carrier;
        return this;
    }
    
    
    
The shipping tracking number assigned by AWS Import/Export to the storage device when it's returned to you. We return this value when the LocationCode is "Returned".

Returns:
The shipping tracking number assigned by AWS Import/Export to the storage device when it's returned to you. We return this value when the LocationCode is "Returned".
    public String getTrackingNumber() {
        return ;
    }
    
    
The shipping tracking number assigned by AWS Import/Export to the storage device when it's returned to you. We return this value when the LocationCode is "Returned".

Parameters:
trackingNumber The shipping tracking number assigned by AWS Import/Export to the storage device when it's returned to you. We return this value when the LocationCode is "Returned".
    public void setTrackingNumber(String trackingNumber) {
        this. = trackingNumber;
    }
    
    
The shipping tracking number assigned by AWS Import/Export to the storage device when it's returned to you. We return this value when the LocationCode is "Returned".

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

Parameters:
trackingNumber The shipping tracking number assigned by AWS Import/Export to the storage device when it's returned to you. We return this value when the LocationCode is "Returned".
Returns:
A reference to this updated object so that method calls can be chained together.
    public GetStatusResult withTrackingNumber(String trackingNumber) {
        this. = trackingNumber;
        return this;
    }
    
    
    
Amazon S3 bucket for user logs.

Returns:
Amazon S3 bucket for user logs.
    public String getLogBucket() {
        return ;
    }
    
    
Amazon S3 bucket for user logs.

Parameters:
logBucket Amazon S3 bucket for user logs.
    public void setLogBucket(String logBucket) {
        this. = logBucket;
    }
    
    
Amazon S3 bucket for user logs.

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

Parameters:
logBucket Amazon S3 bucket for user logs.
Returns:
A reference to this updated object so that method calls can be chained together.
    public GetStatusResult withLogBucket(String logBucket) {
        this. = logBucket;
        return this;
    }
    
    
    
The key where the user logs were stored.

Returns:
The key where the user logs were stored.
    public String getLogKey() {
        return ;
    }
    
    
The key where the user logs were stored.

Parameters:
logKey The key where the user logs were stored.
    public void setLogKey(String logKey) {
        this. = logKey;
    }
    
    
The key where the user logs were stored.

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

Parameters:
logKey The key where the user logs were stored.
Returns:
A reference to this updated object so that method calls can be chained together.
    public GetStatusResult withLogKey(String logKey) {
        this. = logKey;
        return this;
    }
    
    
    
Number of errors. We return this value when the ProgressCode is Success or SuccessWithErrors.

Returns:
Number of errors. We return this value when the ProgressCode is Success or SuccessWithErrors.
    public Integer getErrorCount() {
        return ;
    }
    
    
Number of errors. We return this value when the ProgressCode is Success or SuccessWithErrors.

Parameters:
errorCount Number of errors. We return this value when the ProgressCode is Success or SuccessWithErrors.
    public void setErrorCount(Integer errorCount) {
        this. = errorCount;
    }
    
    
Number of errors. We return this value when the ProgressCode is Success or SuccessWithErrors.

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

Parameters:
errorCount Number of errors. We return this value when the ProgressCode is Success or SuccessWithErrors.
Returns:
A reference to this updated object so that method calls can be chained together.
    public GetStatusResult withErrorCount(Integer errorCount) {
        this. = errorCount;
        return this;
    }
    
    
    
An encrypted code used to authenticate the request and response, for example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you want to create the signature file yourself. Generally you should use the SignatureFileContents value.

Returns:
An encrypted code used to authenticate the request and response, for example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you want to create the signature file yourself. Generally you should use the SignatureFileContents value.
    public String getSignature() {
        return ;
    }
    
    
An encrypted code used to authenticate the request and response, for example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you want to create the signature file yourself. Generally you should use the SignatureFileContents value.

Parameters:
signature An encrypted code used to authenticate the request and response, for example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you want to create the signature file yourself. Generally you should use the SignatureFileContents value.
    public void setSignature(String signature) {
        this. = signature;
    }
    
    
An encrypted code used to authenticate the request and response, for example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you want to create the signature file yourself. Generally you should use the SignatureFileContents value.

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

Parameters:
signature An encrypted code used to authenticate the request and response, for example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you want to create the signature file yourself. Generally you should use the SignatureFileContents value.
Returns:
A reference to this updated object so that method calls can be chained together.
    public GetStatusResult withSignature(String signature) {
        this. = signature;
        return this;
    }
    
    
    
An encrypted code used to authenticate the request and response, for example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you want to create the signature file yourself. Generally you should use the SignatureFileContents value.

Returns:
An encrypted code used to authenticate the request and response, for example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you want to create the signature file yourself. Generally you should use the SignatureFileContents value.
    public String getSignatureFileContents() {
        return ;
    }
    
    
An encrypted code used to authenticate the request and response, for example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you want to create the signature file yourself. Generally you should use the SignatureFileContents value.

Parameters:
signatureFileContents An encrypted code used to authenticate the request and response, for example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you want to create the signature file yourself. Generally you should use the SignatureFileContents value.
    public void setSignatureFileContents(String signatureFileContents) {
        this. = signatureFileContents;
    }
    
    
An encrypted code used to authenticate the request and response, for example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you want to create the signature file yourself. Generally you should use the SignatureFileContents value.

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

Parameters:
signatureFileContents An encrypted code used to authenticate the request and response, for example, "DV+TpDfx1/TdSE9ktyK9k/bDTVI=". Only use this value is you want to create the signature file yourself. Generally you should use the SignatureFileContents value.
Returns:
A reference to this updated object so that method calls can be chained together.
    public GetStatusResult withSignatureFileContents(String signatureFileContents) {
        this. = signatureFileContents;
        return this;
    }
    
    
    
The last manifest submitted, which will be used to process the job.

Returns:
The last manifest submitted, which will be used to process the job.
    public String getCurrentManifest() {
        return ;
    }
    
    
The last manifest submitted, which will be used to process the job.

Parameters:
currentManifest The last manifest submitted, which will be used to process the job.
    public void setCurrentManifest(String currentManifest) {
        this. = currentManifest;
    }
    
    
The last manifest submitted, which will be used to process the job.

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

Parameters:
currentManifest The last manifest submitted, which will be used to process the job.
Returns:
A reference to this updated object so that method calls can be chained together.
    public GetStatusResult withCurrentManifest(String currentManifest) {
        this. = currentManifest;
        return this;
    }
    
    
    
Timestamp of the CreateJob request in ISO8601 date format. For example "2010-03-28T20:27:35Z".

Returns:
Timestamp of the CreateJob request in ISO8601 date format. For example "2010-03-28T20:27:35Z".
    public java.util.Date getCreationDate() {
        return ;
    }
    
    
Timestamp of the CreateJob request in ISO8601 date format. For example "2010-03-28T20:27:35Z".

Parameters:
creationDate Timestamp of the CreateJob request in ISO8601 date format. For example "2010-03-28T20:27:35Z".
    public void setCreationDate(java.util.Date creationDate) {
        this. = creationDate;
    }
    
    
Timestamp of the CreateJob request in ISO8601 date format. For example "2010-03-28T20:27:35Z".

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

Parameters:
creationDate Timestamp of the CreateJob request in ISO8601 date format. For example "2010-03-28T20:27:35Z".
Returns:
A reference to this updated object so that method calls can be chained together.
    public GetStatusResult withCreationDate(java.util.Date creationDate) {
        this. = creationDate;
        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("{");
        sb.append("JobId: " +  + ", ");
        sb.append("JobType: " +  + ", ");
        sb.append("AwsShippingAddress: " +  + ", ");
        sb.append("LocationCode: " +  + ", ");
        sb.append("LocationMessage: " +  + ", ");
        sb.append("ProgressCode: " +  + ", ");
        sb.append("ProgressMessage: " +  + ", ");
        sb.append("Carrier: " +  + ", ");
        sb.append("TrackingNumber: " +  + ", ");
        sb.append("LogBucket: " +  + ", ");
        sb.append("LogKey: " +  + ", ");
        sb.append("ErrorCount: " +  + ", ");
        sb.append("Signature: " +  + ", ");
        sb.append("SignatureFileContents: " +  + ", ");
        sb.append("CurrentManifest: " +  + ", ");
        sb.append("CreationDate: " +  + ", ");
        sb.append("}");
        return sb.toString();
    }
    
}
    
New to GrepCode? Check out our FAQ X