Package com.amazonaws.services.ec2.model
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProductCode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProductCodeclone()booleanequals(Object obj)StringgetProductCodeId()The product code.StringgetProductCodeType()The type of product code.inthashCode()voidsetProductCodeId(String productCodeId)The product code.voidsetProductCodeType(ProductCodeValues productCodeType)The type of product code.voidsetProductCodeType(String productCodeType)The type of product code.StringtoString()Returns a string representation of this object; useful for testing and debugging.ProductCodewithProductCodeId(String productCodeId)The product code.ProductCodewithProductCodeType(ProductCodeValues productCodeType)The type of product code.ProductCodewithProductCodeType(String productCodeType)The type of product code.
-
-
-
Method Detail
-
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:
ProductCodeValues
-
getProductCodeType
public String getProductCodeType()
The type of product code.
- Returns:
- The type of product code.
- See Also:
ProductCodeValues
-
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:
ProductCodeValues
-
setProductCodeType
public void setProductCodeType(ProductCodeValues productCodeType)
The type of product code.
- Parameters:
productCodeType- The type of product code.- See Also:
ProductCodeValues
-
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:
ProductCodeValues
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ProductCode clone()
-
-