> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cdp.coinbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ImportEndUserRequest

> ImportEndUserRequest API reference.

Package: [`com.coinbase.cdp.resources.enduseraccountmanagement.requests`](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/resources/enduseraccountmanagement/requests/index)

```java theme={null}
public final class ImportEndUserRequest extends Object
```

## Method Details

### `getIdempotencyKey`

```java theme={null}
public Optional<String> getIdempotencyKey()
```

**Returns:**

`Optional<String>` - An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.

### `getUserId`

```java theme={null}
public String getUserId()
```

**Returns:**

`String` - A stable, unique identifier for the end user. The `userId` must be unique across all end users in the developer's CDP Project. It must be between 1 and 100 characters long and can only contain alphanumeric characters and hyphens.

### `getAuthenticationMethods`

```java theme={null}
public AuthenticationMethods getAuthenticationMethods()
```

**Returns:**

[AuthenticationMethods](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/AuthenticationMethods)

### `getEncryptedPrivateKey`

```java theme={null}
public String getEncryptedPrivateKey()
```

**Returns:**

`String` - The base64-encoded, encrypted private key to import. The private key must be encrypted using the CDP SDK's encryption scheme. This is a 32-byte raw private key.

### `getKeyType`

```java theme={null}
public ImportEndUserRequestKeyType getKeyType()
```

**Returns:**

[ImportEndUserRequestKeyType](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/resources/enduseraccountmanagement/types/ImportEndUserRequestKeyType) - The type of key being imported. Determines what type of account will be associated for the end user.

### `equals`

```java theme={null}
public boolean equals(Object other)
```

**Overrides:**

`[equals](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals\(java.lang.Object\) "class or interface in java.lang")` in class `[Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang")`

**Parameters:**

`other` - `Object`

**Returns:**

`boolean`

### `getAdditionalProperties`

```java theme={null}
public Map<String,Object> getAdditionalProperties()
```

**Returns:**

`Map<String,Object>`

### `hashCode`

```java theme={null}
public int hashCode()
```

**Overrides:**

`[hashCode](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode\(\) "class or interface in java.lang")` in class `[Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang")`

**Returns:**

`int`

### `toString`

```java theme={null}
public String toString()
```

**Overrides:**

`[toString](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString\(\) "class or interface in java.lang")` in class `[Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang")`

**Returns:**

`String`

### `builder`

```java theme={null}
public static ImportEndUserRequest.UserIdStage builder()
```

**Returns:**

[ImportEndUserRequest](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/resources/enduseraccountmanagement/requests/ImportEndUserRequest).`UserIdStage`
