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

com.amazonaws.services.datapipeline.model.PipelineDescription 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.11.7
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 pipeline metadata. *

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

* The pipeline identifier that was assigned by AWS Data Pipeline. This is a * string of the form df-297EG78HU43EEXAMPLE. *

*/ private String pipelineId; /** *

* The name of the pipeline. *

*/ private String name; /** *

* A list of read-only fields that contain metadata about the pipeline: * @userId, @accountId, and @pipelineState. *

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

* Description of the pipeline. *

*/ private String description; /** *

* A list of tags to associated with a pipeline. Tags let you control access * to pipelines. For more information, see Controlling User Access to Pipelines in the AWS Data Pipeline * Developer Guide. *

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

* The pipeline identifier that was assigned by AWS Data Pipeline. This is a * string of the form df-297EG78HU43EEXAMPLE. *

* * @param pipelineId * The pipeline identifier that was assigned by AWS Data Pipeline. * This is a string of the form df-297EG78HU43EEXAMPLE. */ public void setPipelineId(String pipelineId) { this.pipelineId = pipelineId; } /** *

* The pipeline identifier that was assigned by AWS Data Pipeline. This is a * string of the form df-297EG78HU43EEXAMPLE. *

* * @return The pipeline identifier that was assigned by AWS Data Pipeline. * This is a string of the form df-297EG78HU43EEXAMPLE. */ public String getPipelineId() { return this.pipelineId; } /** *

* The pipeline identifier that was assigned by AWS Data Pipeline. This is a * string of the form df-297EG78HU43EEXAMPLE. *

* * @param pipelineId * The pipeline identifier that was assigned by AWS Data Pipeline. * This is a string of the form df-297EG78HU43EEXAMPLE. * @return Returns a reference to this object so that method calls can be * chained together. */ public PipelineDescription withPipelineId(String pipelineId) { setPipelineId(pipelineId); return this; } /** *

* The name of the pipeline. *

* * @param name * The name of the pipeline. */ public void setName(String name) { this.name = name; } /** *

* The name of the pipeline. *

* * @return The name of the pipeline. */ public String getName() { return this.name; } /** *

* The name of the pipeline. *

* * @param name * The name of the pipeline. * @return Returns a reference to this object so that method calls can be * chained together. */ public PipelineDescription withName(String name) { setName(name); return this; } /** *

* A list of read-only fields that contain metadata about the pipeline: * @userId, @accountId, and @pipelineState. *

* * @return A list of read-only fields that contain metadata about the * pipeline: @userId, @accountId, and @pipelineState. */ public java.util.List getFields() { if (fields == null) { fields = new com.amazonaws.internal.SdkInternalList(); } return fields; } /** *

* A list of read-only fields that contain metadata about the pipeline: * @userId, @accountId, and @pipelineState. *

* * @param fields * A list of read-only fields that contain metadata about the * pipeline: @userId, @accountId, and @pipelineState. */ public void setFields(java.util.Collection fields) { if (fields == null) { this.fields = null; return; } this.fields = new com.amazonaws.internal.SdkInternalList(fields); } /** *

* A list of read-only fields that contain metadata about the pipeline: * @userId, @accountId, and @pipelineState. *

*

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

* * @param fields * A list of read-only fields that contain metadata about the * pipeline: @userId, @accountId, and @pipelineState. * @return Returns a reference to this object so that method calls can be * chained together. */ public PipelineDescription withFields(Field... fields) { if (this.fields == null) { setFields(new com.amazonaws.internal.SdkInternalList( fields.length)); } for (Field ele : fields) { this.fields.add(ele); } return this; } /** *

* A list of read-only fields that contain metadata about the pipeline: * @userId, @accountId, and @pipelineState. *

* * @param fields * A list of read-only fields that contain metadata about the * pipeline: @userId, @accountId, and @pipelineState. * @return Returns a reference to this object so that method calls can be * chained together. */ public PipelineDescription withFields(java.util.Collection fields) { setFields(fields); return this; } /** *

* Description of the pipeline. *

* * @param description * Description of the pipeline. */ public void setDescription(String description) { this.description = description; } /** *

* Description of the pipeline. *

* * @return Description of the pipeline. */ public String getDescription() { return this.description; } /** *

* Description of the pipeline. *

* * @param description * Description of the pipeline. * @return Returns a reference to this object so that method calls can be * chained together. */ public PipelineDescription withDescription(String description) { setDescription(description); return this; } /** *

* A list of tags to associated with a pipeline. Tags let you control access * to pipelines. For more information, see Controlling User Access to Pipelines in the AWS Data Pipeline * Developer Guide. *

* * @return A list of tags to associated with a pipeline. Tags let you * control access to pipelines. For more information, see Controlling User Access to Pipelines in the AWS Data * Pipeline Developer Guide. */ public java.util.List getTags() { if (tags == null) { tags = new com.amazonaws.internal.SdkInternalList(); } return tags; } /** *

* A list of tags to associated with a pipeline. Tags let you control access * to pipelines. For more information, see Controlling User Access to Pipelines in the AWS Data Pipeline * Developer Guide. *

* * @param tags * A list of tags to associated with a pipeline. Tags let you control * access to pipelines. For more information, see Controlling User Access to Pipelines in the AWS Data * Pipeline Developer Guide. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new com.amazonaws.internal.SdkInternalList(tags); } /** *

* A list of tags to associated with a pipeline. Tags let you control access * to pipelines. For more information, see Controlling User Access to Pipelines in the AWS Data Pipeline * Developer Guide. *

*

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

* * @param tags * A list of tags to associated with a pipeline. Tags let you control * access to pipelines. For more information, see Controlling User Access to Pipelines in the AWS Data * Pipeline Developer Guide. * @return Returns a reference to this object so that method calls can be * chained together. */ public PipelineDescription withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* A list of tags to associated with a pipeline. Tags let you control access * to pipelines. For more information, see Controlling User Access to Pipelines in the AWS Data Pipeline * Developer Guide. *

* * @param tags * A list of tags to associated with a pipeline. Tags let you control * access to pipelines. For more information, see Controlling User Access to Pipelines in the AWS Data * Pipeline Developer Guide. * @return Returns a reference to this object so that method calls can be * chained together. */ public PipelineDescription withTags(java.util.Collection tags) { setTags(tags); 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 (getPipelineId() != null) sb.append("PipelineId: " + getPipelineId() + ","); if (getName() != null) sb.append("Name: " + getName() + ","); if (getFields() != null) sb.append("Fields: " + getFields() + ","); if (getDescription() != null) sb.append("Description: " + getDescription() + ","); if (getTags() != null) sb.append("Tags: " + getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PipelineDescription == false) return false; PipelineDescription other = (PipelineDescription) obj; if (other.getPipelineId() == null ^ this.getPipelineId() == null) return false; if (other.getPipelineId() != null && other.getPipelineId().equals(this.getPipelineId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getFields() == null ^ this.getFields() == null) return false; if (other.getFields() != null && other.getFields().equals(this.getFields()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPipelineId() == null) ? 0 : getPipelineId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getFields() == null) ? 0 : getFields().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public PipelineDescription clone() { try { return (PipelineDescription) 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