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 ProductCode
clone()
boolean
equals(Object obj)
String
getProductCodeId()
The product code.String
getProductCodeType()
The type of product code.int
hashCode()
void
setProductCodeId(String productCodeId)
The product code.void
setProductCodeType(ProductCodeValues productCodeType)
The type of product code.void
setProductCodeType(String productCodeType)
The type of product code.String
toString()
Returns a string representation of this object; useful for testing and debugging.ProductCode
withProductCodeId(String productCodeId)
The product code.ProductCode
withProductCodeType(ProductCodeValues productCodeType)
The type of product code.ProductCode
withProductCodeType(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ProductCode clone()
-
-