Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [U Extensions 7](https://developer.android.com/sdkExtensions) Summary: [Ctors](https://developer.android.com/reference/android/health/connect/ReadRecordsRequestUsingIds.Builder#pubctors) \| [Methods](https://developer.android.com/reference/android/health/connect/ReadRecordsRequestUsingIds.Builder#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/health/connect/ReadRecordsRequestUsingIds.Builder#inhmethods)

# ReadRecordsRequestUsingIds.Builder

*** ** * ** ***


`
public
static
final

class
ReadRecordsRequestUsingIds.Builder
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.health.connect.ReadRecordsRequestUsingIds.Builder\<T extends [android.health.connect.datatypes.Record](https://developer.android.com/reference/android/health/connect/datatypes/Record)\> |

<br />

*** ** * ** ***

Builder class for `https://developer.android.com/reference/android/health/connect/ReadRecordsRequestUsingIds`

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/health/connect/ReadRecordsRequestUsingIds.Builder#Builder(java.lang.Class<T>)(https://developer.android.com/reference/java/lang/Class<T> recordType) ` |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/android/health/connect/ReadRecordsRequestUsingIds.Builder<T>` | ` https://developer.android.com/reference/android/health/connect/ReadRecordsRequestUsingIds.Builder#addClientRecordId(java.lang.String)(https://developer.android.com/reference/java/lang/String clientRecordId) ` Add a client id to the read request. |
| ` https://developer.android.com/reference/android/health/connect/ReadRecordsRequestUsingIds.Builder<T>` | ` https://developer.android.com/reference/android/health/connect/ReadRecordsRequestUsingIds.Builder#addId(java.lang.String)(https://developer.android.com/reference/java/lang/String id) ` Add an UUID to the read request. |
| ` https://developer.android.com/reference/android/health/connect/ReadRecordsRequestUsingIds<T>` | ` https://developer.android.com/reference/android/health/connect/ReadRecordsRequestUsingIds.Builder#build()() ` Returns Object of `https://developer.android.com/reference/android/health/connect/ReadRecordsRequestUsingIds` |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||

## Public constructors

### Builder

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [U Extensions 7](https://developer.android.com/sdkExtensions)

```
public Builder (Class<T> recordType)
```

<br />

<br />

| Parameters ||
|---|---|
| `recordType` | `Class`: Record class for which the id is being set. This value cannot be `null`. <br /> |

## Public methods

### addClientRecordId

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [U Extensions 7](https://developer.android.com/sdkExtensions)

```
public Builder<T> addClientRecordId (String clientRecordId)
```

Add a client id to the read request.

The maximum number of ids in a single `https://developer.android.com/reference/android/health/connect/ReadRecordsRequestUsingIds` that Health
Connect accepts is 5000. The limit includes all `id`s and `clientId`s.

<br />

| Parameters ||
|---|---|
| `clientRecordId` | `String`: identifier that was set while inserting the record. This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/health/connect/ReadRecordsRequestUsingIds.Builder<T>` | This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/health/connect/datatypes/Metadata`
- `https://developer.android.com/reference/android/health/connect/ReadRecordsRequestUsingIds.Builder#addId(java.lang.String)`

### addId

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [U Extensions 7](https://developer.android.com/sdkExtensions)

```
public Builder<T> addId (String id)
```

Add an UUID to the read request.

The maximum number of ids in a single `https://developer.android.com/reference/android/health/connect/ReadRecordsRequestUsingIds` that Health
Connect accepts is 5000. The limit includes all `id`s and `clientId`s.

<br />

| Parameters ||
|---|---|
| `id` | `String`: Identifier generated by the platform and returned by `https://developer.android.com/reference/android/health/connect/HealthConnectManager#insertRecords(java.util.List<android.health.connect.datatypes.Record>,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver<android.health.connect.InsertRecordsResponse,android.health.connect.HealthConnectException>)` This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/health/connect/ReadRecordsRequestUsingIds.Builder<T>` | This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/health/connect/ReadRecordsRequestUsingIds.Builder#addClientRecordId(java.lang.String)`

### build

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in [U Extensions 7](https://developer.android.com/sdkExtensions)

```
public ReadRecordsRequestUsingIds<T> build ()
```

Returns Object of `https://developer.android.com/reference/android/health/connect/ReadRecordsRequestUsingIds`

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/health/connect/ReadRecordsRequestUsingIds<T>` | This value cannot be `null`. <br /> |