# IapResult.Builder

```
public final class IapResult.Builder extends Object
```

```
java.lang.Object
    ↳ com.gaa.sdk.iap.IapResult.Builder
```

<br>

It is a builder for easy creation of the IapResult instances.

<br>

## Public methods <a href="#iapresult.builder-publicmethods" id="iapresult.builder-publicmethods"></a>

***

### setResponseCode <a href="#iapresult.builder-setresponsecode" id="iapresult.builder-setresponsecode"></a>

```
IapResult.Builder setResponseCode(int responseCode)
```

| **Parameters:**   |                                     |
| ----------------- | ----------------------------------- |
| responseCode      | It is the in-app purchase API code. |
| **Returns:**      |                                     |
| IapResult.Builder | <p><br></p>                         |

### setMessage <a href="#iapresult.builder-setmessage" id="iapresult.builder-setmessage"></a>

```
IapResult.Builder setMessage(String message)
```

<table data-header-hidden><thead><tr><th></th><th></th></tr></thead><tbody><tr><td><strong>Parameters:</strong></td><td></td></tr><tr><td><pre><code>message
</code></pre></td><td>It is the in-app purchase API response message.</td></tr><tr><td><strong>Returns:</strong></td><td></td></tr><tr><td>IapResult.Builder</td><td><br></td></tr></tbody></table>

### build <a href="#iapresult.builder-build" id="iapresult.builder-build"></a>

```
 build()
```

It creates the IapResult instances.

| **Returns:**                                                               |             |
| -------------------------------------------------------------------------- | ----------- |
| [IapResult](https://dev.onestore.co.kr/wiki/en/doc/iapresult-5833447.html) | <p><br></p> |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://onestore-dev.gitbook.io/dev/eng/tools/billing/old-version/v19/one-store-iap-reference/classes/iapresult.builder.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
