public class Offering
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents the metadata of a device offering.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
description
A string describing the offering.
|
private java.lang.String |
id
The ID that corresponds to a device offering.
|
private java.lang.String |
platform
The platform of the device (e.g., ANDROID or IOS).
|
private java.util.List<RecurringCharge> |
recurringCharges
Specifies whether there are recurring charges for the offering.
|
private java.lang.String |
type
The type of offering (e.g., "RECURRING") for a device.
|
Constructor and Description |
---|
Offering() |
Modifier and Type | Method and Description |
---|---|
Offering |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
A string describing the offering.
|
java.lang.String |
getId()
The ID that corresponds to a device offering.
|
java.lang.String |
getPlatform()
The platform of the device (e.g., ANDROID or IOS).
|
java.util.List<RecurringCharge> |
getRecurringCharges()
Specifies whether there are recurring charges for the offering.
|
java.lang.String |
getType()
The type of offering (e.g., "RECURRING") for a device.
|
int |
hashCode() |
void |
setDescription(java.lang.String description)
A string describing the offering.
|
void |
setId(java.lang.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(java.lang.String platform)
The platform of the device (e.g., ANDROID or IOS).
|
void |
setRecurringCharges(java.util.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(java.lang.String type)
The type of offering (e.g., "RECURRING") for a device.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Offering |
withDescription(java.lang.String description)
A string describing the offering.
|
Offering |
withId(java.lang.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(java.lang.String platform)
The platform of the device (e.g., ANDROID or IOS).
|
Offering |
withRecurringCharges(java.util.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(java.lang.String type)
The type of offering (e.g., "RECURRING") for a device.
|
private java.lang.String id
The ID that corresponds to a device offering.
private java.lang.String description
A string describing the offering.
private java.lang.String type
The type of offering (e.g., "RECURRING") for a device.
private java.lang.String platform
The platform of the device (e.g., ANDROID or IOS).
private java.util.List<RecurringCharge> recurringCharges
Specifies whether there are recurring charges for the offering.
public void setId(java.lang.String id)
The ID that corresponds to a device offering.
id
- The ID that corresponds to a device offering.public java.lang.String getId()
The ID that corresponds to a device offering.
public Offering withId(java.lang.String id)
The ID that corresponds to a device offering.
id
- The ID that corresponds to a device offering.public void setDescription(java.lang.String description)
A string describing the offering.
description
- A string describing the offering.public java.lang.String getDescription()
A string describing the offering.
public Offering withDescription(java.lang.String description)
A string describing the offering.
description
- A string describing the offering.public void setType(java.lang.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 java.lang.String getType()
The type of offering (e.g., "RECURRING") for a device.
OfferingType
public Offering withType(java.lang.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(java.lang.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 java.lang.String getPlatform()
The platform of the device (e.g., ANDROID or IOS).
DevicePlatform
public Offering withPlatform(java.lang.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 java.util.List<RecurringCharge> getRecurringCharges()
Specifies whether there are recurring charges for the offering.
public void setRecurringCharges(java.util.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(java.util.Collection<RecurringCharge> recurringCharges)
Specifies whether there are recurring charges for the offering.
recurringCharges
- Specifies whether there are recurring charges for the offering.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Offering clone()
clone
in class java.lang.Object