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:
  • Constructor Details

    • Offering

      public Offering()
  • Method Details

    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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) or withRecurringCharges(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Offering clone()
      Overrides:
      clone in class Object