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;
 
Output structure for the CreateJob operation.
 
 public class CreateJobResult implements SerializableCloneable {
 
     private String jobId;
 
     private String jobType;
 
     private String signature;
 
     private String signatureFileContents;
 
     private String warningMessage;
 
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 CreateJobResult withJobId(String jobId) {
         setJobId(jobId);
         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 CreateJobResult 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 CreateJobResult withJobType(JobType jobType) {
        setJobType(jobType);
        return this;
    }

    
Sets the value of the Signature property for this object.

Parameters:
signature The new value for the Signature property for this object.
    public void setSignature(String signature) {
        this. = signature;
    }

    
Returns the value of the Signature property for this object.

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

    
Sets the value of the Signature property for this object.

Parameters:
signature The new value for the Signature property for this object.
Returns:
Returns a reference to this object so that method calls can be chained together.
    public CreateJobResult withSignature(String signature) {
        setSignature(signature);
        return this;
    }

    
Sets the value of the SignatureFileContents property for this object.

Parameters:
signatureFileContents The new value for the SignatureFileContents property for this object.
    public void setSignatureFileContents(String signatureFileContents) {
        this. = signatureFileContents;
    }

    
Returns the value of the SignatureFileContents property for this object.

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

    
Sets the value of the SignatureFileContents property for this object.

Parameters:
signatureFileContents The new value for the SignatureFileContents property for this object.
Returns:
Returns a reference to this object so that method calls can be chained together.
            String signatureFileContents) {
        setSignatureFileContents(signatureFileContents);
        return this;
    }

    
Sets the value of the WarningMessage property for this object.

Parameters:
warningMessage The new value for the WarningMessage property for this object.
    public void setWarningMessage(String warningMessage) {
        this. = warningMessage;
    }

    
Returns the value of the WarningMessage property for this object.

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

    
Sets the value of the WarningMessage property for this object.

Parameters:
warningMessage The new value for the WarningMessage property for this object.
Returns:
Returns a reference to this object so that method calls can be chained together.
    public CreateJobResult withWarningMessage(String warningMessage) {
        setWarningMessage(warningMessage);
        return this;
    }

    
Returns the value of the ArtifactList property for this object.

Returns:
The value of the ArtifactList property for this object.
    public java.util.List<ArtifactgetArtifactList() {
        if ( == null) {
             = new com.amazonaws.internal.SdkInternalList<Artifact>();
        }
        return ;
    }

    
Sets the value of the ArtifactList property for this object.

Parameters:
artifactList The new value for the ArtifactList property for this object.
    public void setArtifactList(java.util.Collection<ArtifactartifactList) {
        if (artifactList == null) {
            this. = null;
            return;
        }
                artifactList);
    }

    
Sets the value of the ArtifactList property for this object.

NOTE: This method appends the values to the existing list (if any). Use setArtifactList(java.util.Collection) or withArtifactList(java.util.Collection) if you want to override the existing values.

Parameters:
artifactList The new value for the ArtifactList property for this object.
Returns:
Returns a reference to this object so that method calls can be chained together.
    public CreateJobResult withArtifactList(Artifact... artifactList) {
        if (this. == null) {
                    artifactList.length));
        }
        for (Artifact ele : artifactList) {
            this..add(ele);
        }
        return this;
    }

    
Sets the value of the ArtifactList property for this object.

Parameters:
artifactList The new value for the ArtifactList property for this object.
Returns:
Returns a reference to this object so that method calls can be chained together.
            java.util.Collection<ArtifactartifactList) {
        setArtifactList(artifactList);
        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 (getJobType() != null)
            sb.append("JobType: " + getJobType() + ",");
        if (getSignature() != null)
            sb.append("Signature: " + getSignature() + ",");
        if (getSignatureFileContents() != null)
            sb.append("SignatureFileContents: " + getSignatureFileContents()
                    + ",");
        if (getWarningMessage() != null)
            sb.append("WarningMessage: " + getWarningMessage() + ",");
        if (getArtifactList() != null)
            sb.append("ArtifactList: " + getArtifactList());
        sb.append("}");
        return sb.toString();
    }
    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (obj instanceof CreateJobResult == false)
            return false;
        CreateJobResult other = (CreateJobResultobj;
        if (other.getJobId() == null ^ this.getJobId() == null)
            return false;
        if (other.getJobId() != null
                && other.getJobId().equals(this.getJobId()) == 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.getSignature() == null ^ this.getSignature() == null)
            return false;
        if (other.getSignature() != null
                && other.getSignature().equals(this.getSignature()) == false)
            return false;
        if (other.getSignatureFileContents() == null
                ^ this.getSignatureFileContents() == null)
            return false;
        if (other.getSignatureFileContents() != null
                && other.getSignatureFileContents().equals(
                        this.getSignatureFileContents()) == false)
            return false;
        if (other.getWarningMessage() == null
                ^ this.getWarningMessage() == null)
            return false;
        if (other.getWarningMessage() != null
                && other.getWarningMessage().equals(this.getWarningMessage()) == false)
            return false;
        if (other.getArtifactList() == null ^ this.getArtifactList() == null)
            return false;
        if (other.getArtifactList() != null
                && other.getArtifactList().equals(this.getArtifactList()) == 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
                + ((getJobType() == null) ? 0 : getJobType().hashCode());
        hashCode = prime * hashCode
                + ((getSignature() == null) ? 0 : getSignature().hashCode());
        hashCode = prime
                * hashCode
                + ((getSignatureFileContents() == null) ? 0
                        : getSignatureFileContents().hashCode());
        hashCode = prime
                * hashCode
                + ((getWarningMessage() == null) ? 0 : getWarningMessage()
                        .hashCode());
        hashCode = prime
                * hashCode
                + ((getArtifactList() == null) ? 0 : getArtifactList()
                        .hashCode());
        return hashCode;
    }
    @Override
    public CreateJobResult clone() {
        try {
            return (CreateJobResultsuper.clone();
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                            + "even though we're Cloneable!"e);
        }
    }
New to GrepCode? Check out our FAQ X