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

com.amazonaws.services.codepipeline.model.ActionExecutionOutput 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;

/**
 * 

* Output details listed for an action execution, such as the action execution result. *

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

* Details of output artifacts of the action that correspond to the action execution. *

*/ private java.util.List outputArtifacts; /** *

* Execution result information listed in the output details for an action execution. *

*/ private ActionExecutionResult executionResult; /** *

* The outputVariables field shows the key-value pairs that were output as part of that execution. *

*/ private java.util.Map outputVariables; /** *

* Details of output artifacts of the action that correspond to the action execution. *

* * @return Details of output artifacts of the action that correspond to the action execution. */ public java.util.List getOutputArtifacts() { return outputArtifacts; } /** *

* Details of output artifacts of the action that correspond to the action execution. *

* * @param outputArtifacts * Details of output artifacts of the action that correspond to the action execution. */ public void setOutputArtifacts(java.util.Collection outputArtifacts) { if (outputArtifacts == null) { this.outputArtifacts = null; return; } this.outputArtifacts = new java.util.ArrayList(outputArtifacts); } /** *

* Details of output artifacts of the action that correspond to the action execution. *

*

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

* * @param outputArtifacts * Details of output artifacts of the action that correspond to the action execution. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionExecutionOutput withOutputArtifacts(ArtifactDetail... outputArtifacts) { if (this.outputArtifacts == null) { setOutputArtifacts(new java.util.ArrayList(outputArtifacts.length)); } for (ArtifactDetail ele : outputArtifacts) { this.outputArtifacts.add(ele); } return this; } /** *

* Details of output artifacts of the action that correspond to the action execution. *

* * @param outputArtifacts * Details of output artifacts of the action that correspond to the action execution. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionExecutionOutput withOutputArtifacts(java.util.Collection outputArtifacts) { setOutputArtifacts(outputArtifacts); return this; } /** *

* Execution result information listed in the output details for an action execution. *

* * @param executionResult * Execution result information listed in the output details for an action execution. */ public void setExecutionResult(ActionExecutionResult executionResult) { this.executionResult = executionResult; } /** *

* Execution result information listed in the output details for an action execution. *

* * @return Execution result information listed in the output details for an action execution. */ public ActionExecutionResult getExecutionResult() { return this.executionResult; } /** *

* Execution result information listed in the output details for an action execution. *

* * @param executionResult * Execution result information listed in the output details for an action execution. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionExecutionOutput withExecutionResult(ActionExecutionResult executionResult) { setExecutionResult(executionResult); return this; } /** *

* The outputVariables field shows the key-value pairs that were output as part of that execution. *

* * @return The outputVariables field shows the key-value pairs that were output as part of that execution. */ public java.util.Map getOutputVariables() { return outputVariables; } /** *

* The outputVariables field shows the key-value pairs that were output as part of that execution. *

* * @param outputVariables * The outputVariables field shows the key-value pairs that were output as part of that execution. */ public void setOutputVariables(java.util.Map outputVariables) { this.outputVariables = outputVariables; } /** *

* The outputVariables field shows the key-value pairs that were output as part of that execution. *

* * @param outputVariables * The outputVariables field shows the key-value pairs that were output as part of that execution. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionExecutionOutput withOutputVariables(java.util.Map outputVariables) { setOutputVariables(outputVariables); return this; } /** * Add a single OutputVariables entry * * @see ActionExecutionOutput#withOutputVariables * @returns a reference to this object so that method calls can be chained together. */ public ActionExecutionOutput addOutputVariablesEntry(String key, String value) { if (null == this.outputVariables) { this.outputVariables = new java.util.HashMap(); } if (this.outputVariables.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.outputVariables.put(key, value); return this; } /** * Removes all the entries added into OutputVariables. * * @return Returns a reference to this object so that method calls can be chained together. */ public ActionExecutionOutput clearOutputVariablesEntries() { this.outputVariables = null; 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 (getOutputArtifacts() != null) sb.append("OutputArtifacts: ").append(getOutputArtifacts()).append(","); if (getExecutionResult() != null) sb.append("ExecutionResult: ").append(getExecutionResult()).append(","); if (getOutputVariables() != null) sb.append("OutputVariables: ").append(getOutputVariables()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ActionExecutionOutput == false) return false; ActionExecutionOutput other = (ActionExecutionOutput) obj; if (other.getOutputArtifacts() == null ^ this.getOutputArtifacts() == null) return false; if (other.getOutputArtifacts() != null && other.getOutputArtifacts().equals(this.getOutputArtifacts()) == false) return false; if (other.getExecutionResult() == null ^ this.getExecutionResult() == null) return false; if (other.getExecutionResult() != null && other.getExecutionResult().equals(this.getExecutionResult()) == false) return false; if (other.getOutputVariables() == null ^ this.getOutputVariables() == null) return false; if (other.getOutputVariables() != null && other.getOutputVariables().equals(this.getOutputVariables()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getOutputArtifacts() == null) ? 0 : getOutputArtifacts().hashCode()); hashCode = prime * hashCode + ((getExecutionResult() == null) ? 0 : getExecutionResult().hashCode()); hashCode = prime * hashCode + ((getOutputVariables() == null) ? 0 : getOutputVariables().hashCode()); return hashCode; } @Override public ActionExecutionOutput clone() { try { return (ActionExecutionOutput) 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.ActionExecutionOutputMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy