Class QueryRequest


  • public final class QueryRequest
    extends Object
    Describes a query to be executed.
    • Constructor Detail

      • QueryRequest

        public QueryRequest()
    • Method Detail

      • subscriptions

        public List<String> subscriptions()
        Get the subscriptions property: Azure subscriptions against which to execute the query.
        Returns:
        the subscriptions value.
      • withSubscriptions

        public QueryRequest withSubscriptions​(List<String> subscriptions)
        Set the subscriptions property: Azure subscriptions against which to execute the query.
        Parameters:
        subscriptions - the subscriptions value to set.
        Returns:
        the QueryRequest object itself.
      • managementGroups

        public List<String> managementGroups()
        Get the managementGroups property: Azure management groups against which to execute the query. Example: [ 'mg1', 'mg2' ].
        Returns:
        the managementGroups value.
      • withManagementGroups

        public QueryRequest withManagementGroups​(List<String> managementGroups)
        Set the managementGroups property: Azure management groups against which to execute the query. Example: [ 'mg1', 'mg2' ].
        Parameters:
        managementGroups - the managementGroups value to set.
        Returns:
        the QueryRequest object itself.
      • query

        public String query()
        Get the query property: The resources query.
        Returns:
        the query value.
      • withQuery

        public QueryRequest withQuery​(String query)
        Set the query property: The resources query.
        Parameters:
        query - the query value to set.
        Returns:
        the QueryRequest object itself.
      • options

        public QueryRequestOptions options()
        Get the options property: The query evaluation options.
        Returns:
        the options value.
      • withOptions

        public QueryRequest withOptions​(QueryRequestOptions options)
        Set the options property: The query evaluation options.
        Parameters:
        options - the options value to set.
        Returns:
        the QueryRequest object itself.
      • facets

        public List<FacetRequest> facets()
        Get the facets property: An array of facet requests to be computed against the query result.
        Returns:
        the facets value.
      • withFacets

        public QueryRequest withFacets​(List<FacetRequest> facets)
        Set the facets property: An array of facet requests to be computed against the query result.
        Parameters:
        facets - the facets value to set.
        Returns:
        the QueryRequest object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.