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

com.amazonaws.services.codepipeline.model.ActionExecutionResult 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.772
Show newest version
/*
 * Copyright 2019-2024 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;

/**
 * 

* Execution result information, such as the external execution ID. *

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

* The action provider's external ID for the action execution. *

*/ private String externalExecutionId; /** *

* The action provider's summary for the action execution. *

*/ private String externalExecutionSummary; /** *

* The deepest external link to the external resource (for example, a repository URL or deployment endpoint) that is * used when running the action. *

*/ private String externalExecutionUrl; private ErrorDetails errorDetails; /** *

* The action provider's external ID for the action execution. *

* * @param externalExecutionId * The action provider's external ID for the action execution. */ public void setExternalExecutionId(String externalExecutionId) { this.externalExecutionId = externalExecutionId; } /** *

* The action provider's external ID for the action execution. *

* * @return The action provider's external ID for the action execution. */ public String getExternalExecutionId() { return this.externalExecutionId; } /** *

* The action provider's external ID for the action execution. *

* * @param externalExecutionId * The action provider's external ID for the action execution. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionExecutionResult withExternalExecutionId(String externalExecutionId) { setExternalExecutionId(externalExecutionId); return this; } /** *

* The action provider's summary for the action execution. *

* * @param externalExecutionSummary * The action provider's summary for the action execution. */ public void setExternalExecutionSummary(String externalExecutionSummary) { this.externalExecutionSummary = externalExecutionSummary; } /** *

* The action provider's summary for the action execution. *

* * @return The action provider's summary for the action execution. */ public String getExternalExecutionSummary() { return this.externalExecutionSummary; } /** *

* The action provider's summary for the action execution. *

* * @param externalExecutionSummary * The action provider's summary for the action execution. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionExecutionResult withExternalExecutionSummary(String externalExecutionSummary) { setExternalExecutionSummary(externalExecutionSummary); return this; } /** *

* The deepest external link to the external resource (for example, a repository URL or deployment endpoint) that is * used when running the action. *

* * @param externalExecutionUrl * The deepest external link to the external resource (for example, a repository URL or deployment endpoint) * that is used when running the action. */ public void setExternalExecutionUrl(String externalExecutionUrl) { this.externalExecutionUrl = externalExecutionUrl; } /** *

* The deepest external link to the external resource (for example, a repository URL or deployment endpoint) that is * used when running the action. *

* * @return The deepest external link to the external resource (for example, a repository URL or deployment endpoint) * that is used when running the action. */ public String getExternalExecutionUrl() { return this.externalExecutionUrl; } /** *

* The deepest external link to the external resource (for example, a repository URL or deployment endpoint) that is * used when running the action. *

* * @param externalExecutionUrl * The deepest external link to the external resource (for example, a repository URL or deployment endpoint) * that is used when running the action. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionExecutionResult withExternalExecutionUrl(String externalExecutionUrl) { setExternalExecutionUrl(externalExecutionUrl); return this; } /** * @param errorDetails */ public void setErrorDetails(ErrorDetails errorDetails) { this.errorDetails = errorDetails; } /** * @return */ public ErrorDetails getErrorDetails() { return this.errorDetails; } /** * @param errorDetails * @return Returns a reference to this object so that method calls can be chained together. */ public ActionExecutionResult withErrorDetails(ErrorDetails errorDetails) { setErrorDetails(errorDetails); 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 (getExternalExecutionId() != null) sb.append("ExternalExecutionId: ").append(getExternalExecutionId()).append(","); if (getExternalExecutionSummary() != null) sb.append("ExternalExecutionSummary: ").append(getExternalExecutionSummary()).append(","); if (getExternalExecutionUrl() != null) sb.append("ExternalExecutionUrl: ").append(getExternalExecutionUrl()).append(","); if (getErrorDetails() != null) sb.append("ErrorDetails: ").append(getErrorDetails()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ActionExecutionResult == false) return false; ActionExecutionResult other = (ActionExecutionResult) obj; if (other.getExternalExecutionId() == null ^ this.getExternalExecutionId() == null) return false; if (other.getExternalExecutionId() != null && other.getExternalExecutionId().equals(this.getExternalExecutionId()) == false) return false; if (other.getExternalExecutionSummary() == null ^ this.getExternalExecutionSummary() == null) return false; if (other.getExternalExecutionSummary() != null && other.getExternalExecutionSummary().equals(this.getExternalExecutionSummary()) == false) return false; if (other.getExternalExecutionUrl() == null ^ this.getExternalExecutionUrl() == null) return false; if (other.getExternalExecutionUrl() != null && other.getExternalExecutionUrl().equals(this.getExternalExecutionUrl()) == false) return false; if (other.getErrorDetails() == null ^ this.getErrorDetails() == null) return false; if (other.getErrorDetails() != null && other.getErrorDetails().equals(this.getErrorDetails()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getExternalExecutionId() == null) ? 0 : getExternalExecutionId().hashCode()); hashCode = prime * hashCode + ((getExternalExecutionSummary() == null) ? 0 : getExternalExecutionSummary().hashCode()); hashCode = prime * hashCode + ((getExternalExecutionUrl() == null) ? 0 : getExternalExecutionUrl().hashCode()); hashCode = prime * hashCode + ((getErrorDetails() == null) ? 0 : getErrorDetails().hashCode()); return hashCode; } @Override public ActionExecutionResult clone() { try { return (ActionExecutionResult) 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.ActionExecutionResultMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy