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 ValidatePipelineDefinition.

 
 public class ValidatePipelineDefinitionResult implements SerializableCloneable {

    
Any validation errors that were found.
 
Any validation warnings that were found.
 
Indicates whether there were validation errors.
 
     private Boolean errored;

    
Any validation errors that were found.

Returns:
Any validation errors that were found.
 
         if ( == null) {
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
Any validation errors that were found.

Parameters:
validationErrors Any validation errors that were found.
 
     public void setValidationErrors(java.util.Collection<ValidationErrorvalidationErrors) {
         if (validationErrors == null) {
             this. = null;
             return;
         }
         validationErrorsCopy.addAll(validationErrors);
         this. = validationErrorsCopy;
     }
    
    
Any validation errors that were found.

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 Any validation errors that were found.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ValidatePipelineDefinitionResult withValidationErrors(ValidationError... validationErrors) {
         if (getValidationErrors() == nullsetValidationErrors(new java.util.ArrayList<ValidationError>(validationErrors.length));
         for (ValidationError value : validationErrors) {
             getValidationErrors().add(value);
         }
         return this;
     }
    
    
Any validation errors that were found.

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

Parameters:
validationErrors Any validation errors that were found.
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;
    }

    
Any validation warnings that were found.

Returns:
Any validation warnings that were found.
        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
Any validation warnings that were found.

Parameters:
validationWarnings Any validation warnings that were found.
    public void setValidationWarnings(java.util.Collection<ValidationWarningvalidationWarnings) {
        if (validationWarnings == null) {
            this. = null;
            return;
        }
        validationWarningsCopy.addAll(validationWarnings);
        this. = validationWarningsCopy;
    }
    
    
Any validation warnings that were found.

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 Any validation warnings that were found.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (getValidationWarnings() == nullsetValidationWarnings(new java.util.ArrayList<ValidationWarning>(validationWarnings.length));
        for (ValidationWarning value : validationWarnings) {
            getValidationWarnings().add(value);
        }
        return this;
    }
    
    
Any validation warnings that were found.

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

Parameters:
validationWarnings Any validation warnings that were found.
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.

Returns:
Indicates whether there were validation errors.
    public Boolean isErrored() {
        return ;
    }
    
    
Indicates whether there were validation errors.

Parameters:
errored Indicates whether there were validation errors.
    public void setErrored(Boolean errored) {
        this. = errored;
    }
    
    
Indicates whether there were validation errors.

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

Parameters:
errored Indicates whether there were validation errors.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = errored;
        return this;
    }

    
Indicates whether there were validation errors.

Returns:
Indicates whether there were validation errors.
    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 ValidatePipelineDefinitionResult == 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 (ValidatePipelineDefinitionResultsuper.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