Class DistributionCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class DistributionCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
distributionDate
final DistributionCreateParams.Body.Builder distributionDate(OffsetDateTime distributionDate)
Distribution date
-
distributionDate
final DistributionCreateParams.Body.Builder distributionDate(JsonField<OffsetDateTime> distributionDate)
Sets Builder.distributionDate to an arbitrary JSON value.
You should usually call Builder.distributionDate with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final DistributionCreateParams.Body.Builder name(String name)
-
name
final DistributionCreateParams.Body.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
payments
final DistributionCreateParams.Body.Builder payments(List<DistributionCreateParams.Payment> payments)
List of payments
-
payments
final DistributionCreateParams.Body.Builder payments(JsonField<List<DistributionCreateParams.Payment>> payments)
Sets Builder.payments to an arbitrary JSON value.
You should usually call Builder.payments with a well-typed
List<Payment>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addPayment
final DistributionCreateParams.Body.Builder addPayment(DistributionCreateParams.Payment payment)
-
vehicleId
final DistributionCreateParams.Body.Builder vehicleId(String vehicleId)
UUID of the vehicle this distribution pays from
-
vehicleId
final DistributionCreateParams.Body.Builder vehicleId(JsonField<String> vehicleId)
Sets Builder.vehicleId to an arbitrary JSON value.
You should usually call Builder.vehicleId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final DistributionCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final DistributionCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final DistributionCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final DistributionCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final DistributionCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final DistributionCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.distributionDate() .name() .payments() .vehicleId()
-
-
-
-