目录

HealthRecordDeleteOptions.Builder

Class Info

public static class Builder

Builder for HealthRecordDeleteOptions.

Public Method Summary

Qualifier and Type

Method Name and Description

HealthRecordDeleteOptions

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.

Public Methods

[h2]build()

Method

public HealthRecordDeleteOptions build()

Builds and returns a HealthRecordDeleteOptions instance.

Returns

[h2]setTimeInterval(long startTime, long endTime, TimeUnit timeUnit)

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.

[h2]setHealthRecordIds(List<String> healthRecordIds)

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.

[h2]setSubDataTypeList(List<DataType> subDataTypeList)

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.

[h2]setDataType(DataType dataType)

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.

[h2]isDeleteSubData(boolean deleteSubData)

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.