@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Offering extends Object implements Serializable, Cloneable, StructuredPojo
Represents the metadata of a device offering.
Constructor and Description |
---|
Offering() |
Modifier and Type | Method and Description |
---|---|
Offering |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
A string describing the offering.
|
String |
getId()
The ID that corresponds to a device offering.
|
String |
getPlatform()
The platform of the device (e.g., ANDROID or IOS).
|
List<RecurringCharge> |
getRecurringCharges()
Specifies whether there are recurring charges for the offering.
|
String |
getType()
The type of offering (e.g., "RECURRING") for a device.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDescription(String description)
A string describing the offering.
|
void |
setId(String id)
The ID that corresponds to a device offering.
|
void |
setPlatform(DevicePlatform platform)
The platform of the device (e.g., ANDROID or IOS).
|
void |
setPlatform(String platform)
The platform of the device (e.g., ANDROID or IOS).
|
void |
setRecurringCharges(Collection<RecurringCharge> recurringCharges)
Specifies whether there are recurring charges for the offering.
|
void |
setType(OfferingType type)
The type of offering (e.g., "RECURRING") for a device.
|
void |
setType(String type)
The type of offering (e.g., "RECURRING") for a device.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Offering |
withDescription(String description)
A string describing the offering.
|
Offering |
withId(String id)
The ID that corresponds to a device offering.
|
Offering |
withPlatform(DevicePlatform platform)
The platform of the device (e.g., ANDROID or IOS).
|
Offering |
withPlatform(String platform)
The platform of the device (e.g., ANDROID or IOS).
|
Offering |
withRecurringCharges(Collection<RecurringCharge> recurringCharges)
Specifies whether there are recurring charges for the offering.
|
Offering |
withRecurringCharges(RecurringCharge... recurringCharges)
Specifies whether there are recurring charges for the offering.
|
Offering |
withType(OfferingType type)
The type of offering (e.g., "RECURRING") for a device.
|
Offering |
withType(String type)
The type of offering (e.g., "RECURRING") for a device.
|
public void setId(String id)
The ID that corresponds to a device offering.
id
- The ID that corresponds to a device offering.public String getId()
The ID that corresponds to a device offering.
public Offering withId(String id)
The ID that corresponds to a device offering.
id
- The ID that corresponds to a device offering.public void setDescription(String description)
A string describing the offering.
description
- A string describing the offering.public String getDescription()
A string describing the offering.
public Offering withDescription(String description)
A string describing the offering.
description
- A string describing the offering.public void setType(String type)
The type of offering (e.g., "RECURRING") for a device.
type
- The type of offering (e.g., "RECURRING") for a device.OfferingType
public String getType()
The type of offering (e.g., "RECURRING") for a device.
OfferingType
public Offering withType(String type)
The type of offering (e.g., "RECURRING") for a device.
type
- The type of offering (e.g., "RECURRING") for a device.OfferingType
public void setType(OfferingType type)
The type of offering (e.g., "RECURRING") for a device.
type
- The type of offering (e.g., "RECURRING") for a device.OfferingType
public Offering withType(OfferingType type)
The type of offering (e.g., "RECURRING") for a device.
type
- The type of offering (e.g., "RECURRING") for a device.OfferingType
public void setPlatform(String platform)
The platform of the device (e.g., ANDROID or IOS).
platform
- The platform of the device (e.g., ANDROID or IOS).DevicePlatform
public String getPlatform()
The platform of the device (e.g., ANDROID or IOS).
DevicePlatform
public Offering withPlatform(String platform)
The platform of the device (e.g., ANDROID or IOS).
platform
- The platform of the device (e.g., ANDROID or IOS).DevicePlatform
public void setPlatform(DevicePlatform platform)
The platform of the device (e.g., ANDROID or IOS).
platform
- The platform of the device (e.g., ANDROID or IOS).DevicePlatform
public Offering withPlatform(DevicePlatform platform)
The platform of the device (e.g., ANDROID or IOS).
platform
- The platform of the device (e.g., ANDROID or IOS).DevicePlatform
public List<RecurringCharge> getRecurringCharges()
Specifies whether there are recurring charges for the offering.
public void setRecurringCharges(Collection<RecurringCharge> recurringCharges)
Specifies whether there are recurring charges for the offering.
recurringCharges
- Specifies whether there are recurring charges for the offering.public Offering withRecurringCharges(RecurringCharge... recurringCharges)
Specifies whether there are recurring charges for the offering.
NOTE: This method appends the values to the existing list (if any). Use
setRecurringCharges(java.util.Collection)
or withRecurringCharges(java.util.Collection)
if you
want to override the existing values.
recurringCharges
- Specifies whether there are recurring charges for the offering.public Offering withRecurringCharges(Collection<RecurringCharge> recurringCharges)
Specifies whether there are recurring charges for the offering.
recurringCharges
- Specifies whether there are recurring charges for the offering.public String toString()
toString
in class Object
Object.toString()
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.