Class InlineObjectRequest.Builder
-
- All Implemented Interfaces:
public final class InlineObjectRequest.BuilderA builder for InlineObjectRequest.
-
-
Method Summary
-
-
Method Detail
-
id
final InlineObjectRequest.Builder id(String id)
Unique identifier for the object.
-
id
final InlineObjectRequest.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
collection
final InlineObjectRequest.Builder collection(String collection)
The collection this object belongs to.
-
collection
final InlineObjectRequest.Builder collection(JsonField<String> collection)
Sets Builder.collection to an arbitrary JSON value.
You should usually call Builder.collection with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
channelData
final InlineObjectRequest.Builder channelData(InlineChannelDataRequest channelData)
A request to set channel data for a type of channel inline.
-
channelData
final InlineObjectRequest.Builder channelData(Optional<InlineChannelDataRequest> channelData)
Alias for calling Builder.channelData with
channelData.orElse(null).
-
channelData
final InlineObjectRequest.Builder channelData(JsonField<InlineChannelDataRequest> channelData)
Sets Builder.channelData to an arbitrary JSON value.
You should usually call Builder.channelData with a well-typed InlineChannelDataRequest value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdAt
final InlineObjectRequest.Builder createdAt(OffsetDateTime createdAt)
Timestamp when the resource was created.
-
createdAt
final InlineObjectRequest.Builder createdAt(Optional<OffsetDateTime> createdAt)
Alias for calling Builder.createdAt with
createdAt.orElse(null).
-
createdAt
final InlineObjectRequest.Builder createdAt(JsonField<OffsetDateTime> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
preferences
final InlineObjectRequest.Builder preferences(InlinePreferenceSetRequest preferences)
Inline set preferences for a recipient, where the key is the preference set id.
-
preferences
final InlineObjectRequest.Builder preferences(Optional<InlinePreferenceSetRequest> preferences)
Alias for calling Builder.preferences with
preferences.orElse(null).
-
preferences
final InlineObjectRequest.Builder preferences(JsonField<InlinePreferenceSetRequest> preferences)
Sets Builder.preferences to an arbitrary JSON value.
You should usually call Builder.preferences with a well-typed InlinePreferenceSetRequest value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final InlineObjectRequest.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final InlineObjectRequest.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final InlineObjectRequest.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final InlineObjectRequest.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final InlineObjectRequest.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final InlineObjectRequest build()
Returns an immutable instance of InlineObjectRequest.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .collection()
-
-
-
-