public class PullRequestOptions extends java.lang.Object implements JsonSerializable
| Modifier and Type | Class and Description |
|---|---|
static class |
PullRequestOptions.Builder |
| Constructor and Description |
|---|
PullRequestOptions(PullRequestOptions.Builder b) |
| Modifier and Type | Method and Description |
|---|---|
static PullRequestOptions.Builder |
builder(int batchSize)
Creates a builder for the pull options, with batch size since it's always required
|
int |
getBatchSize()
Get the batch size option value
|
java.time.Duration |
getExpiresIn()
Get the expires in option value
|
java.time.Duration |
getIdleHeartbeat()
Get the idle heartbeat option value
|
int |
getMaxBytes()
Get the max bytes size option value
|
boolean |
isNoWait()
Get the no wait flag value
|
static PullRequestOptions.Builder |
noWait(int batchSize)
Creates a builder for the pull options, setting no wait to true and accepting batch size
|
java.lang.String |
toJson() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitserializepublic PullRequestOptions(PullRequestOptions.Builder b)
public java.lang.String toJson()
toJson in interface JsonSerializablepublic int getBatchSize()
public int getMaxBytes()
public boolean isNoWait()
public java.time.Duration getExpiresIn()
public java.time.Duration getIdleHeartbeat()
public static PullRequestOptions.Builder builder(int batchSize)
batchSize - the size of the batch. Must be greater than 0public static PullRequestOptions.Builder noWait(int batchSize)
batchSize - the size of the batch. Must be greater than 0