/* * Copyright 2018-2023 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; /** *
* Input information used for an action execution. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ActionExecutionInput implements Serializable, Cloneable, StructuredPojo { private ActionTypeId actionTypeId; /** ** Configuration data for an action execution. *
*/ private java.util.Map* Configuration data for an action execution with all variable references replaced with their real values for the * execution. *
*/ private java.util.Map* The ARN of the IAM service role that performs the declared action. This is assumed through the roleArn for the * pipeline. *
*/ private String roleArn; /** ** The Amazon Web Services Region for the action, such as us-east-1. *
*/ private String region; /** ** Details of input artifacts of the action that correspond to the action execution. *
*/ private java.util.List* The variable namespace associated with the action. All variables produced as output by this action fall under * this namespace. *
*/ private String namespace; /** * @param actionTypeId */ public void setActionTypeId(ActionTypeId actionTypeId) { this.actionTypeId = actionTypeId; } /** * @return */ public ActionTypeId getActionTypeId() { return this.actionTypeId; } /** * @param actionTypeId * @return Returns a reference to this object so that method calls can be chained together. */ public ActionExecutionInput withActionTypeId(ActionTypeId actionTypeId) { setActionTypeId(actionTypeId); return this; } /** ** Configuration data for an action execution. *
* * @return Configuration data for an action execution. */ public java.util.Map* Configuration data for an action execution. *
* * @param configuration * Configuration data for an action execution. */ public void setConfiguration(java.util.Map* Configuration data for an action execution. *
* * @param configuration * Configuration data for an action execution. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionExecutionInput withConfiguration(java.util.Map* Configuration data for an action execution with all variable references replaced with their real values for the * execution. *
* * @return Configuration data for an action execution with all variable references replaced with their real values * for the execution. */ public java.util.Map* Configuration data for an action execution with all variable references replaced with their real values for the * execution. *
* * @param resolvedConfiguration * Configuration data for an action execution with all variable references replaced with their real values * for the execution. */ public void setResolvedConfiguration(java.util.Map* Configuration data for an action execution with all variable references replaced with their real values for the * execution. *
* * @param resolvedConfiguration * Configuration data for an action execution with all variable references replaced with their real values * for the execution. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionExecutionInput withResolvedConfiguration(java.util.Map* The ARN of the IAM service role that performs the declared action. This is assumed through the roleArn for the * pipeline. *
* * @param roleArn * The ARN of the IAM service role that performs the declared action. This is assumed through the roleArn for * the pipeline. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** ** The ARN of the IAM service role that performs the declared action. This is assumed through the roleArn for the * pipeline. *
* * @return The ARN of the IAM service role that performs the declared action. This is assumed through the roleArn * for the pipeline. */ public String getRoleArn() { return this.roleArn; } /** ** The ARN of the IAM service role that performs the declared action. This is assumed through the roleArn for the * pipeline. *
* * @param roleArn * The ARN of the IAM service role that performs the declared action. This is assumed through the roleArn for * the pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionExecutionInput withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** ** The Amazon Web Services Region for the action, such as us-east-1. *
* * @param region * The Amazon Web Services Region for the action, such as us-east-1. */ public void setRegion(String region) { this.region = region; } /** ** The Amazon Web Services Region for the action, such as us-east-1. *
* * @return The Amazon Web Services Region for the action, such as us-east-1. */ public String getRegion() { return this.region; } /** ** The Amazon Web Services Region for the action, such as us-east-1. *
* * @param region * The Amazon Web Services Region for the action, such as us-east-1. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionExecutionInput withRegion(String region) { setRegion(region); return this; } /** ** Details of input artifacts of the action that correspond to the action execution. *
* * @return Details of input artifacts of the action that correspond to the action execution. */ public java.util.List* Details of input artifacts of the action that correspond to the action execution. *
* * @param inputArtifacts * Details of input artifacts of the action that correspond to the action execution. */ public void setInputArtifacts(java.util.Collection* Details of input artifacts of the action that correspond to the action execution. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setInputArtifacts(java.util.Collection)} or {@link #withInputArtifacts(java.util.Collection)} if you want * to override the existing values. *
* * @param inputArtifacts * Details of input 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 ActionExecutionInput withInputArtifacts(ArtifactDetail... inputArtifacts) { if (this.inputArtifacts == null) { setInputArtifacts(new java.util.ArrayList* Details of input artifacts of the action that correspond to the action execution. *
* * @param inputArtifacts * Details of input 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 ActionExecutionInput withInputArtifacts(java.util.Collection* The variable namespace associated with the action. All variables produced as output by this action fall under * this namespace. *
* * @param namespace * The variable namespace associated with the action. All variables produced as output by this action fall * under this namespace. */ public void setNamespace(String namespace) { this.namespace = namespace; } /** ** The variable namespace associated with the action. All variables produced as output by this action fall under * this namespace. *
* * @return The variable namespace associated with the action. All variables produced as output by this action fall * under this namespace. */ public String getNamespace() { return this.namespace; } /** ** The variable namespace associated with the action. All variables produced as output by this action fall under * this namespace. *
* * @param namespace * The variable namespace associated with the action. All variables produced as output by this action fall * under this namespace. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionExecutionInput withNamespace(String namespace) { setNamespace(namespace); 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 (getActionTypeId() != null) sb.append("ActionTypeId: ").append(getActionTypeId()).append(","); if (getConfiguration() != null) sb.append("Configuration: ").append(getConfiguration()).append(","); if (getResolvedConfiguration() != null) sb.append("ResolvedConfiguration: ").append(getResolvedConfiguration()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getRegion() != null) sb.append("Region: ").append(getRegion()).append(","); if (getInputArtifacts() != null) sb.append("InputArtifacts: ").append(getInputArtifacts()).append(","); if (getNamespace() != null) sb.append("Namespace: ").append(getNamespace()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ActionExecutionInput == false) return false; ActionExecutionInput other = (ActionExecutionInput) obj; if (other.getActionTypeId() == null ^ this.getActionTypeId() == null) return false; if (other.getActionTypeId() != null && other.getActionTypeId().equals(this.getActionTypeId()) == false) return false; if (other.getConfiguration() == null ^ this.getConfiguration() == null) return false; if (other.getConfiguration() != null && other.getConfiguration().equals(this.getConfiguration()) == false) return false; if (other.getResolvedConfiguration() == null ^ this.getResolvedConfiguration() == null) return false; if (other.getResolvedConfiguration() != null && other.getResolvedConfiguration().equals(this.getResolvedConfiguration()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getRegion() == null ^ this.getRegion() == null) return false; if (other.getRegion() != null && other.getRegion().equals(this.getRegion()) == false) return false; if (other.getInputArtifacts() == null ^ this.getInputArtifacts() == null) return false; if (other.getInputArtifacts() != null && other.getInputArtifacts().equals(this.getInputArtifacts()) == false) return false; if (other.getNamespace() == null ^ this.getNamespace() == null) return false; if (other.getNamespace() != null && other.getNamespace().equals(this.getNamespace()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getActionTypeId() == null) ? 0 : getActionTypeId().hashCode()); hashCode = prime * hashCode + ((getConfiguration() == null) ? 0 : getConfiguration().hashCode()); hashCode = prime * hashCode + ((getResolvedConfiguration() == null) ? 0 : getResolvedConfiguration().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getRegion() == null) ? 0 : getRegion().hashCode()); hashCode = prime * hashCode + ((getInputArtifacts() == null) ? 0 : getInputArtifacts().hashCode()); hashCode = prime * hashCode + ((getNamespace() == null) ? 0 : getNamespace().hashCode()); return hashCode; } @Override public ActionExecutionInput clone() { try { return (ActionExecutionInput) 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.ActionExecutionInputMarshaller.getInstance().marshall(this, protocolMarshaller); } }