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

com.amazonaws.services.codepipeline.model.ArtifactRevision Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS CodePipeline module holds the client classes that are used for communicating with AWS CodePipeline

There is a newer version: 1.12.770
Show newest version
/*
 * Copyright 2016-2021 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.codepipeline.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Represents revision details of an artifact. *

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

* The name of an artifact. This name might be system-generated, such as "MyApp", or defined by the user when an * action is created. *

*/ private String name; /** *

* The revision ID of the artifact. *

*/ private String revisionId; /** *

* An additional identifier for a revision, such as a commit date or, for artifacts stored in Amazon S3 buckets, the * ETag value. *

*/ private String revisionChangeIdentifier; /** *

* Summary information about the most recent revision of the artifact. For GitHub and AWS CodeCommit repositories, * the commit message. For Amazon S3 buckets or actions, the user-provided content of a * codepipeline-artifact-revision-summary key specified in the object metadata. *

*/ private String revisionSummary; /** *

* The date and time when the most recent revision of the artifact was created, in timestamp format. *

*/ private java.util.Date created; /** *

* The commit ID for the artifact revision. For artifacts stored in GitHub or AWS CodeCommit repositories, the * commit ID is linked to a commit details page. *

*/ private String revisionUrl; /** *

* The name of an artifact. This name might be system-generated, such as "MyApp", or defined by the user when an * action is created. *

* * @param name * The name of an artifact. This name might be system-generated, such as "MyApp", or defined by the user when * an action is created. */ public void setName(String name) { this.name = name; } /** *

* The name of an artifact. This name might be system-generated, such as "MyApp", or defined by the user when an * action is created. *

* * @return The name of an artifact. This name might be system-generated, such as "MyApp", or defined by the user * when an action is created. */ public String getName() { return this.name; } /** *

* The name of an artifact. This name might be system-generated, such as "MyApp", or defined by the user when an * action is created. *

* * @param name * The name of an artifact. This name might be system-generated, such as "MyApp", or defined by the user when * an action is created. * @return Returns a reference to this object so that method calls can be chained together. */ public ArtifactRevision withName(String name) { setName(name); return this; } /** *

* The revision ID of the artifact. *

* * @param revisionId * The revision ID of the artifact. */ public void setRevisionId(String revisionId) { this.revisionId = revisionId; } /** *

* The revision ID of the artifact. *

* * @return The revision ID of the artifact. */ public String getRevisionId() { return this.revisionId; } /** *

* The revision ID of the artifact. *

* * @param revisionId * The revision ID of the artifact. * @return Returns a reference to this object so that method calls can be chained together. */ public ArtifactRevision withRevisionId(String revisionId) { setRevisionId(revisionId); return this; } /** *

* An additional identifier for a revision, such as a commit date or, for artifacts stored in Amazon S3 buckets, the * ETag value. *

* * @param revisionChangeIdentifier * An additional identifier for a revision, such as a commit date or, for artifacts stored in Amazon S3 * buckets, the ETag value. */ public void setRevisionChangeIdentifier(String revisionChangeIdentifier) { this.revisionChangeIdentifier = revisionChangeIdentifier; } /** *

* An additional identifier for a revision, such as a commit date or, for artifacts stored in Amazon S3 buckets, the * ETag value. *

* * @return An additional identifier for a revision, such as a commit date or, for artifacts stored in Amazon S3 * buckets, the ETag value. */ public String getRevisionChangeIdentifier() { return this.revisionChangeIdentifier; } /** *

* An additional identifier for a revision, such as a commit date or, for artifacts stored in Amazon S3 buckets, the * ETag value. *

* * @param revisionChangeIdentifier * An additional identifier for a revision, such as a commit date or, for artifacts stored in Amazon S3 * buckets, the ETag value. * @return Returns a reference to this object so that method calls can be chained together. */ public ArtifactRevision withRevisionChangeIdentifier(String revisionChangeIdentifier) { setRevisionChangeIdentifier(revisionChangeIdentifier); return this; } /** *

* Summary information about the most recent revision of the artifact. For GitHub and AWS CodeCommit repositories, * the commit message. For Amazon S3 buckets or actions, the user-provided content of a * codepipeline-artifact-revision-summary key specified in the object metadata. *

* * @param revisionSummary * Summary information about the most recent revision of the artifact. For GitHub and AWS CodeCommit * repositories, the commit message. For Amazon S3 buckets or actions, the user-provided content of a * codepipeline-artifact-revision-summary key specified in the object metadata. */ public void setRevisionSummary(String revisionSummary) { this.revisionSummary = revisionSummary; } /** *

* Summary information about the most recent revision of the artifact. For GitHub and AWS CodeCommit repositories, * the commit message. For Amazon S3 buckets or actions, the user-provided content of a * codepipeline-artifact-revision-summary key specified in the object metadata. *

* * @return Summary information about the most recent revision of the artifact. For GitHub and AWS CodeCommit * repositories, the commit message. For Amazon S3 buckets or actions, the user-provided content of a * codepipeline-artifact-revision-summary key specified in the object metadata. */ public String getRevisionSummary() { return this.revisionSummary; } /** *

* Summary information about the most recent revision of the artifact. For GitHub and AWS CodeCommit repositories, * the commit message. For Amazon S3 buckets or actions, the user-provided content of a * codepipeline-artifact-revision-summary key specified in the object metadata. *

* * @param revisionSummary * Summary information about the most recent revision of the artifact. For GitHub and AWS CodeCommit * repositories, the commit message. For Amazon S3 buckets or actions, the user-provided content of a * codepipeline-artifact-revision-summary key specified in the object metadata. * @return Returns a reference to this object so that method calls can be chained together. */ public ArtifactRevision withRevisionSummary(String revisionSummary) { setRevisionSummary(revisionSummary); return this; } /** *

* The date and time when the most recent revision of the artifact was created, in timestamp format. *

* * @param created * The date and time when the most recent revision of the artifact was created, in timestamp format. */ public void setCreated(java.util.Date created) { this.created = created; } /** *

* The date and time when the most recent revision of the artifact was created, in timestamp format. *

* * @return The date and time when the most recent revision of the artifact was created, in timestamp format. */ public java.util.Date getCreated() { return this.created; } /** *

* The date and time when the most recent revision of the artifact was created, in timestamp format. *

* * @param created * The date and time when the most recent revision of the artifact was created, in timestamp format. * @return Returns a reference to this object so that method calls can be chained together. */ public ArtifactRevision withCreated(java.util.Date created) { setCreated(created); return this; } /** *

* The commit ID for the artifact revision. For artifacts stored in GitHub or AWS CodeCommit repositories, the * commit ID is linked to a commit details page. *

* * @param revisionUrl * The commit ID for the artifact revision. For artifacts stored in GitHub or AWS CodeCommit repositories, * the commit ID is linked to a commit details page. */ public void setRevisionUrl(String revisionUrl) { this.revisionUrl = revisionUrl; } /** *

* The commit ID for the artifact revision. For artifacts stored in GitHub or AWS CodeCommit repositories, the * commit ID is linked to a commit details page. *

* * @return The commit ID for the artifact revision. For artifacts stored in GitHub or AWS CodeCommit repositories, * the commit ID is linked to a commit details page. */ public String getRevisionUrl() { return this.revisionUrl; } /** *

* The commit ID for the artifact revision. For artifacts stored in GitHub or AWS CodeCommit repositories, the * commit ID is linked to a commit details page. *

* * @param revisionUrl * The commit ID for the artifact revision. For artifacts stored in GitHub or AWS CodeCommit repositories, * the commit ID is linked to a commit details page. * @return Returns a reference to this object so that method calls can be chained together. */ public ArtifactRevision withRevisionUrl(String revisionUrl) { setRevisionUrl(revisionUrl); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getRevisionId() != null) sb.append("RevisionId: ").append(getRevisionId()).append(","); if (getRevisionChangeIdentifier() != null) sb.append("RevisionChangeIdentifier: ").append(getRevisionChangeIdentifier()).append(","); if (getRevisionSummary() != null) sb.append("RevisionSummary: ").append(getRevisionSummary()).append(","); if (getCreated() != null) sb.append("Created: ").append(getCreated()).append(","); if (getRevisionUrl() != null) sb.append("RevisionUrl: ").append(getRevisionUrl()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ArtifactRevision == false) return false; ArtifactRevision other = (ArtifactRevision) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getRevisionId() == null ^ this.getRevisionId() == null) return false; if (other.getRevisionId() != null && other.getRevisionId().equals(this.getRevisionId()) == false) return false; if (other.getRevisionChangeIdentifier() == null ^ this.getRevisionChangeIdentifier() == null) return false; if (other.getRevisionChangeIdentifier() != null && other.getRevisionChangeIdentifier().equals(this.getRevisionChangeIdentifier()) == false) return false; if (other.getRevisionSummary() == null ^ this.getRevisionSummary() == null) return false; if (other.getRevisionSummary() != null && other.getRevisionSummary().equals(this.getRevisionSummary()) == false) return false; if (other.getCreated() == null ^ this.getCreated() == null) return false; if (other.getCreated() != null && other.getCreated().equals(this.getCreated()) == false) return false; if (other.getRevisionUrl() == null ^ this.getRevisionUrl() == null) return false; if (other.getRevisionUrl() != null && other.getRevisionUrl().equals(this.getRevisionUrl()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getRevisionId() == null) ? 0 : getRevisionId().hashCode()); hashCode = prime * hashCode + ((getRevisionChangeIdentifier() == null) ? 0 : getRevisionChangeIdentifier().hashCode()); hashCode = prime * hashCode + ((getRevisionSummary() == null) ? 0 : getRevisionSummary().hashCode()); hashCode = prime * hashCode + ((getCreated() == null) ? 0 : getCreated().hashCode()); hashCode = prime * hashCode + ((getRevisionUrl() == null) ? 0 : getRevisionUrl().hashCode()); return hashCode; } @Override public ArtifactRevision clone() { try { return (ArtifactRevision) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.codepipeline.model.transform.ArtifactRevisionMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy