Class Info |
|---|
public static class Builder Builder for HealthRecordDeleteOptions. |
Qualifier and Type | Method Name and Description |
|---|---|
build() Builds and returns the instance. | |
HealthRecordDeleteOptions.Builder | setTimeInterval(long startTime, long endTime, TimeUnit timeUnit) Sets the time range. |
HealthRecordDeleteOptions.Builder | setHealthRecordIds(List<String> healthRecordIds) Sets the IDs of health records. |
HealthRecordDeleteOptions.Builder | setSubDataTypeList(List<DataType> subDataTypeList) Sets the data types to be deleted that are associated with detailed data. |
HealthRecordDeleteOptions.Builder | setDataType(DataType dataType) Sets the type of the health record to be deleted. |
HealthRecordDeleteOptions.Builder | isDeleteSubData(boolean deleteSubData) Specifies whether to delete the detailed data. |
Method |
|---|
public HealthRecordDeleteOptions build() Builds and returns a HealthRecordDeleteOptions instance. |
Returns
Type | Description |
|---|---|
HealthRecordDeleteOptions object. |
Method |
|---|
public HealthRecordDeleteOptions.Builder setTimeInterval(long startTime, long endTime, TimeUnit timeUnit) Sets the time range. |
Parameters
Name | Description |
|---|---|
startTime | Start time. |
endTime | End time. |
timeUnit | Time unit. |
Returns
Type | Description |
|---|---|
HealthRecordDeleteOptions.Builder | Builder for HealthRecordDeleteOptions. |
Method |
|---|
public HealthRecordDeleteOptions.Builder setHealthRecordIds(List<String> healthRecordIds) Sets the IDs of health records to be deleted. |
Parameters
Name | Description |
|---|---|
healthRecordIds | IDs of health records to be deleted. |
Returns
Type | Description |
|---|---|
HealthRecordDeleteOptions.Builder | Builder for HealthRecordDeleteOptions. |
Method |
|---|
public HealthRecordDeleteOptions.Builder setSubDataTypeList(List<DataType> subDataTypeList) Sets the data types to be deleted that are associated with detailed data. |
Parameters
Name | Description |
|---|---|
subDataTypeList | Data types to be deleted that are associated with detailed data. |
Returns
Type | Description |
|---|---|
HealthRecordDeleteOptions.Builder | Builder for HealthRecordDeleteOptions. |
Method |
|---|
public HealthRecordDeleteOptions.Builder setDataType(DataType dataType) Sets the type of the health record to be deleted. |
Parameters
Name | Description |
|---|---|
dataType | Type of the health record to be deleted. |
Returns
Type | Description |
|---|---|
HealthRecordDeleteOptions.Builder | Builder for HealthRecordDeleteOptions. |
Method |
|---|
public HealthRecordDeleteOptions.Builder isDeleteSubData(boolean deleteSubData) Specifies whether to delete the detailed data. |
Parameters
Name | Description |
|---|---|
deleteSubData | Whether to delete the detailed data. |
Returns
Type | Description |
|---|---|
HealthRecordDeleteOptions.Builder | Builder for HealthRecordDeleteOptions. |