jetbrains.buildServer.serverSide
Class BuildQueryOptions

java.lang.Object
  extended by jetbrains.buildServer.serverSide.BuildQueryOptions

public class BuildQueryOptions
extends java.lang.Object

Holds the build query options:

Since:
7.1
Author:
Maxim Podkolzine (maxim.podkolzine@jetbrains.com)

Constructor Summary
BuildQueryOptions()
           
 
Method Summary
 java.lang.String getBranch()
           
 java.lang.String getBuildTypeId()
           
 User getOwner()
           
 boolean isIncludeCanceled()
           
 boolean isIncludePersonal()
           
 boolean isIncludeRunning()
           
 boolean isMatchAllBranches()
           
 boolean isOrderByChanges()
           
 BuildQueryOptions setBranch(java.lang.String branch)
          Only return builds with specified branch.
 BuildQueryOptions setBuildTypeId(java.lang.String buildTypeId)
           
 BuildQueryOptions setIncludeCanceled(boolean includeCanceled)
           
 BuildQueryOptions setIncludePersonal(boolean includePersonal, User owner)
           
 BuildQueryOptions setIncludeRunning(boolean includeRunning)
           
 BuildQueryOptions setMatchAllBranches(boolean matchAllBranches)
           
 BuildQueryOptions setOrderByChanges(boolean orderByChanges)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildQueryOptions

public BuildQueryOptions()
Method Detail

setBuildTypeId

@NotNull
public BuildQueryOptions setBuildTypeId(@NotNull
                                                java.lang.String buildTypeId)

getBuildTypeId

@Nullable
public java.lang.String getBuildTypeId()

setBranch

@NotNull
public BuildQueryOptions setBranch(@NotNull
                                           java.lang.String branch)
Only return builds with specified branch. Use Branch.DEFAULT_BRANCH_NAME constant for builds from default branch. By default only builds from default branch are returned (unless setMatchAllBranches(boolean) is set to true).

Parameters:
branch -
Returns:
same options

getBranch

@Nullable
public java.lang.String getBranch()

setMatchAllBranches

@NotNull
public BuildQueryOptions setMatchAllBranches(boolean matchAllBranches)

isMatchAllBranches

public boolean isMatchAllBranches()

setIncludeRunning

@NotNull
public BuildQueryOptions setIncludeRunning(boolean includeRunning)

isIncludeRunning

public boolean isIncludeRunning()

setIncludeCanceled

@NotNull
public BuildQueryOptions setIncludeCanceled(boolean includeCanceled)

isIncludeCanceled

public boolean isIncludeCanceled()

setIncludePersonal

@NotNull
public BuildQueryOptions setIncludePersonal(boolean includePersonal,
                                                    @Nullable
                                                    User owner)

isIncludePersonal

public boolean isIncludePersonal()

getOwner

@Nullable
public User getOwner()

setOrderByChanges

@NotNull
public BuildQueryOptions setOrderByChanges(boolean orderByChanges)

isOrderByChanges

public boolean isOrderByChanges()