Package org.azd.featuremanagement
Class FeatureManagementRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.featuremanagement.FeatureManagementRequestBuilder
- Direct Known Subclasses:
FeatureManagementHelpersRequestBuilder
Request builder to manage Feature management Api.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents the query parameters.static class
Request configuration object for the query parameters.Nested classes/interfaces inherited from class org.azd.abstractions.BaseRequestBuilder
BaseRequestBuilder.ProjectExcludeParameter
-
Field Summary
Fields inherited from class org.azd.abstractions.BaseRequestBuilder
accessTokenCredential, apiVersion, area, locationId, organizationUrl, serializer
-
Constructor Summary
ConstructorDescriptionFeatureManagementRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionget
(FeatureManagement feature) Get a feature by id.getAsync
(FeatureManagement feature) Get a feature by id.list()
Get all features.Get all features.Get the effective state for a list of feature idsGet the effective state for a list of feature idsstate()
Represents Feature management state API.Represents Feature management state scope API.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
FeatureManagementRequestBuilder
public FeatureManagementRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values.- Parameters:
organizationUrl
- Represents organization location request url.accessTokenCredential
- Access token credential object.
-
-
Method Details
-
state
Represents Feature management state API.- Returns:
- StateRequestBuilder
StateRequestBuilder
-
stateScope
Represents Feature management state scope API.- Returns:
- StateScopeRequestBuilder
StateScopeRequestBuilder
-
getAsync
public CompletableFuture<ContributedFeature> getAsync(FeatureManagement feature) throws AzDException Get a feature by id.- Parameters:
feature
- Represents the id of a feature.- Returns:
- Contributed feature object
ContributedFeature
- Throws:
AzDException
- Default Api exception handler.
-
listAsync
Get all features.- Returns:
- Collection of Contributed feature object
ContributedFeatures
- Throws:
AzDException
- Default Api exception handler.
-
queryAsync
public CompletableFuture<ContributedFeatureStateQuery> queryAsync(ContributedFeatureStateQuery query) throws AzDException Get the effective state for a list of feature ids- Parameters:
query
- Features to query along with current scope values- Returns:
- Contributed feature state query object.
ContributedFeatureStateQuery
- Throws:
AzDException
- Default Api exception handler.
-
get
Get a feature by id.- Parameters:
feature
- Represents the id of a feature.- Returns:
- Contributed feature object
ContributedFeature
- Throws:
AzDException
- Default Api exception handler.
-
list
Get all features.- Returns:
- Collection of Contributed feature object
ContributedFeatures
- Throws:
AzDException
- Default Api exception handler.
-
query
Get the effective state for a list of feature ids- Parameters:
query
- Features to query along with current scope values- Returns:
- Contributed feature state query object.
ContributedFeatureStateQuery
- Throws:
AzDException
- Default Api exception handler.
-