@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Offering extends Object implements Serializable, Cloneable, StructuredPojo
Represents the metadata of a device offering.
Constructor and Description |
---|
Offering() |
Modifier and Type | Method and Description |
---|---|
Offering |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
A string that describes the offering.
|
String |
getId()
The ID that corresponds to a device offering.
|
String |
getPlatform()
The platform of the device (for example,
ANDROID or IOS ). |
List<RecurringCharge> |
getRecurringCharges()
Specifies whether there are recurring charges for the offering.
|
String |
getType()
The type of offering (for example,
RECURRING ) for a device. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setDescription(String description)
A string that describes the offering.
|
void |
setId(String id)
The ID that corresponds to a device offering.
|
void |
setPlatform(DevicePlatform platform)
The platform of the device (for example,
ANDROID or IOS ). |
void |
setPlatform(String platform)
The platform of the device (for example,
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 (for example,
RECURRING ) for a device. |
void |
setType(String type)
The type of offering (for example,
RECURRING ) for a device. |
String |
toString()
Returns a string representation of this object.
|
Offering |
withDescription(String description)
A string that describes the offering.
|
Offering |
withId(String id)
The ID that corresponds to a device offering.
|
Offering |
withPlatform(DevicePlatform platform)
The platform of the device (for example,
ANDROID or IOS ). |
Offering |
withPlatform(String platform)
The platform of the device (for example,
ANDROID or IOS ). |
Offering |
withRecurringCharges(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 (for example,
RECURRING ) for a device. |
Offering |
withType(String type)
The type of offering (for example,
RECURRING ) for a device. |
public void setId(String id)
The ID that corresponds to a device offering.
id
- The ID that corresponds to a device offering.public String getId()
The ID that corresponds to a device offering.
public Offering withId(String id)
The ID that corresponds to a device offering.
id
- The ID that corresponds to a device offering.public void setDescription(String description)
A string that describes the offering.
description
- A string that describes the offering.public String getDescription()
A string that describes the offering.
public Offering withDescription(String description)
A string that describes the offering.
description
- A string that describes the offering.public void setType(String type)
The type of offering (for example, RECURRING
) for a device.
type
- The type of offering (for example, RECURRING
) for a device.OfferingType
public String getType()
The type of offering (for example, RECURRING
) for a device.
RECURRING
) for a device.OfferingType
public Offering withType(String type)
The type of offering (for example, RECURRING
) for a device.
type
- The type of offering (for example, RECURRING
) for a device.OfferingType
public void setType(OfferingType type)
The type of offering (for example, RECURRING
) for a device.
type
- The type of offering (for example, RECURRING
) for a device.OfferingType
public Offering withType(OfferingType type)
The type of offering (for example, RECURRING
) for a device.
type
- The type of offering (for example, RECURRING
) for a device.OfferingType
public void setPlatform(String platform)
The platform of the device (for example, ANDROID
or IOS
).
platform
- The platform of the device (for example, ANDROID
or IOS
).DevicePlatform
public String getPlatform()
The platform of the device (for example, ANDROID
or IOS
).
ANDROID
or IOS
).DevicePlatform
public Offering withPlatform(String platform)
The platform of the device (for example, ANDROID
or IOS
).
platform
- The platform of the device (for example, ANDROID
or IOS
).DevicePlatform
public void setPlatform(DevicePlatform platform)
The platform of the device (for example, ANDROID
or IOS
).
platform
- The platform of the device (for example, ANDROID
or IOS
).DevicePlatform
public Offering withPlatform(DevicePlatform platform)
The platform of the device (for example, ANDROID
or IOS
).
platform
- The platform of the device (for example, ANDROID
or IOS
).DevicePlatform
public List<RecurringCharge> getRecurringCharges()
Specifies whether there are recurring charges for the offering.
public void setRecurringCharges(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(Collection<RecurringCharge> recurringCharges)
Specifies whether there are recurring charges for the offering.
recurringCharges
- Specifies whether there are recurring charges for the offering.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2021. All rights reserved.