public static class UserPrefSpec.Builder extends Object
UserPrefSpec objects. The final UserPrefSpec
is created by calling the build() method| Modifier and Type | Method and Description |
|---|---|
UserPrefSpec |
build()
Returns the final constructed
UserPrefSpec |
UserPrefSpec.Builder |
dataType(DataType dataType)
Set the
DataType of the UserPrefSpec under construction and return this Builder
to allow further construction to be done. |
UserPrefSpec.Builder |
defaultValue(String defaultValue)
Set the default value of the
UserPrefSpec under construction and return this Builder
to allow further construction to be done. |
UserPrefSpec.Builder |
displayName(String displayName)
Set the display name of the
UserPrefSpec under construction and return this Builder
to allow further construction to be done. |
UserPrefSpec.Builder |
enumValues(Map<String,String> enumValues)
Set the
Map of the possible values for an enumerated UserPrefSpec under
construction and return this Builder to allow further construction to be done. |
UserPrefSpec.Builder |
required(boolean required)
Set the setting of the
UserPrefSpec under construction whether it is required or not and
return this Builder to allow further construction to be done. |
public UserPrefSpec.Builder displayName(String displayName)
UserPrefSpec under construction and return this Builder
to allow further construction to be done.displayName - name to show the user for this UserPrefSpecpublic UserPrefSpec.Builder required(boolean required)
UserPrefSpec under construction whether it is required or not and
return this Builder to allow further construction to be done.required - the setting of this UserPrefSpec whether it is required or notpublic UserPrefSpec.Builder dataType(DataType dataType)
DataType of the UserPrefSpec under construction and return this Builder
to allow further construction to be done.dataType - the DataType of this prefpublic UserPrefSpec.Builder enumValues(Map<String,String> enumValues)
Map of the possible values for an enumerated UserPrefSpec under
construction and return this Builder to allow further construction to be done.enumValues - the possible values for an enumerated prefpublic UserPrefSpec.Builder defaultValue(String defaultValue)
UserPrefSpec under construction and return this Builder
to allow further construction to be done.defaultValue - the pref's default valuepublic UserPrefSpec build()
UserPrefSpecUserPrefSpecCopyright © 2024 Atlassian. All rights reserved.