public static class AddonVersionsQuery.Builder extends Object implements QueryBuilderProperties.AccessToken<AddonVersionsQuery.Builder>, QueryBuilderProperties.ApplicationCriteria<AddonVersionsQuery.Builder>, QueryBuilderProperties.Bounds<AddonVersionsQuery.Builder>, QueryBuilderProperties.Cost<AddonVersionsQuery.Builder>, QueryBuilderProperties.Hosting<AddonVersionsQuery.Builder>
AddonVersionsQuery. Use AddonVersionsQuery.builder() to create an instance.| Constructor and Description |
|---|
AddonVersionsQuery.Builder() |
| Modifier and Type | Method and Description |
|---|---|
AddonVersionsQuery.Builder |
accessToken(com.atlassian.fugue.Option<String> accessToken)
Optionally includes an access token in the query, allowing access to any private add-on
that has such a token.
|
AddonVersionsQuery.Builder |
afterVersion(com.atlassian.fugue.Option<String> versionName)
Specifies an existing version if you want to query versions that are later than that
version.
|
AddonVersionsQuery.Builder |
appBuildNumber(com.atlassian.fugue.Option<Integer> appBuildNumber)
Restricts the query to add-ons that are compatible with the specified application version.
|
AddonVersionsQuery.Builder |
application(com.atlassian.fugue.Option<ApplicationKey> application)
Restricts the query to add-ons that are compatible with the specified application.
|
AddonVersionsQuery.Builder |
bounds(QueryBounds bounds)
Sets the starting offset and/or the maximum result page size for the query, from a
QueryBounds instance. |
AddonVersionsQuery |
build()
Returns an immutable
AddonVersionsQuery based on the current builder properties. |
AddonVersionsQuery.Builder |
cost(com.atlassian.fugue.Option<Cost> cost)
Restricts the query to add-ons/products that match the given
Cost criteria. |
AddonVersionsQuery.Builder |
hosting(com.atlassian.fugue.Option<HostingType> hosting)
Restricts the query to add-ons that support the given hosting type.
|
public AddonVersionsQuery build()
AddonVersionsQuery based on the current builder properties.public AddonVersionsQuery.Builder accessToken(com.atlassian.fugue.Option<String> accessToken)
QueryBuilderProperties.AccessTokenaccessToken in interface QueryBuilderProperties.AccessToken<AddonVersionsQuery.Builder>accessToken - an access token string, or Option.none()QueryProperties.AccessToken.getAccessToken()public AddonVersionsQuery.Builder application(com.atlassian.fugue.Option<ApplicationKey> application)
QueryBuilderProperties.ApplicationCriteriaapplication in interface QueryBuilderProperties.ApplicationCriteria<AddonVersionsQuery.Builder>application - an ApplicationKey, or Option.none() for no application filterQueryBuilderProperties.ApplicationCriteria.application(Option)public AddonVersionsQuery.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<AddonVersionsQuery.Builder>appBuildNumber - the application build number, or Option.none() for no application
version filterQueryBuilderProperties.ApplicationCriteria.appBuildNumber(Option)public AddonVersionsQuery.Builder cost(com.atlassian.fugue.Option<Cost> cost)
QueryBuilderProperties.CostCost criteria.cost in interface QueryBuilderProperties.Cost<AddonVersionsQuery.Builder>cost - a Cost value, or Option.none() for no cost filterpublic AddonVersionsQuery.Builder hosting(com.atlassian.fugue.Option<HostingType> hosting)
QueryBuilderProperties.Hostinghosting in interface QueryBuilderProperties.Hosting<AddonVersionsQuery.Builder>hosting - a HostingType constant, or Option.none() for no hosting filterpublic AddonVersionsQuery.Builder afterVersion(com.atlassian.fugue.Option<String> versionName)
versionName - the version string (for instance, "1.0") of an existing add-on version
to restrict the query to versions later than this version, or Option.none() to
remove any such restrictionAddonVersionsQuery.getAfterVersionName()public AddonVersionsQuery.Builder bounds(QueryBounds bounds)
QueryBuilderProperties.BoundsQueryBounds instance.bounds in interface QueryBuilderProperties.Bounds<AddonVersionsQuery.Builder>bounds - a QueryBounds specifying an offset and/or limitCopyright © 2016 Atlassian. All rights reserved.