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.datapipeline.model;
 

Contains the output of PutPipelineDefinition.

 
 public class PutPipelineDefinitionResult implements SerializableCloneable {

    
The validation errors that are associated with the objects defined in pipelineObjects.
 
The validation warnings that are associated with the objects defined in pipelineObjects.
 
Indicates whether there were validation errors, and the pipeline definition is stored but cannot be activated until you correct the pipeline and call PutPipelineDefinition to commit the corrected pipeline.
 
     private Boolean errored;

    
The validation errors that are associated with the objects defined in pipelineObjects.

Returns:
The validation errors that are associated with the objects defined in pipelineObjects.
 
         if ( == null) {
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
The validation errors that are associated with the objects defined in pipelineObjects.

Parameters:
validationErrors The validation errors that are associated with the objects defined in pipelineObjects.
 
     public void setValidationErrors(java.util.Collection<ValidationErrorvalidationErrors) {
         if (validationErrors == null) {
             this. = null;
             return;
         }
         validationErrorsCopy.addAll(validationErrors);
         this. = validationErrorsCopy;
     }
    
    
The validation errors that are associated with the objects defined in pipelineObjects.

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

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

Parameters:
validationErrors The validation errors that are associated with the objects defined in pipelineObjects.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public PutPipelineDefinitionResult withValidationErrors(ValidationError... validationErrors) {
         if (getValidationErrors() == nullsetValidationErrors(new java.util.ArrayList<ValidationError>(validationErrors.length));
         for (ValidationError value : validationErrors) {
             getValidationErrors().add(value);
         }
        return this;
    }
    
    
The validation errors that are associated with the objects defined in pipelineObjects.

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

Parameters:
validationErrors The validation errors that are associated with the objects defined in pipelineObjects.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (validationErrors == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<ValidationErrorvalidationErrorsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<ValidationError>(validationErrors.size());
            validationErrorsCopy.addAll(validationErrors);
            this. = validationErrorsCopy;
        }
        return this;
    }

    
The validation warnings that are associated with the objects defined in pipelineObjects.

Returns:
The validation warnings that are associated with the objects defined in pipelineObjects.
        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
The validation warnings that are associated with the objects defined in pipelineObjects.

Parameters:
validationWarnings The validation warnings that are associated with the objects defined in pipelineObjects.
    public void setValidationWarnings(java.util.Collection<ValidationWarningvalidationWarnings) {
        if (validationWarnings == null) {
            this. = null;
            return;
        }
        validationWarningsCopy.addAll(validationWarnings);
        this. = validationWarningsCopy;
    }
    
    
The validation warnings that are associated with the objects defined in pipelineObjects.

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

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

Parameters:
validationWarnings The validation warnings that are associated with the objects defined in pipelineObjects.
Returns:
A reference to this updated object so that method calls can be chained together.
    public PutPipelineDefinitionResult withValidationWarnings(ValidationWarning... validationWarnings) {
        if (getValidationWarnings() == nullsetValidationWarnings(new java.util.ArrayList<ValidationWarning>(validationWarnings.length));
        for (ValidationWarning value : validationWarnings) {
            getValidationWarnings().add(value);
        }
        return this;
    }
    
    
The validation warnings that are associated with the objects defined in pipelineObjects.

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

Parameters:
validationWarnings The validation warnings that are associated with the objects defined in pipelineObjects.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (validationWarnings == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<ValidationWarningvalidationWarningsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<ValidationWarning>(validationWarnings.size());
            validationWarningsCopy.addAll(validationWarnings);
            this. = validationWarningsCopy;
        }
        return this;
    }

    
Indicates whether there were validation errors, and the pipeline definition is stored but cannot be activated until you correct the pipeline and call PutPipelineDefinition to commit the corrected pipeline.

Returns:
Indicates whether there were validation errors, and the pipeline definition is stored but cannot be activated until you correct the pipeline and call PutPipelineDefinition to commit the corrected pipeline.
    public Boolean isErrored() {
        return ;
    }
    
    
Indicates whether there were validation errors, and the pipeline definition is stored but cannot be activated until you correct the pipeline and call PutPipelineDefinition to commit the corrected pipeline.

Parameters:
errored Indicates whether there were validation errors, and the pipeline definition is stored but cannot be activated until you correct the pipeline and call PutPipelineDefinition to commit the corrected pipeline.
    public void setErrored(Boolean errored) {
        this. = errored;
    }
    
    
Indicates whether there were validation errors, and the pipeline definition is stored but cannot be activated until you correct the pipeline and call PutPipelineDefinition to commit the corrected pipeline.

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

Parameters:
errored Indicates whether there were validation errors, and the pipeline definition is stored but cannot be activated until you correct the pipeline and call PutPipelineDefinition to commit the corrected pipeline.
Returns:
A reference to this updated object so that method calls can be chained together.
    public PutPipelineDefinitionResult withErrored(Boolean errored) {
        this. = errored;
        return this;
    }

    
Indicates whether there were validation errors, and the pipeline definition is stored but cannot be activated until you correct the pipeline and call PutPipelineDefinition to commit the corrected pipeline.

Returns:
Indicates whether there were validation errors, and the pipeline definition is stored but cannot be activated until you correct the pipeline and call PutPipelineDefinition to commit the corrected pipeline.
    public Boolean getErrored() {
        return ;
    }

    
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 (getValidationErrors() != nullsb.append("ValidationErrors: " + getValidationErrors() + ",");
        if (getValidationWarnings() != nullsb.append("ValidationWarnings: " + getValidationWarnings() + ",");
        if (isErrored() != nullsb.append("Errored: " + isErrored() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getValidationErrors() == null) ? 0 : getValidationErrors().hashCode()); 
        hashCode = prime * hashCode + ((getValidationWarnings() == null) ? 0 : getValidationWarnings().hashCode()); 
        hashCode = prime * hashCode + ((isErrored() == null) ? 0 : isErrored().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof PutPipelineDefinitionResult == falsereturn false;
        
        if (other.getValidationErrors() == null ^ this.getValidationErrors() == nullreturn false;
        if (other.getValidationErrors() != null && other.getValidationErrors().equals(this.getValidationErrors()) == falsereturn false
        if (other.getValidationWarnings() == null ^ this.getValidationWarnings() == nullreturn false;
        if (other.getValidationWarnings() != null && other.getValidationWarnings().equals(this.getValidationWarnings()) == falsereturn false
        if (other.isErrored() == null ^ this.isErrored() == nullreturn false;
        if (other.isErrored() != null && other.isErrored().equals(this.isErrored()) == falsereturn false
        return true;
    }
    
    @Override
        try {
            return (PutPipelineDefinitionResultsuper.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