> ## 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.

# GetSwapPriceResponseIssues

> GetSwapPriceResponseIssues API reference.

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

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

## Method Details

### `getAllowance`

```java theme={null}
public CommonSwapResponseIssuesAllowance getAllowance()
```

**Returns:**

[CommonSwapResponseIssuesAllowance](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/CommonSwapResponseIssuesAllowance) - Details of the allowances that the taker must set in order to execute the swap successfully. Null if no allowance is required.

### `getBalance`

```java theme={null}
public CommonSwapResponseIssuesBalance getBalance()
```

**Returns:**

[CommonSwapResponseIssuesBalance](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/CommonSwapResponseIssuesBalance) - Details of the balance of the `fromToken` that the `taker` must hold. Null if the `taker` has a sufficient balance.

### `getSimulationIncomplete`

```java theme={null}
public boolean getSimulationIncomplete()
```

**Returns:**

`boolean` - This is set to true when the transaction cannot be validated. This can happen when the taker has an insufficient balance of the `fromToken`. Note that this does not necessarily mean that the trade will revert.

### `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 GetSwapPriceResponseIssues.SimulationIncompleteStage builder()
```

**Returns:**

[GetSwapPriceResponseIssues](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/GetSwapPriceResponseIssues).`SimulationIncompleteStage`
