public static class ProductQuery.Builder extends Object implements QueryBuilderProperties.ApplicationCriteria<ProductQuery.Builder>, QueryBuilderProperties.Bounds<ProductQuery.Builder>, QueryBuilderProperties.Cost<ProductQuery.Builder>, QueryBuilderProperties.Hosting<ProductQuery.Builder>, QueryBuilderProperties.WithVersion<ProductQuery.Builder>
ProductQuery. Use ProductQuery.builder() to create an instance.| Constructor and Description |
|---|
ProductQuery.Builder() |
| Modifier and Type | Method and Description |
|---|---|
ProductQuery.Builder |
appBuildNumber(com.atlassian.fugue.Option<Integer> appBuildNumber)
Restricts the query to add-ons that are compatible with the specified application version.
|
ProductQuery.Builder |
application(com.atlassian.fugue.Option<ApplicationKey> application)
Restricts the query to add-ons that are compatible with the specified application.
|
ProductQuery.Builder |
bounds(QueryBounds bounds)
Sets the starting offset and/or the maximum result page size for the query, from a
QueryBounds instance. |
ProductQuery |
build()
Returns an immutable
ProductQuery based on the current builder properties. |
ProductQuery.Builder |
cost(com.atlassian.fugue.Option<Cost> cost)
Restricts the query to add-ons/products that match the given
Cost criteria. |
ProductQuery.Builder |
hosting(com.atlassian.fugue.Option<HostingType> hosting)
Restricts the query to add-ons that support the given hosting type.
|
ProductQuery.Builder |
withVersion(boolean withVersion)
Specifies whether the result set should include version-level properties.
|
public ProductQuery build()
ProductQuery based on the current builder properties.public ProductQuery.Builder application(com.atlassian.fugue.Option<ApplicationKey> application)
QueryBuilderProperties.ApplicationCriteriaapplication in interface QueryBuilderProperties.ApplicationCriteria<ProductQuery.Builder>application - an ApplicationKey, or Option.none() for no application filterQueryBuilderProperties.ApplicationCriteria.application(Option)public ProductQuery.Builder appBuildNumber(com.atlassian.fugue.Option<Integer> appBuildNumber)
QueryBuilderProperties.ApplicationCriteriaQueryBuilderProperties.ApplicationCriteria.application(com.atlassian.fugue.Option<com.atlassian.marketplace.client.api.ApplicationKey>).appBuildNumber in interface QueryBuilderProperties.ApplicationCriteria<ProductQuery.Builder>appBuildNumber - the application build number, or Option.none() for no application
version filterQueryBuilderProperties.ApplicationCriteria.appBuildNumber(Option)public ProductQuery.Builder cost(com.atlassian.fugue.Option<Cost> cost)
QueryBuilderProperties.CostCost criteria.cost in interface QueryBuilderProperties.Cost<ProductQuery.Builder>cost - a Cost value, or Option.none() for no cost filterpublic ProductQuery.Builder hosting(com.atlassian.fugue.Option<HostingType> hosting)
QueryBuilderProperties.Hostinghosting in interface QueryBuilderProperties.Hosting<ProductQuery.Builder>hosting - a HostingType constant, or Option.none() for no hosting filterpublic ProductQuery.Builder withVersion(boolean withVersion)
QueryBuilderProperties.WithVersionwithVersion in interface QueryBuilderProperties.WithVersion<ProductQuery.Builder>withVersion - true if the result set should include version datapublic ProductQuery.Builder bounds(QueryBounds bounds)
QueryBuilderProperties.BoundsQueryBounds instance.bounds in interface QueryBuilderProperties.Bounds<ProductQuery.Builder>bounds - a QueryBounds specifying an offset and/or limitCopyright © 2016 Atlassian. All rights reserved.