public static class UserProfileConfiguration.ProfileProperty.ProfilePropertyBuilder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
optional |
UserProfileConfiguration.UpdateStrategy |
updateStrategy |
java.lang.String |
valueToUseIfNoOtherValidValue |
| Modifier | Constructor and Description |
|---|---|
protected |
ProfilePropertyBuilder(java.lang.String headerName,
java.lang.String profileName) |
| Modifier and Type | Method and Description |
|---|---|
UserProfileConfiguration.ProfileProperty |
build() |
UserProfileConfiguration.ProfileProperty.ProfilePropertyBuilder |
setOptional(boolean optional)
If optional is
true, missing (null) values are always valid
values (regex is ignored in this case). |
UserProfileConfiguration.ProfileProperty.ProfilePropertyBuilder |
setUpdateStrategy(UserProfileConfiguration.UpdateStrategy updateStrategy)
When to update the profile property from header; defaults to UPDATE_ALWAYS.
|
UserProfileConfiguration.ProfileProperty.ProfilePropertyBuilder |
setValueToUseIfNoOtherValidValue(java.lang.String valueToUseIfNoOtherValidValue)
Optional (nullable).
|
UserProfileConfiguration.ProfileProperty.ProfilePropertyBuilder |
validationRegex(java.lang.String validationRegex) |
public boolean optional
public UserProfileConfiguration.UpdateStrategy updateStrategy
public java.lang.String valueToUseIfNoOtherValidValue
protected ProfilePropertyBuilder(java.lang.String headerName,
java.lang.String profileName)
public UserProfileConfiguration.ProfileProperty.ProfilePropertyBuilder validationRegex(java.lang.String validationRegex)
public UserProfileConfiguration.ProfileProperty.ProfilePropertyBuilder setUpdateStrategy(UserProfileConfiguration.UpdateStrategy updateStrategy)
public UserProfileConfiguration.ProfileProperty.ProfilePropertyBuilder setOptional(boolean optional)
true, missing (null) values are always valid
values (regex is ignored in this case). If optional is false, null
values are always invalid (regex is ignored in this case). Defaults to false.public UserProfileConfiguration.ProfileProperty.ProfilePropertyBuilder setValueToUseIfNoOtherValidValue(java.lang.String valueToUseIfNoOtherValidValue)
public UserProfileConfiguration.ProfileProperty build()