/* * 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; /** *
* Represents information about an action declaration. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ActionDeclaration implements Serializable, Cloneable, StructuredPojo { /** ** The action declaration's name. *
*/ private String name; /** ** Specifies the action type and the provider of the action. *
*/ private ActionTypeId actionTypeId; /** ** The order in which actions are run. *
*/ private Integer runOrder; /** ** The action's configuration. These are key-value pairs that specify input values for an action. For more * information, see Action Structure Requirements in CodePipeline. For the list of configuration properties for the * CloudFormation action type in CodePipeline, see Configuration Properties Reference in the CloudFormation User Guide. For template snippets with * examples, see Using Parameter Override Functions with CodePipeline Pipelines in the CloudFormation User Guide. *
** The values can be represented in either JSON or YAML format. For example, the JSON configuration item format is * as follows: *
** JSON: *
*
* "Configuration" : { Key : Value },
*
* The name or ID of the result of the action declaration, such as a test or build artifact. *
*/ private java.util.List* The name or ID of the artifact consumed by the action, such as a test or build artifact. *
*/ private java.util.List* 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 action declaration's Amazon Web Services Region, such as us-east-1. *
*/ private String region; /** ** The variable namespace associated with the action. All variables produced as output by this action fall under * this namespace. *
*/ private String namespace; /** ** The action declaration's name. *
* * @param name * The action declaration's name. */ public void setName(String name) { this.name = name; } /** ** The action declaration's name. *
* * @return The action declaration's name. */ public String getName() { return this.name; } /** ** The action declaration's name. *
* * @param name * The action declaration's name. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionDeclaration withName(String name) { setName(name); return this; } /** ** Specifies the action type and the provider of the action. *
* * @param actionTypeId * Specifies the action type and the provider of the action. */ public void setActionTypeId(ActionTypeId actionTypeId) { this.actionTypeId = actionTypeId; } /** ** Specifies the action type and the provider of the action. *
* * @return Specifies the action type and the provider of the action. */ public ActionTypeId getActionTypeId() { return this.actionTypeId; } /** ** Specifies the action type and the provider of the action. *
* * @param actionTypeId * Specifies the action type and the provider of the action. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionDeclaration withActionTypeId(ActionTypeId actionTypeId) { setActionTypeId(actionTypeId); return this; } /** ** The order in which actions are run. *
* * @param runOrder * The order in which actions are run. */ public void setRunOrder(Integer runOrder) { this.runOrder = runOrder; } /** ** The order in which actions are run. *
* * @return The order in which actions are run. */ public Integer getRunOrder() { return this.runOrder; } /** ** The order in which actions are run. *
* * @param runOrder * The order in which actions are run. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionDeclaration withRunOrder(Integer runOrder) { setRunOrder(runOrder); return this; } /** ** The action's configuration. These are key-value pairs that specify input values for an action. For more * information, see Action Structure Requirements in CodePipeline. For the list of configuration properties for the * CloudFormation action type in CodePipeline, see Configuration Properties Reference in the CloudFormation User Guide. For template snippets with * examples, see Using Parameter Override Functions with CodePipeline Pipelines in the CloudFormation User Guide. *
** The values can be represented in either JSON or YAML format. For example, the JSON configuration item format is * as follows: *
** JSON: *
*
* "Configuration" : { Key : Value },
*
* The values can be represented in either JSON or YAML format. For example, the JSON configuration item * format is as follows: *
** JSON: *
*
*
* The action's configuration. These are key-value pairs that specify input values for an action. For more
* information, see Action Structure Requirements in CodePipeline. For the list of configuration properties for the
* CloudFormation action type in CodePipeline, see Configuration Properties Reference in the CloudFormation User Guide. For template snippets with
* examples, see Using Parameter Override Functions with CodePipeline Pipelines in the CloudFormation User Guide.
*
* The values can be represented in either JSON or YAML format. For example, the JSON configuration item format is
* as follows:
*
* JSON:
*
* "Configuration" : { Key : Value },
*/
public java.util.Map"Configuration" : { Key : Value },
*
* The values can be represented in either JSON or YAML format. For example, the JSON configuration item * format is as follows: *
** JSON: *
*
*
* The action's configuration. These are key-value pairs that specify input values for an action. For more
* information, see Action Structure Requirements in CodePipeline. For the list of configuration properties for the
* CloudFormation action type in CodePipeline, see Configuration Properties Reference in the CloudFormation User Guide. For template snippets with
* examples, see Using Parameter Override Functions with CodePipeline Pipelines in the CloudFormation User Guide.
*
* The values can be represented in either JSON or YAML format. For example, the JSON configuration item format is
* as follows:
*
* JSON:
*
* "Configuration" : { Key : Value },
*/
public void setConfiguration(java.util.Map"Configuration" : { Key : Value },
*
* The values can be represented in either JSON or YAML format. For example, the JSON configuration item * format is as follows: *
** JSON: *
*
*
* The name or ID of the result of the action declaration, such as a test or build artifact.
*
* The name or ID of the result of the action declaration, such as a test or build artifact.
*
* The name or ID of the result of the action declaration, such as a test or build artifact.
*
* 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.
*
* The name or ID of the result of the action declaration, such as a test or build artifact.
*
* The name or ID of the artifact consumed by the action, such as a test or build artifact.
*
* The name or ID of the artifact consumed by the action, such as a test or build artifact.
*
* The name or ID of the artifact consumed by the action, such as a test or build artifact.
*
* 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.
*
* The name or ID of the artifact consumed by the action, such as a test or build artifact.
*
* The ARN of the IAM service role that performs the declared action. This is assumed through the roleArn for the
* pipeline.
*
* The ARN of the IAM service role that performs the declared action. This is assumed through the roleArn for the
* pipeline.
*
* The ARN of the IAM service role that performs the declared action. This is assumed through the roleArn for the
* pipeline.
*
* The action declaration's Amazon Web Services Region, such as us-east-1.
*
* The action declaration's Amazon Web Services Region, such as us-east-1.
*
* The action declaration's Amazon Web Services Region, such as us-east-1.
*
* The variable namespace associated with the action. All variables produced as output by this action fall under
* this namespace.
*
* The variable namespace associated with the action. All variables produced as output by this action fall under
* this namespace.
*
* The variable namespace associated with the action. All variables produced as output by this action fall under
* this namespace.
* "Configuration" : { Key : Value },
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ActionDeclaration withConfiguration(java.util.Map