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

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

/**
 * 

* Represents information about an action type. *

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

* A category defines what kind of action can be taken in the stage, and constrains the provider type for the * action. Valid categories are limited to one of the following values. *

*
    *
  • *

    * Source *

    *
  • *
  • *

    * Build *

    *
  • *
  • *

    * Test *

    *
  • *
  • *

    * Deploy *

    *
  • *
  • *

    * Invoke *

    *
  • *
  • *

    * Approval *

    *
  • *
*/ private String category; /** *

* The creator of the action being called. There are three valid values for the Owner field in the * action category section within your pipeline structure: AWS, ThirdParty, and * Custom. For more information, see Valid Action Types and Providers in CodePipeline. *

*/ private String owner; /** *

* The provider of the service being called by the action. Valid providers are determined by the action category. * For example, an action in the Deploy category type might have a provider of AWS CodeDeploy, which would be * specified as CodeDeploy. For more information, see Valid Action Types and Providers in CodePipeline. *

*/ private String provider; /** *

* A string that describes the action version. *

*/ private String version; /** *

* A category defines what kind of action can be taken in the stage, and constrains the provider type for the * action. Valid categories are limited to one of the following values. *

*
    *
  • *

    * Source *

    *
  • *
  • *

    * Build *

    *
  • *
  • *

    * Test *

    *
  • *
  • *

    * Deploy *

    *
  • *
  • *

    * Invoke *

    *
  • *
  • *

    * Approval *

    *
  • *
* * @param category * A category defines what kind of action can be taken in the stage, and constrains the provider type for the * action. Valid categories are limited to one of the following values.

*
    *
  • *

    * Source *

    *
  • *
  • *

    * Build *

    *
  • *
  • *

    * Test *

    *
  • *
  • *

    * Deploy *

    *
  • *
  • *

    * Invoke *

    *
  • *
  • *

    * Approval *

    *
  • * @see ActionCategory */ public void setCategory(String category) { this.category = category; } /** *

    * A category defines what kind of action can be taken in the stage, and constrains the provider type for the * action. Valid categories are limited to one of the following values. *

    *
      *
    • *

      * Source *

      *
    • *
    • *

      * Build *

      *
    • *
    • *

      * Test *

      *
    • *
    • *

      * Deploy *

      *
    • *
    • *

      * Invoke *

      *
    • *
    • *

      * Approval *

      *
    • *
    * * @return A category defines what kind of action can be taken in the stage, and constrains the provider type for * the action. Valid categories are limited to one of the following values.

    *
      *
    • *

      * Source *

      *
    • *
    • *

      * Build *

      *
    • *
    • *

      * Test *

      *
    • *
    • *

      * Deploy *

      *
    • *
    • *

      * Invoke *

      *
    • *
    • *

      * Approval *

      *
    • * @see ActionCategory */ public String getCategory() { return this.category; } /** *

      * A category defines what kind of action can be taken in the stage, and constrains the provider type for the * action. Valid categories are limited to one of the following values. *

      *
        *
      • *

        * Source *

        *
      • *
      • *

        * Build *

        *
      • *
      • *

        * Test *

        *
      • *
      • *

        * Deploy *

        *
      • *
      • *

        * Invoke *

        *
      • *
      • *

        * Approval *

        *
      • *
      * * @param category * A category defines what kind of action can be taken in the stage, and constrains the provider type for the * action. Valid categories are limited to one of the following values.

      *
        *
      • *

        * Source *

        *
      • *
      • *

        * Build *

        *
      • *
      • *

        * Test *

        *
      • *
      • *

        * Deploy *

        *
      • *
      • *

        * Invoke *

        *
      • *
      • *

        * Approval *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see ActionCategory */ public ActionTypeId withCategory(String category) { setCategory(category); return this; } /** *

        * A category defines what kind of action can be taken in the stage, and constrains the provider type for the * action. Valid categories are limited to one of the following values. *

        *
          *
        • *

          * Source *

          *
        • *
        • *

          * Build *

          *
        • *
        • *

          * Test *

          *
        • *
        • *

          * Deploy *

          *
        • *
        • *

          * Invoke *

          *
        • *
        • *

          * Approval *

          *
        • *
        * * @param category * A category defines what kind of action can be taken in the stage, and constrains the provider type for the * action. Valid categories are limited to one of the following values.

        *
          *
        • *

          * Source *

          *
        • *
        • *

          * Build *

          *
        • *
        • *

          * Test *

          *
        • *
        • *

          * Deploy *

          *
        • *
        • *

          * Invoke *

          *
        • *
        • *

          * Approval *

          *
        • * @see ActionCategory */ public void setCategory(ActionCategory category) { withCategory(category); } /** *

          * A category defines what kind of action can be taken in the stage, and constrains the provider type for the * action. Valid categories are limited to one of the following values. *

          *
            *
          • *

            * Source *

            *
          • *
          • *

            * Build *

            *
          • *
          • *

            * Test *

            *
          • *
          • *

            * Deploy *

            *
          • *
          • *

            * Invoke *

            *
          • *
          • *

            * Approval *

            *
          • *
          * * @param category * A category defines what kind of action can be taken in the stage, and constrains the provider type for the * action. Valid categories are limited to one of the following values.

          *
            *
          • *

            * Source *

            *
          • *
          • *

            * Build *

            *
          • *
          • *

            * Test *

            *
          • *
          • *

            * Deploy *

            *
          • *
          • *

            * Invoke *

            *
          • *
          • *

            * Approval *

            *
          • * @return Returns a reference to this object so that method calls can be chained together. * @see ActionCategory */ public ActionTypeId withCategory(ActionCategory category) { this.category = category.toString(); return this; } /** *

            * The creator of the action being called. There are three valid values for the Owner field in the * action category section within your pipeline structure: AWS, ThirdParty, and * Custom. For more information, see Valid Action Types and Providers in CodePipeline. *

            * * @param owner * The creator of the action being called. There are three valid values for the Owner field in * the action category section within your pipeline structure: AWS, ThirdParty, and * Custom. For more information, see Valid Action Types and Providers in CodePipeline. * @see ActionOwner */ public void setOwner(String owner) { this.owner = owner; } /** *

            * The creator of the action being called. There are three valid values for the Owner field in the * action category section within your pipeline structure: AWS, ThirdParty, and * Custom. For more information, see Valid Action Types and Providers in CodePipeline. *

            * * @return The creator of the action being called. There are three valid values for the Owner field in * the action category section within your pipeline structure: AWS, ThirdParty, * and Custom. For more information, see Valid Action Types and Providers in CodePipeline. * @see ActionOwner */ public String getOwner() { return this.owner; } /** *

            * The creator of the action being called. There are three valid values for the Owner field in the * action category section within your pipeline structure: AWS, ThirdParty, and * Custom. For more information, see Valid Action Types and Providers in CodePipeline. *

            * * @param owner * The creator of the action being called. There are three valid values for the Owner field in * the action category section within your pipeline structure: AWS, ThirdParty, and * Custom. For more information, see Valid Action Types and Providers in CodePipeline. * @return Returns a reference to this object so that method calls can be chained together. * @see ActionOwner */ public ActionTypeId withOwner(String owner) { setOwner(owner); return this; } /** *

            * The creator of the action being called. There are three valid values for the Owner field in the * action category section within your pipeline structure: AWS, ThirdParty, and * Custom. For more information, see Valid Action Types and Providers in CodePipeline. *

            * * @param owner * The creator of the action being called. There are three valid values for the Owner field in * the action category section within your pipeline structure: AWS, ThirdParty, and * Custom. For more information, see Valid Action Types and Providers in CodePipeline. * @see ActionOwner */ public void setOwner(ActionOwner owner) { withOwner(owner); } /** *

            * The creator of the action being called. There are three valid values for the Owner field in the * action category section within your pipeline structure: AWS, ThirdParty, and * Custom. For more information, see Valid Action Types and Providers in CodePipeline. *

            * * @param owner * The creator of the action being called. There are three valid values for the Owner field in * the action category section within your pipeline structure: AWS, ThirdParty, and * Custom. For more information, see Valid Action Types and Providers in CodePipeline. * @return Returns a reference to this object so that method calls can be chained together. * @see ActionOwner */ public ActionTypeId withOwner(ActionOwner owner) { this.owner = owner.toString(); return this; } /** *

            * The provider of the service being called by the action. Valid providers are determined by the action category. * For example, an action in the Deploy category type might have a provider of AWS CodeDeploy, which would be * specified as CodeDeploy. For more information, see Valid Action Types and Providers in CodePipeline. *

            * * @param provider * The provider of the service being called by the action. Valid providers are determined by the action * category. For example, an action in the Deploy category type might have a provider of AWS CodeDeploy, * which would be specified as CodeDeploy. For more information, see Valid Action Types and Providers in CodePipeline. */ public void setProvider(String provider) { this.provider = provider; } /** *

            * The provider of the service being called by the action. Valid providers are determined by the action category. * For example, an action in the Deploy category type might have a provider of AWS CodeDeploy, which would be * specified as CodeDeploy. For more information, see Valid Action Types and Providers in CodePipeline. *

            * * @return The provider of the service being called by the action. Valid providers are determined by the action * category. For example, an action in the Deploy category type might have a provider of AWS CodeDeploy, * which would be specified as CodeDeploy. For more information, see Valid Action Types and Providers in CodePipeline. */ public String getProvider() { return this.provider; } /** *

            * The provider of the service being called by the action. Valid providers are determined by the action category. * For example, an action in the Deploy category type might have a provider of AWS CodeDeploy, which would be * specified as CodeDeploy. For more information, see Valid Action Types and Providers in CodePipeline. *

            * * @param provider * The provider of the service being called by the action. Valid providers are determined by the action * category. For example, an action in the Deploy category type might have a provider of AWS CodeDeploy, * which would be specified as CodeDeploy. For more information, see Valid Action Types and Providers in CodePipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionTypeId withProvider(String provider) { setProvider(provider); return this; } /** *

            * A string that describes the action version. *

            * * @param version * A string that describes the action version. */ public void setVersion(String version) { this.version = version; } /** *

            * A string that describes the action version. *

            * * @return A string that describes the action version. */ public String getVersion() { return this.version; } /** *

            * A string that describes the action version. *

            * * @param version * A string that describes the action version. * @return Returns a reference to this object so that method calls can be chained together. */ public ActionTypeId withVersion(String version) { setVersion(version); 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 (getCategory() != null) sb.append("Category: ").append(getCategory()).append(","); if (getOwner() != null) sb.append("Owner: ").append(getOwner()).append(","); if (getProvider() != null) sb.append("Provider: ").append(getProvider()).append(","); if (getVersion() != null) sb.append("Version: ").append(getVersion()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ActionTypeId == false) return false; ActionTypeId other = (ActionTypeId) obj; if (other.getCategory() == null ^ this.getCategory() == null) return false; if (other.getCategory() != null && other.getCategory().equals(this.getCategory()) == false) return false; if (other.getOwner() == null ^ this.getOwner() == null) return false; if (other.getOwner() != null && other.getOwner().equals(this.getOwner()) == false) return false; if (other.getProvider() == null ^ this.getProvider() == null) return false; if (other.getProvider() != null && other.getProvider().equals(this.getProvider()) == false) return false; if (other.getVersion() == null ^ this.getVersion() == null) return false; if (other.getVersion() != null && other.getVersion().equals(this.getVersion()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCategory() == null) ? 0 : getCategory().hashCode()); hashCode = prime * hashCode + ((getOwner() == null) ? 0 : getOwner().hashCode()); hashCode = prime * hashCode + ((getProvider() == null) ? 0 : getProvider().hashCode()); hashCode = prime * hashCode + ((getVersion() == null) ? 0 : getVersion().hashCode()); return hashCode; } @Override public ActionTypeId clone() { try { return (ActionTypeId) 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.ActionTypeIdMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy