@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ProductCode extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about the product code for the EC2 instance.
Constructor and Description |
---|
ProductCode() |
Modifier and Type | Method and Description |
---|---|
ProductCode |
clone() |
boolean |
equals(Object obj) |
String |
getCode()
The product code information.
|
String |
getProductType()
The product code type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCode(String code)
The product code information.
|
void |
setProductType(String productType)
The product code type.
|
String |
toString()
Returns a string representation of this object.
|
ProductCode |
withCode(String code)
The product code information.
|
ProductCode |
withProductType(String productType)
The product code type.
|
public void setCode(String code)
The product code information.
code
- The product code information.public String getCode()
The product code information.
public ProductCode withCode(String code)
The product code information.
code
- The product code information.public void setProductType(String productType)
The product code type.
productType
- The product code type.public String getProductType()
The product code type.
public ProductCode withProductType(String productType)
The product code type.
productType
- The product code type.public String toString()
toString
in class Object
Object.toString()
public ProductCode clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.