Class SearchParametersTransport.Builder
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.index.SearchParametersTransport.Builder
-
- Enclosing class:
- SearchParametersTransport
public static class SearchParametersTransport.Builder extends java.lang.Object
A builder to make it easier to construct aSearchParametersTransport
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
withResourceType
public SearchParametersTransport.Builder withResourceType(java.lang.String resourceType)
Set the resourceType- Parameters:
resourceType
-- Returns:
-
withParameterHash
public SearchParametersTransport.Builder withParameterHash(java.lang.String hash)
Set the parameterHash- Parameters:
hash
-- Returns:
-
withLastUpdated
public SearchParametersTransport.Builder withLastUpdated(java.time.Instant lastUpdated)
-
withLogicalId
public SearchParametersTransport.Builder withLogicalId(java.lang.String logicalId)
Set the logicalId- Parameters:
logicalId
-- Returns:
-
withVersionId
public SearchParametersTransport.Builder withVersionId(int versionId)
Set the versionId- Parameters:
versionId
-- Returns:
-
withLogicalResourceId
public SearchParametersTransport.Builder withLogicalResourceId(long logicalResourceId)
Set the logicalResourceId- Parameters:
logicalResourceId
-- Returns:
-
withRequestShard
public SearchParametersTransport.Builder withRequestShard(java.lang.String shardValue)
Set the shardKey- Parameters:
shardKey
-- Returns:
-
addStringValue
public SearchParametersTransport.Builder addStringValue(StringParameter value)
Add a string parameter value- Parameters:
value
-- Returns:
-
addNumberValue
public SearchParametersTransport.Builder addNumberValue(NumberParameter value)
Add a number parameter value- Parameters:
value
-- Returns:
-
addQuantityValue
public SearchParametersTransport.Builder addQuantityValue(QuantityParameter value)
Add a quantity parameter value- Parameters:
value
-- Returns:
-
addTokenValue
public SearchParametersTransport.Builder addTokenValue(TokenParameter value)
Add a token parameter value- Parameters:
value
-- Returns:
-
addReferenceValue
public SearchParametersTransport.Builder addReferenceValue(ReferenceParameter value)
Add a reference parameter value- Parameters:
value
-- Returns:
-
addTagValue
public SearchParametersTransport.Builder addTagValue(TagParameter value)
Add a tag parameter value- Parameters:
value
-- Returns:
-
addProfileValue
public SearchParametersTransport.Builder addProfileValue(ProfileParameter value)
Add a profile parameter value- Parameters:
value
-- Returns:
-
addSecurityValue
public SearchParametersTransport.Builder addSecurityValue(SecurityParameter value)
Add a security parameter value- Parameters:
value
-- Returns:
-
addDateValue
public SearchParametersTransport.Builder addDateValue(DateParameter value)
Add a date parameter value- Parameters:
value
-- Returns:
-
addLocationValue
public SearchParametersTransport.Builder addLocationValue(LocationParameter value)
Add a location parameter value- Parameters:
value
-- Returns:
-
build
public SearchParametersTransport build()
Builder a newSearchParametersTransport
instance based on the current state of thisSearchParametersTransport.Builder
.- Returns:
-
-