Class ProductCode

java.lang.Object
com.amazonaws.services.ec2.model.ProductCode
All Implemented Interfaces:
Serializable, Cloneable

public class ProductCode extends Object implements Serializable, Cloneable

Describes a product code.

See Also:
  • Constructor Details

    • ProductCode

      public ProductCode()
  • Method Details

    • setProductCodeId

      public void setProductCodeId(String productCodeId)

      The product code.

      Parameters:
      productCodeId - The product code.
    • getProductCodeId

      public String getProductCodeId()

      The product code.

      Returns:
      The product code.
    • withProductCodeId

      public ProductCode withProductCodeId(String productCodeId)

      The product code.

      Parameters:
      productCodeId - The product code.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setProductCodeType

      public void setProductCodeType(String productCodeType)

      The type of product code.

      Parameters:
      productCodeType - The type of product code.
      See Also:
    • getProductCodeType

      public String getProductCodeType()

      The type of product code.

      Returns:
      The type of product code.
      See Also:
    • withProductCodeType

      public ProductCode withProductCodeType(String productCodeType)

      The type of product code.

      Parameters:
      productCodeType - The type of product code.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setProductCodeType

      public void setProductCodeType(ProductCodeValues productCodeType)

      The type of product code.

      Parameters:
      productCodeType - The type of product code.
      See Also:
    • withProductCodeType

      public ProductCode withProductCodeType(ProductCodeValues productCodeType)

      The type of product code.

      Parameters:
      productCodeType - The type of product code.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public ProductCode clone()
      Overrides:
      clone in class Object