All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.datapipeline.model.ValidatePipelineDefinitionResult Maven / Gradle / Ivy

Go to download

The Amazon Web Services SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

The newest version!
/*
 * Copyright 2010-2014 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;

import java.io.Serializable;

/**
 * 

* Contains the output from the ValidatePipelineDefinition action. *

*/ public class ValidatePipelineDefinitionResult implements Serializable { /** * Lists the validation errors that were found by * ValidatePipelineDefinition. */ private com.amazonaws.internal.ListWithAutoConstructFlag validationErrors; /** * Lists the validation warnings that were found by * ValidatePipelineDefinition. */ private com.amazonaws.internal.ListWithAutoConstructFlag validationWarnings; /** * If True, there were validation errors. */ private Boolean errored; /** * Lists the validation errors that were found by * ValidatePipelineDefinition. * * @return Lists the validation errors that were found by * ValidatePipelineDefinition. */ public java.util.List getValidationErrors() { if (validationErrors == null) { validationErrors = new com.amazonaws.internal.ListWithAutoConstructFlag(); validationErrors.setAutoConstruct(true); } return validationErrors; } /** * Lists the validation errors that were found by * ValidatePipelineDefinition. * * @param validationErrors Lists the validation errors that were found by * ValidatePipelineDefinition. */ public void setValidationErrors(java.util.Collection validationErrors) { if (validationErrors == null) { this.validationErrors = null; return; } com.amazonaws.internal.ListWithAutoConstructFlag validationErrorsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(validationErrors.size()); validationErrorsCopy.addAll(validationErrors); this.validationErrors = validationErrorsCopy; } /** * Lists the validation errors that were found by * ValidatePipelineDefinition. *

* Returns a reference to this object so that method calls can be chained together. * * @param validationErrors Lists the validation errors that were found by * ValidatePipelineDefinition. * * @return A reference to this updated object so that method calls can be chained * together. */ public ValidatePipelineDefinitionResult withValidationErrors(ValidationError... validationErrors) { if (getValidationErrors() == null) setValidationErrors(new java.util.ArrayList(validationErrors.length)); for (ValidationError value : validationErrors) { getValidationErrors().add(value); } return this; } /** * Lists the validation errors that were found by * ValidatePipelineDefinition. *

* Returns a reference to this object so that method calls can be chained together. * * @param validationErrors Lists the validation errors that were found by * ValidatePipelineDefinition. * * @return A reference to this updated object so that method calls can be chained * together. */ public ValidatePipelineDefinitionResult withValidationErrors(java.util.Collection validationErrors) { if (validationErrors == null) { this.validationErrors = null; } else { com.amazonaws.internal.ListWithAutoConstructFlag validationErrorsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(validationErrors.size()); validationErrorsCopy.addAll(validationErrors); this.validationErrors = validationErrorsCopy; } return this; } /** * Lists the validation warnings that were found by * ValidatePipelineDefinition. * * @return Lists the validation warnings that were found by * ValidatePipelineDefinition. */ public java.util.List getValidationWarnings() { if (validationWarnings == null) { validationWarnings = new com.amazonaws.internal.ListWithAutoConstructFlag(); validationWarnings.setAutoConstruct(true); } return validationWarnings; } /** * Lists the validation warnings that were found by * ValidatePipelineDefinition. * * @param validationWarnings Lists the validation warnings that were found by * ValidatePipelineDefinition. */ public void setValidationWarnings(java.util.Collection validationWarnings) { if (validationWarnings == null) { this.validationWarnings = null; return; } com.amazonaws.internal.ListWithAutoConstructFlag validationWarningsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(validationWarnings.size()); validationWarningsCopy.addAll(validationWarnings); this.validationWarnings = validationWarningsCopy; } /** * Lists the validation warnings that were found by * ValidatePipelineDefinition. *

* Returns a reference to this object so that method calls can be chained together. * * @param validationWarnings Lists the validation warnings that were found by * ValidatePipelineDefinition. * * @return A reference to this updated object so that method calls can be chained * together. */ public ValidatePipelineDefinitionResult withValidationWarnings(ValidationWarning... validationWarnings) { if (getValidationWarnings() == null) setValidationWarnings(new java.util.ArrayList(validationWarnings.length)); for (ValidationWarning value : validationWarnings) { getValidationWarnings().add(value); } return this; } /** * Lists the validation warnings that were found by * ValidatePipelineDefinition. *

* Returns a reference to this object so that method calls can be chained together. * * @param validationWarnings Lists the validation warnings that were found by * ValidatePipelineDefinition. * * @return A reference to this updated object so that method calls can be chained * together. */ public ValidatePipelineDefinitionResult withValidationWarnings(java.util.Collection validationWarnings) { if (validationWarnings == null) { this.validationWarnings = null; } else { com.amazonaws.internal.ListWithAutoConstructFlag validationWarningsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(validationWarnings.size()); validationWarningsCopy.addAll(validationWarnings); this.validationWarnings = validationWarningsCopy; } return this; } /** * If True, there were validation errors. * * @return If True, there were validation errors. */ public Boolean isErrored() { return errored; } /** * If True, there were validation errors. * * @param errored If True, there were validation errors. */ public void setErrored(Boolean errored) { this.errored = errored; } /** * If True, there were validation errors. *

* Returns a reference to this object so that method calls can be chained together. * * @param errored If True, there were validation errors. * * @return A reference to this updated object so that method calls can be chained * together. */ public ValidatePipelineDefinitionResult withErrored(Boolean errored) { this.errored = errored; return this; } /** * If True, there were validation errors. * * @return If True, there were validation errors. */ public Boolean getErrored() { return errored; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getValidationErrors() != null) sb.append("ValidationErrors: " + getValidationErrors() + ","); if (getValidationWarnings() != null) sb.append("ValidationWarnings: " + getValidationWarnings() + ","); if (isErrored() != null) sb.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 == obj) return true; if (obj == null) return false; if (obj instanceof ValidatePipelineDefinitionResult == false) return false; ValidatePipelineDefinitionResult other = (ValidatePipelineDefinitionResult)obj; if (other.getValidationErrors() == null ^ this.getValidationErrors() == null) return false; if (other.getValidationErrors() != null && other.getValidationErrors().equals(this.getValidationErrors()) == false) return false; if (other.getValidationWarnings() == null ^ this.getValidationWarnings() == null) return false; if (other.getValidationWarnings() != null && other.getValidationWarnings().equals(this.getValidationWarnings()) == false) return false; if (other.isErrored() == null ^ this.isErrored() == null) return false; if (other.isErrored() != null && other.isErrored().equals(this.isErrored()) == false) return false; return true; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy