com.amazonaws.services.ec2.model
Class ProductCode

java.lang.Object
  extended by com.amazonaws.services.ec2.model.ProductCode
All Implemented Interfaces:
Serializable

public class ProductCode
extends Object
implements Serializable

Describes a product code.

See Also:
Serialized Form

Constructor Summary
ProductCode()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProductCode

public ProductCode()
Method Detail

getProductCodeId

public String getProductCodeId()
The product code.

Returns:
The product code.

setProductCodeId

public void setProductCodeId(String productCodeId)
The product code.

Parameters:
productCodeId - The product code.

withProductCodeId

public ProductCode withProductCodeId(String productCodeId)
The product code.

Returns a reference to this object so that method calls can be chained together.

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

getProductCodeType

public String getProductCodeType()
The type of product code.

Constraints:
Allowed Values: devpay, marketplace

Returns:
The type of product code.
See Also:
ProductCodeValues

setProductCodeType

public void setProductCodeType(String productCodeType)
The type of product code.

Constraints:
Allowed Values: devpay, marketplace

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

withProductCodeType

public ProductCode withProductCodeType(String productCodeType)
The type of product code.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: devpay, marketplace

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

setProductCodeType

public void setProductCodeType(ProductCodeValues productCodeType)
The type of product code.

Constraints:
Allowed Values: devpay, marketplace

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

withProductCodeType

public ProductCode withProductCodeType(ProductCodeValues productCodeType)
The type of product code.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: devpay, marketplace

Parameters:
productCodeType - The type of product code.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2016. All rights reserved.