Class Offering
- java.lang.Object
-
- com.amazonaws.services.devicefarm.model.Offering
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Offering extends Object implements Serializable, Cloneable
Represents the metadata of a device offering.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Offering()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Offeringclone()booleanequals(Object obj)StringgetDescription()A string describing the offering.StringgetId()The ID that corresponds to a device offering.StringgetPlatform()The platform of the device (e.g., ANDROID or IOS).List<RecurringCharge>getRecurringCharges()Specifies whether there are recurring charges for the offering.StringgetType()The type of offering (e.g., "RECURRING") for a device.inthashCode()voidsetDescription(String description)A string describing the offering.voidsetId(String id)The ID that corresponds to a device offering.voidsetPlatform(DevicePlatform platform)The platform of the device (e.g., ANDROID or IOS).voidsetPlatform(String platform)The platform of the device (e.g., ANDROID or IOS).voidsetRecurringCharges(Collection<RecurringCharge> recurringCharges)Specifies whether there are recurring charges for the offering.voidsetType(OfferingType type)The type of offering (e.g., "RECURRING") for a device.voidsetType(String type)The type of offering (e.g., "RECURRING") for a device.StringtoString()Returns a string representation of this object; useful for testing and debugging.OfferingwithDescription(String description)A string describing the offering.OfferingwithId(String id)The ID that corresponds to a device offering.OfferingwithPlatform(DevicePlatform platform)The platform of the device (e.g., ANDROID or IOS).OfferingwithPlatform(String platform)The platform of the device (e.g., ANDROID or IOS).OfferingwithRecurringCharges(RecurringCharge... recurringCharges)Specifies whether there are recurring charges for the offering.OfferingwithRecurringCharges(Collection<RecurringCharge> recurringCharges)Specifies whether there are recurring charges for the offering.OfferingwithType(OfferingType type)The type of offering (e.g., "RECURRING") for a device.OfferingwithType(String type)The type of offering (e.g., "RECURRING") for a device.
-
-
-
Method Detail
-
setId
public void setId(String id)
The ID that corresponds to a device offering.
- Parameters:
id- The ID that corresponds to a device offering.
-
getId
public String getId()
The ID that corresponds to a device offering.
- Returns:
- The ID that corresponds to a device offering.
-
withId
public Offering withId(String id)
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
public void setDescription(String description)
A string describing the offering.
- Parameters:
description- A string describing the offering.
-
getDescription
public String getDescription()
A string describing the offering.
- Returns:
- A string describing the offering.
-
withDescription
public Offering withDescription(String description)
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
public void setType(String type)
The type of offering (e.g., "RECURRING") for a device.
- Parameters:
type- The type of offering (e.g., "RECURRING") for a device.- See Also:
OfferingType
-
getType
public String getType()
The type of offering (e.g., "RECURRING") for a device.
- Returns:
- The type of offering (e.g., "RECURRING") for a device.
- See Also:
OfferingType
-
withType
public Offering withType(String type)
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:
OfferingType
-
setType
public void setType(OfferingType type)
The type of offering (e.g., "RECURRING") for a device.
- Parameters:
type- The type of offering (e.g., "RECURRING") for a device.- See Also:
OfferingType
-
withType
public Offering withType(OfferingType type)
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:
OfferingType
-
setPlatform
public void setPlatform(String platform)
The platform of the device (e.g., ANDROID or IOS).
- Parameters:
platform- The platform of the device (e.g., ANDROID or IOS).- See Also:
DevicePlatform
-
getPlatform
public String getPlatform()
The platform of the device (e.g., ANDROID or IOS).
- Returns:
- The platform of the device (e.g., ANDROID or IOS).
- See Also:
DevicePlatform
-
withPlatform
public Offering withPlatform(String platform)
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:
DevicePlatform
-
setPlatform
public void setPlatform(DevicePlatform platform)
The platform of the device (e.g., ANDROID or IOS).
- Parameters:
platform- The platform of the device (e.g., ANDROID or IOS).- See Also:
DevicePlatform
-
withPlatform
public Offering withPlatform(DevicePlatform platform)
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:
DevicePlatform
-
getRecurringCharges
public List<RecurringCharge> getRecurringCharges()
Specifies whether there are recurring charges for the offering.
- Returns:
- Specifies whether there are recurring charges for the offering.
-
setRecurringCharges
public void setRecurringCharges(Collection<RecurringCharge> recurringCharges)
Specifies whether there are recurring charges for the offering.
- Parameters:
recurringCharges- Specifies whether there are recurring charges for the offering.
-
withRecurringCharges
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)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
public Offering withRecurringCharges(Collection<RecurringCharge> recurringCharges)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-