Interface Offering.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Offering.Builder,
,Offering> SdkBuilder<Offering.Builder,
,Offering> SdkPojo
- Enclosing class:
Offering
@Mutable
@NotThreadSafe
public static interface Offering.Builder
extends SdkPojo, CopyableBuilder<Offering.Builder,Offering>
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) A string that describes the offering.The ID that corresponds to a device offering.The platform of the device (for example,ANDROID
orIOS
).platform
(DevicePlatform platform) The platform of the device (for example,ANDROID
orIOS
).recurringCharges
(Collection<RecurringCharge> recurringCharges) Specifies whether there are recurring charges for the offering.recurringCharges
(Consumer<RecurringCharge.Builder>... recurringCharges) Specifies whether there are recurring charges for the offering.recurringCharges
(RecurringCharge... recurringCharges) Specifies whether there are recurring charges for the offering.The type of offering (for example,RECURRING
) for a device.type
(OfferingType type) The type of offering (for example,RECURRING
) for a device.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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.
-
description
A string that describes the offering.
- Parameters:
description
- A string that describes the offering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The type of offering (for example,
RECURRING
) for a device.- Parameters:
type
- The type of offering (for example,RECURRING
) for a device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of offering (for example,
RECURRING
) for a device.- Parameters:
type
- The type of offering (for example,RECURRING
) for a device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
platform
The platform of the device (for example,
ANDROID
orIOS
).- Parameters:
platform
- The platform of the device (for example,ANDROID
orIOS
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
platform
The platform of the device (for example,
ANDROID
orIOS
).- Parameters:
platform
- The platform of the device (for example,ANDROID
orIOS
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-
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.
-
recurringCharges
Specifies whether there are recurring charges for the offering.
This is a convenience method that creates an instance of theRecurringCharge.Builder
avoiding the need to create one manually viaRecurringCharge.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torecurringCharges(List<RecurringCharge>)
.- Parameters:
recurringCharges
- a consumer that will call methods onRecurringCharge.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-