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 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
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(RecurringCharge... recurringCharges)
Specifies whether there are recurring charges for the offering.Offering
withRecurringCharges(Collection<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.
-
-
-
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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-