Package com.courier.models.profiles
Class ProfileUpdateParams.Body.Builder
-
- All Implemented Interfaces:
public final class ProfileUpdateParams.Body.BuilderA builder for Body.
-
-
Method Summary
Modifier and Type Method Description final ProfileUpdateParams.Body.Builderpatch(List<ProfileUpdateParams.Patch> patch)List of patch operations to apply to the profile. final ProfileUpdateParams.Body.Builderpatch(JsonField<List<ProfileUpdateParams.Patch>> patch)Sets Builder.patch to an arbitrary JSON value. final ProfileUpdateParams.Body.BuilderaddPatch(ProfileUpdateParams.Patch patch)Adds a single Patch to Builder.patch. final ProfileUpdateParams.Body.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ProfileUpdateParams.Body.BuilderputAdditionalProperty(String key, JsonValue value)final ProfileUpdateParams.Body.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ProfileUpdateParams.Body.BuilderremoveAdditionalProperty(String key)final ProfileUpdateParams.Body.BuilderremoveAllAdditionalProperties(Set<String> keys)final ProfileUpdateParams.Bodybuild()Returns an immutable instance of Body. -
-
Method Detail
-
patch
final ProfileUpdateParams.Body.Builder patch(List<ProfileUpdateParams.Patch> patch)
List of patch operations to apply to the profile.
-
patch
final ProfileUpdateParams.Body.Builder patch(JsonField<List<ProfileUpdateParams.Patch>> patch)
Sets Builder.patch to an arbitrary JSON value.
You should usually call Builder.patch with a well-typed
List<Patch>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addPatch
final ProfileUpdateParams.Body.Builder addPatch(ProfileUpdateParams.Patch patch)
Adds a single Patch to Builder.patch.
-
additionalProperties
final ProfileUpdateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ProfileUpdateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ProfileUpdateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ProfileUpdateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ProfileUpdateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ProfileUpdateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.patch()
-
-
-
-