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

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

/**
 * 

* Returns information about the details of an action type. *

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

* Represents information about an action type. *

*/ private ActionTypeId id; /** *

* The settings for the action type. *

*/ private ActionTypeSettings settings; /** *

* The configuration properties for the action type. *

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

* The details of the input artifact for the action, such as its commit ID. *

*/ private ArtifactDetails inputArtifactDetails; /** *

* The details of the output artifact of the action, such as its commit ID. *

*/ private ArtifactDetails outputArtifactDetails; /** *

* Represents information about an action type. *

* * @param id * Represents information about an action type. */ public void setId(ActionTypeId id) { this.id = id; } /** *

* Represents information about an action type. *

* * @return Represents information about an action type. */ public ActionTypeId getId() { return this.id; } /** *

* Represents information about an action type. *

* * @param id * Represents information about an action type. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionType withId(ActionTypeId id) { setId(id); return this; } /** *

* The settings for the action type. *

* * @param settings * The settings for the action type. */ public void setSettings(ActionTypeSettings settings) { this.settings = settings; } /** *

* The settings for the action type. *

* * @return The settings for the action type. */ public ActionTypeSettings getSettings() { return this.settings; } /** *

* The settings for the action type. *

* * @param settings * The settings for the action type. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionType withSettings(ActionTypeSettings settings) { setSettings(settings); return this; } /** *

* The configuration properties for the action type. *

* * @return The configuration properties for the action type. */ public java.util.List getActionConfigurationProperties() { return actionConfigurationProperties; } /** *

* The configuration properties for the action type. *

* * @param actionConfigurationProperties * The configuration properties for the action type. */ public void setActionConfigurationProperties(java.util.Collection actionConfigurationProperties) { if (actionConfigurationProperties == null) { this.actionConfigurationProperties = null; return; } this.actionConfigurationProperties = new java.util.ArrayList(actionConfigurationProperties); } /** *

* The configuration properties for the action type. *

*

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

* * @param actionConfigurationProperties * The configuration properties for the action type. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionType withActionConfigurationProperties(ActionConfigurationProperty... actionConfigurationProperties) { if (this.actionConfigurationProperties == null) { setActionConfigurationProperties(new java.util.ArrayList(actionConfigurationProperties.length)); } for (ActionConfigurationProperty ele : actionConfigurationProperties) { this.actionConfigurationProperties.add(ele); } return this; } /** *

* The configuration properties for the action type. *

* * @param actionConfigurationProperties * The configuration properties for the action type. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionType withActionConfigurationProperties(java.util.Collection actionConfigurationProperties) { setActionConfigurationProperties(actionConfigurationProperties); return this; } /** *

* The details of the input artifact for the action, such as its commit ID. *

* * @param inputArtifactDetails * The details of the input artifact for the action, such as its commit ID. */ public void setInputArtifactDetails(ArtifactDetails inputArtifactDetails) { this.inputArtifactDetails = inputArtifactDetails; } /** *

* The details of the input artifact for the action, such as its commit ID. *

* * @return The details of the input artifact for the action, such as its commit ID. */ public ArtifactDetails getInputArtifactDetails() { return this.inputArtifactDetails; } /** *

* The details of the input artifact for the action, such as its commit ID. *

* * @param inputArtifactDetails * The details of the input artifact for the action, such as its commit ID. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionType withInputArtifactDetails(ArtifactDetails inputArtifactDetails) { setInputArtifactDetails(inputArtifactDetails); return this; } /** *

* The details of the output artifact of the action, such as its commit ID. *

* * @param outputArtifactDetails * The details of the output artifact of the action, such as its commit ID. */ public void setOutputArtifactDetails(ArtifactDetails outputArtifactDetails) { this.outputArtifactDetails = outputArtifactDetails; } /** *

* The details of the output artifact of the action, such as its commit ID. *

* * @return The details of the output artifact of the action, such as its commit ID. */ public ArtifactDetails getOutputArtifactDetails() { return this.outputArtifactDetails; } /** *

* The details of the output artifact of the action, such as its commit ID. *

* * @param outputArtifactDetails * The details of the output artifact of the action, such as its commit ID. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionType withOutputArtifactDetails(ArtifactDetails outputArtifactDetails) { setOutputArtifactDetails(outputArtifactDetails); 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 (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getSettings() != null) sb.append("Settings: ").append(getSettings()).append(","); if (getActionConfigurationProperties() != null) sb.append("ActionConfigurationProperties: ").append(getActionConfigurationProperties()).append(","); if (getInputArtifactDetails() != null) sb.append("InputArtifactDetails: ").append(getInputArtifactDetails()).append(","); if (getOutputArtifactDetails() != null) sb.append("OutputArtifactDetails: ").append(getOutputArtifactDetails()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ActionType == false) return false; ActionType other = (ActionType) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getSettings() == null ^ this.getSettings() == null) return false; if (other.getSettings() != null && other.getSettings().equals(this.getSettings()) == false) return false; if (other.getActionConfigurationProperties() == null ^ this.getActionConfigurationProperties() == null) return false; if (other.getActionConfigurationProperties() != null && other.getActionConfigurationProperties().equals(this.getActionConfigurationProperties()) == false) return false; if (other.getInputArtifactDetails() == null ^ this.getInputArtifactDetails() == null) return false; if (other.getInputArtifactDetails() != null && other.getInputArtifactDetails().equals(this.getInputArtifactDetails()) == false) return false; if (other.getOutputArtifactDetails() == null ^ this.getOutputArtifactDetails() == null) return false; if (other.getOutputArtifactDetails() != null && other.getOutputArtifactDetails().equals(this.getOutputArtifactDetails()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getSettings() == null) ? 0 : getSettings().hashCode()); hashCode = prime * hashCode + ((getActionConfigurationProperties() == null) ? 0 : getActionConfigurationProperties().hashCode()); hashCode = prime * hashCode + ((getInputArtifactDetails() == null) ? 0 : getInputArtifactDetails().hashCode()); hashCode = prime * hashCode + ((getOutputArtifactDetails() == null) ? 0 : getOutputArtifactDetails().hashCode()); return hashCode; } @Override public ActionType clone() { try { return (ActionType) 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.ActionTypeMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy