Class Offering
- All Implemented Interfaces:
Serializable
,Cloneable
Represents the metadata of a device offering.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
A string describing the offering.getId()
The ID that corresponds to a device offering.The platform of the device (e.g., ANDROID or IOS).Specifies whether there are recurring charges for the offering.getType()
The type of offering (e.g., "RECURRING") for a device.int
hashCode()
void
setDescription
(String description) A string describing the offering.void
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
The type of offering (e.g., "RECURRING") for a device.toString()
Returns a string representation of this object; useful for testing and debugging.withDescription
(String description) A string describing the offering.The ID that corresponds to a device offering.withPlatform
(DevicePlatform platform) The platform of the device (e.g., ANDROID or IOS).withPlatform
(String platform) The platform of the device (e.g., ANDROID or IOS).withRecurringCharges
(RecurringCharge... recurringCharges) Specifies whether there are recurring charges for the offering.withRecurringCharges
(Collection<RecurringCharge> recurringCharges) Specifies whether there are recurring charges for the offering.withType
(OfferingType type) The type of offering (e.g., "RECURRING") for a device.The type of offering (e.g., "RECURRING") for a device.
-
Constructor Details
-
Offering
public Offering()
-
-
Method Details
-
setId
The ID that corresponds to a device offering.
- Parameters:
id
- The ID that corresponds to a device offering.
-
getId
The ID that corresponds to a device offering.
- Returns:
- The ID that corresponds to a device offering.
-
withId
The ID that corresponds to a device offering.
- Parameters:
id
- The ID that corresponds to a device offering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
A string describing the offering.
- Parameters:
description
- A string describing the offering.
-
getDescription
A string describing the offering.
- Returns:
- A string describing the offering.
-
withDescription
A string describing the offering.
- Parameters:
description
- A string describing the offering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setType
The type of offering (e.g., "RECURRING") for a device.
- Parameters:
type
- The type of offering (e.g., "RECURRING") for a device.- See Also:
-
getType
The type of offering (e.g., "RECURRING") for a device.
- Returns:
- The type of offering (e.g., "RECURRING") for a device.
- See Also:
-
withType
The type of offering (e.g., "RECURRING") for a device.
- Parameters:
type
- The type of offering (e.g., "RECURRING") for a device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setType
The type of offering (e.g., "RECURRING") for a device.
- Parameters:
type
- The type of offering (e.g., "RECURRING") for a device.- See Also:
-
withType
The type of offering (e.g., "RECURRING") for a device.
- Parameters:
type
- The type of offering (e.g., "RECURRING") for a device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setPlatform
The platform of the device (e.g., ANDROID or IOS).
- Parameters:
platform
- The platform of the device (e.g., ANDROID or IOS).- See Also:
-
getPlatform
The platform of the device (e.g., ANDROID or IOS).
- Returns:
- The platform of the device (e.g., ANDROID or IOS).
- See Also:
-
withPlatform
The platform of the device (e.g., ANDROID or IOS).
- Parameters:
platform
- The platform of the device (e.g., ANDROID or IOS).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setPlatform
The platform of the device (e.g., ANDROID or IOS).
- Parameters:
platform
- The platform of the device (e.g., ANDROID or IOS).- See Also:
-
withPlatform
The platform of the device (e.g., ANDROID or IOS).
- Parameters:
platform
- The platform of the device (e.g., ANDROID or IOS).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
getRecurringCharges
Specifies whether there are recurring charges for the offering.
- Returns:
- Specifies whether there are recurring charges for the offering.
-
setRecurringCharges
Specifies whether there are recurring charges for the offering.
- Parameters:
recurringCharges
- Specifies whether there are recurring charges for the offering.
-
withRecurringCharges
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)
orwithRecurringCharges(java.util.Collection)
if you want to override the existing values.- Parameters:
recurringCharges
- Specifies whether there are recurring charges for the offering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRecurringCharges
Specifies whether there are recurring charges for the offering.
- Parameters:
recurringCharges
- Specifies whether there are recurring charges for the offering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-