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 AWS Java SDK for AWS Data Pipeline module holds the client classes that are used for communicating with AWS Data Pipeline Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2012-2017 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;
import javax.annotation.Generated;

/**
 * 

* Contains the output of ValidatePipelineDefinition. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ValidatePipelineDefinitionResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* Any validation errors that were found. *

*/ private com.amazonaws.internal.SdkInternalList validationErrors; /** *

* Any validation warnings that were found. *

*/ private com.amazonaws.internal.SdkInternalList validationWarnings; /** *

* Indicates whether there were validation errors. *

*/ private Boolean errored; /** *

* Any validation errors that were found. *

* * @return Any validation errors that were found. */ public java.util.List getValidationErrors() { if (validationErrors == null) { validationErrors = new com.amazonaws.internal.SdkInternalList(); } return validationErrors; } /** *

* Any validation errors that were found. *

* * @param validationErrors * Any validation errors that were found. */ public void setValidationErrors(java.util.Collection validationErrors) { if (validationErrors == null) { this.validationErrors = null; return; } this.validationErrors = new com.amazonaws.internal.SdkInternalList(validationErrors); } /** *

* Any validation errors that were found. *

*

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

* * @param validationErrors * Any validation errors that were found. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidatePipelineDefinitionResult withValidationErrors(ValidationError... validationErrors) { if (this.validationErrors == null) { setValidationErrors(new com.amazonaws.internal.SdkInternalList(validationErrors.length)); } for (ValidationError ele : validationErrors) { this.validationErrors.add(ele); } return this; } /** *

* Any validation errors that were found. *

* * @param validationErrors * Any validation errors that were found. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidatePipelineDefinitionResult withValidationErrors(java.util.Collection validationErrors) { setValidationErrors(validationErrors); return this; } /** *

* Any validation warnings that were found. *

* * @return Any validation warnings that were found. */ public java.util.List getValidationWarnings() { if (validationWarnings == null) { validationWarnings = new com.amazonaws.internal.SdkInternalList(); } return validationWarnings; } /** *

* Any validation warnings that were found. *

* * @param validationWarnings * Any validation warnings that were found. */ public void setValidationWarnings(java.util.Collection validationWarnings) { if (validationWarnings == null) { this.validationWarnings = null; return; } this.validationWarnings = new com.amazonaws.internal.SdkInternalList(validationWarnings); } /** *

* Any validation warnings that were found. *

*

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

* * @param validationWarnings * Any validation warnings that were found. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidatePipelineDefinitionResult withValidationWarnings(ValidationWarning... validationWarnings) { if (this.validationWarnings == null) { setValidationWarnings(new com.amazonaws.internal.SdkInternalList(validationWarnings.length)); } for (ValidationWarning ele : validationWarnings) { this.validationWarnings.add(ele); } return this; } /** *

* Any validation warnings that were found. *

* * @param validationWarnings * Any validation warnings that were found. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidatePipelineDefinitionResult withValidationWarnings(java.util.Collection validationWarnings) { setValidationWarnings(validationWarnings); return this; } /** *

* Indicates whether there were validation errors. *

* * @param errored * Indicates whether there were validation errors. */ public void setErrored(Boolean errored) { this.errored = errored; } /** *

* Indicates whether there were validation errors. *

* * @return Indicates whether there were validation errors. */ public Boolean getErrored() { return this.errored; } /** *

* Indicates whether there were validation errors. *

* * @param errored * Indicates whether there were validation errors. * @return Returns a reference to this object so that method calls can be chained together. */ public ValidatePipelineDefinitionResult withErrored(Boolean errored) { setErrored(errored); return this; } /** *

* Indicates whether there were validation errors. *

* * @return Indicates whether there were validation errors. */ public Boolean isErrored() { return this.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: ").append(getValidationErrors()).append(","); if (getValidationWarnings() != null) sb.append("ValidationWarnings: ").append(getValidationWarnings()).append(","); if (getErrored() != null) sb.append("Errored: ").append(getErrored()); sb.append("}"); return sb.toString(); } @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.getErrored() == null ^ this.getErrored() == null) return false; if (other.getErrored() != null && other.getErrored().equals(this.getErrored()) == false) return false; return true; } @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 + ((getErrored() == null) ? 0 : getErrored().hashCode()); return hashCode; } @Override public ValidatePipelineDefinitionResult clone() { try { return (ValidatePipelineDefinitionResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy