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

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

Go to download

The AWS SDK for Java with support for OSGi. The AWS 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).

There is a newer version: 1.11.60
Show newest version
/*
 * Copyright 2011-2016 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 of GetPipelineDefinition. *

*/ public class GetPipelineDefinitionResult implements Serializable, Cloneable { /** *

* The objects defined in the pipeline. *

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

* The parameter objects used in the pipeline definition. *

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

* The parameter values used in the pipeline definition. *

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

* The objects defined in the pipeline. *

* * @return The objects defined in the pipeline. */ public java.util.List getPipelineObjects() { if (pipelineObjects == null) { pipelineObjects = new com.amazonaws.internal.SdkInternalList(); } return pipelineObjects; } /** *

* The objects defined in the pipeline. *

* * @param pipelineObjects * The objects defined in the pipeline. */ public void setPipelineObjects( java.util.Collection pipelineObjects) { if (pipelineObjects == null) { this.pipelineObjects = null; return; } this.pipelineObjects = new com.amazonaws.internal.SdkInternalList( pipelineObjects); } /** *

* The objects defined in the pipeline. *

*

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

* * @param pipelineObjects * The objects defined in the pipeline. * @return Returns a reference to this object so that method calls can be * chained together. */ public GetPipelineDefinitionResult withPipelineObjects( PipelineObject... pipelineObjects) { if (this.pipelineObjects == null) { setPipelineObjects(new com.amazonaws.internal.SdkInternalList( pipelineObjects.length)); } for (PipelineObject ele : pipelineObjects) { this.pipelineObjects.add(ele); } return this; } /** *

* The objects defined in the pipeline. *

* * @param pipelineObjects * The objects defined in the pipeline. * @return Returns a reference to this object so that method calls can be * chained together. */ public GetPipelineDefinitionResult withPipelineObjects( java.util.Collection pipelineObjects) { setPipelineObjects(pipelineObjects); return this; } /** *

* The parameter objects used in the pipeline definition. *

* * @return The parameter objects used in the pipeline definition. */ public java.util.List getParameterObjects() { if (parameterObjects == null) { parameterObjects = new com.amazonaws.internal.SdkInternalList(); } return parameterObjects; } /** *

* The parameter objects used in the pipeline definition. *

* * @param parameterObjects * The parameter objects used in the pipeline definition. */ public void setParameterObjects( java.util.Collection parameterObjects) { if (parameterObjects == null) { this.parameterObjects = null; return; } this.parameterObjects = new com.amazonaws.internal.SdkInternalList( parameterObjects); } /** *

* The parameter objects used in the pipeline definition. *

*

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

* * @param parameterObjects * The parameter objects used in the pipeline definition. * @return Returns a reference to this object so that method calls can be * chained together. */ public GetPipelineDefinitionResult withParameterObjects( ParameterObject... parameterObjects) { if (this.parameterObjects == null) { setParameterObjects(new com.amazonaws.internal.SdkInternalList( parameterObjects.length)); } for (ParameterObject ele : parameterObjects) { this.parameterObjects.add(ele); } return this; } /** *

* The parameter objects used in the pipeline definition. *

* * @param parameterObjects * The parameter objects used in the pipeline definition. * @return Returns a reference to this object so that method calls can be * chained together. */ public GetPipelineDefinitionResult withParameterObjects( java.util.Collection parameterObjects) { setParameterObjects(parameterObjects); return this; } /** *

* The parameter values used in the pipeline definition. *

* * @return The parameter values used in the pipeline definition. */ public java.util.List getParameterValues() { if (parameterValues == null) { parameterValues = new com.amazonaws.internal.SdkInternalList(); } return parameterValues; } /** *

* The parameter values used in the pipeline definition. *

* * @param parameterValues * The parameter values used in the pipeline definition. */ public void setParameterValues( java.util.Collection parameterValues) { if (parameterValues == null) { this.parameterValues = null; return; } this.parameterValues = new com.amazonaws.internal.SdkInternalList( parameterValues); } /** *

* The parameter values used in the pipeline definition. *

*

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

* * @param parameterValues * The parameter values used in the pipeline definition. * @return Returns a reference to this object so that method calls can be * chained together. */ public GetPipelineDefinitionResult withParameterValues( ParameterValue... parameterValues) { if (this.parameterValues == null) { setParameterValues(new com.amazonaws.internal.SdkInternalList( parameterValues.length)); } for (ParameterValue ele : parameterValues) { this.parameterValues.add(ele); } return this; } /** *

* The parameter values used in the pipeline definition. *

* * @param parameterValues * The parameter values used in the pipeline definition. * @return Returns a reference to this object so that method calls can be * chained together. */ public GetPipelineDefinitionResult withParameterValues( java.util.Collection parameterValues) { setParameterValues(parameterValues); return this; } /** * 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 (getPipelineObjects() != null) sb.append("PipelineObjects: " + getPipelineObjects() + ","); if (getParameterObjects() != null) sb.append("ParameterObjects: " + getParameterObjects() + ","); if (getParameterValues() != null) sb.append("ParameterValues: " + getParameterValues()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetPipelineDefinitionResult == false) return false; GetPipelineDefinitionResult other = (GetPipelineDefinitionResult) obj; if (other.getPipelineObjects() == null ^ this.getPipelineObjects() == null) return false; if (other.getPipelineObjects() != null && other.getPipelineObjects().equals(this.getPipelineObjects()) == false) return false; if (other.getParameterObjects() == null ^ this.getParameterObjects() == null) return false; if (other.getParameterObjects() != null && other.getParameterObjects().equals( this.getParameterObjects()) == false) return false; if (other.getParameterValues() == null ^ this.getParameterValues() == null) return false; if (other.getParameterValues() != null && other.getParameterValues().equals(this.getParameterValues()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPipelineObjects() == null) ? 0 : getPipelineObjects() .hashCode()); hashCode = prime * hashCode + ((getParameterObjects() == null) ? 0 : getParameterObjects() .hashCode()); hashCode = prime * hashCode + ((getParameterValues() == null) ? 0 : getParameterValues() .hashCode()); return hashCode; } @Override public GetPipelineDefinitionResult clone() { try { return (GetPipelineDefinitionResult) 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