Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Ctors](https://developer.android.com/reference/android/print/PrintJobInfo.Builder#pubctors) \| [Methods](https://developer.android.com/reference/android/print/PrintJobInfo.Builder#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/print/PrintJobInfo.Builder#inhmethods)

# PrintJobInfo.Builder

*** ** * ** ***


`
public
static
final

class
PrintJobInfo.Builder
`


`

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


`

`


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.print.PrintJobInfo.Builder |

<br />

*** ** * ** ***

Builder for creating a `https://developer.android.com/reference/android/print/PrintJobInfo`.

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/print/PrintJobInfo.Builder#Builder(android.print.PrintJobInfo)(https://developer.android.com/reference/android/print/PrintJobInfo prototype) ` Constructor. |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/android/print/PrintJobInfo` | ` https://developer.android.com/reference/android/print/PrintJobInfo.Builder#build()() ` Creates a new `https://developer.android.com/reference/android/print/PrintJobInfo` instance. |
| ` void` | ` https://developer.android.com/reference/android/print/PrintJobInfo.Builder#putAdvancedOption(java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String key, https://developer.android.com/reference/java/lang/String value) ` Puts an advanced (printer specific) option. |
| ` void` | ` https://developer.android.com/reference/android/print/PrintJobInfo.Builder#putAdvancedOption(java.lang.String,%20int)(https://developer.android.com/reference/java/lang/String key, int value) ` Puts an advanced (printer specific) option. |
| ` void` | ` https://developer.android.com/reference/android/print/PrintJobInfo.Builder#setAttributes(android.print.PrintAttributes)(https://developer.android.com/reference/android/print/PrintAttributes attributes) ` Sets the print job attributes. |
| ` void` | ` https://developer.android.com/reference/android/print/PrintJobInfo.Builder#setCopies(int)(int copies) ` Sets the number of copies. |
| ` void` | ` https://developer.android.com/reference/android/print/PrintJobInfo.Builder#setPages(android.print.PageRange[])(https://developer.android.com/reference/android/print/PageRange pages) ` Sets the included pages. |

| ### 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 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Builder (PrintJobInfo prototype)
```

Constructor.

<br />

| Parameters ||
|---|---|
| `prototype` | `PrintJobInfo`: Prototype to use as a starting point. Can be `null`. <br /> |

## Public methods

### build

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public PrintJobInfo build ()
```

Creates a new `https://developer.android.com/reference/android/print/PrintJobInfo` instance.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/print/PrintJobInfo` | The new instance. This value cannot be `null`. <br /> |

### putAdvancedOption

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void putAdvancedOption (String key, 
                String value)
```

Puts an advanced (printer specific) option.

<br />

| Parameters ||
|---|---|
| `key` | `String`: The option key. This value cannot be `null`. <br /> |
| `value` | `String`: The option value. This value may be `null`. <br /> |

### putAdvancedOption

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void putAdvancedOption (String key, 
                int value)
```

Puts an advanced (printer specific) option.

<br />

| Parameters ||
|---|---|
| `key` | `String`: The option key. This value cannot be `null`. <br /> |
| `value` | `int`: The option value. <br /> |

### setAttributes

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setAttributes (PrintAttributes attributes)
```

Sets the print job attributes.

<br />

| Parameters ||
|---|---|
| `attributes` | `PrintAttributes`: The attributes. This value cannot be `null`. <br /> |

### setCopies

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setCopies (int copies)
```

Sets the number of copies.

<br />

| Parameters ||
|---|---|
| `copies` | `int`: The number of copies. Value is 1 or greater <br /> |

### setPages

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setPages (PageRange[] pages)
```

Sets the included pages.

<br />

| Parameters ||
|---|---|
| `pages` | `PageRange`: The included pages. This value cannot be `null`. <br /> |