@Generated(value="software.amazon.awssdk:codegen") public final class Offering extends Object implements StructuredPojo, ToCopyableBuilder<Offering.Builder,Offering>
Represents the metadata of a device offering.
Modifier and Type | Class and Description |
---|---|
static interface |
Offering.Builder |
Modifier and Type | Method and Description |
---|---|
static Offering.Builder |
builder() |
String |
description()
A string describing the offering.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The ID that corresponds to a device offering.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
DevicePlatform |
platform()
The platform of the device (e.g., ANDROID or IOS).
|
String |
platformAsString()
The platform of the device (e.g., ANDROID or IOS).
|
List<RecurringCharge> |
recurringCharges()
Specifies whether there are recurring charges for the offering.
|
static Class<? extends Offering.Builder> |
serializableBuilderClass() |
Offering.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
OfferingType |
type()
The type of offering (e.g., "RECURRING") for a device.
|
String |
typeAsString()
The type of offering (e.g., "RECURRING") for a device.
|
copy
public String id()
The ID that corresponds to a device offering.
public String description()
A string describing the offering.
public OfferingType type()
The type of offering (e.g., "RECURRING") for a device.
If the service returns an enum value that is not available in the current SDK version, type
will return
OfferingType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
OfferingType
public String typeAsString()
The type of offering (e.g., "RECURRING") for a device.
If the service returns an enum value that is not available in the current SDK version, type
will return
OfferingType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
OfferingType
public DevicePlatform platform()
The platform of the device (e.g., ANDROID or IOS).
If the service returns an enum value that is not available in the current SDK version, platform
will
return DevicePlatform.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
platformAsString()
.
DevicePlatform
public String platformAsString()
The platform of the device (e.g., ANDROID or IOS).
If the service returns an enum value that is not available in the current SDK version, platform
will
return DevicePlatform.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
platformAsString()
.
DevicePlatform
public List<RecurringCharge> recurringCharges()
Specifies whether there are recurring charges for the offering.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Offering.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Offering.Builder,Offering>
public static Offering.Builder builder()
public static Class<? extends Offering.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.