Package com.courier.models.profiles
Class ProfileRetrieveResponse.Builder
-
- All Implemented Interfaces:
public final class ProfileRetrieveResponse.BuilderA builder for ProfileRetrieveResponse.
-
-
Method Summary
-
-
Method Detail
-
profile
final ProfileRetrieveResponse.Builder profile(ProfileRetrieveResponse.Profile profile)
-
profile
final ProfileRetrieveResponse.Builder profile(JsonField<ProfileRetrieveResponse.Profile> profile)
Sets Builder.profile to an arbitrary JSON value.
You should usually call Builder.profile with a well-typed Profile value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
preferences
final ProfileRetrieveResponse.Builder preferences(RecipientPreferences preferences)
-
preferences
final ProfileRetrieveResponse.Builder preferences(Optional<RecipientPreferences> preferences)
Alias for calling Builder.preferences with
preferences.orElse(null).
-
preferences
final ProfileRetrieveResponse.Builder preferences(JsonField<RecipientPreferences> preferences)
Sets Builder.preferences to an arbitrary JSON value.
You should usually call Builder.preferences with a well-typed RecipientPreferences value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ProfileRetrieveResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ProfileRetrieveResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ProfileRetrieveResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ProfileRetrieveResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ProfileRetrieveResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ProfileRetrieveResponse build()
Returns an immutable instance of ProfileRetrieveResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.profile()
-
-
-
-