Package com.vonage.client.numbers
Class ListNumbersFilter
java.lang.Object
com.vonage.client.numbers.ListNumbersFilter
- All Implemented Interfaces:
QueryParamsRequest
Filter criteria used in
NumbersClient.listNumbers(ListNumbersFilter).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for setting the parameters of ListNumbersFilter. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.ListNumbersFilter(Integer index, Integer size, String pattern, SearchPattern searchPattern) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic ListNumbersFilter.Builderbuilder()Entrypoint for constructing an instance of this class.Application to return the numbers for.Two character country code in ISO 3166-1 alpha-2 format.Whether results should be filtered to numbers assigned to an application.getIndex()Page index to start return results from.Number pattern to narrow down the results by.Strategy to use for matching.getSize()Page size.Internal method for serializing the fields of this class into query parameters.voidDeprecated.voidsetPattern(String pattern) Deprecated.voidsetSearchPattern(SearchPattern searchPattern) Deprecated.UseBaseNumbersFilter.Builder.pattern(SearchPattern, String).voidDeprecated.
-
Constructor Details
-
ListNumbersFilter
Deprecated.Usebuilder(). This will be removed in the next major release.Old constructor. -
ListNumbersFilter
@Deprecated public ListNumbersFilter(Integer index, Integer size, String pattern, SearchPattern searchPattern) Deprecated.
-
-
Method Details
-
getApplicationId
Application to return the numbers for.- Returns:
- The selected application ID to list numbers from, or
nullif unspecified. - Since:
- 8.10.0
-
getHasApplication
Whether results should be filtered to numbers assigned to an application.- Returns:
trueif results should contain only numbers associated with an application,falseif only numbers unassigned to an application should be returned, ornullif unspecified (i.e. the application assignment status is not considered).- Since:
- 8.10.0
-
makeParams
Description copied from interface:QueryParamsRequestInternal method for serializing the fields of this class into query parameters. The Map should be mutable so that subclasses can add fields, otherwise the method or implementing class should be marked asfinal. Duplicate entries can be handled by mapping the key to a list of the entries.- Specified by:
makeParamsin interfaceQueryParamsRequest- Returns:
- The query parameters as unique key-value pairs.
-
builder
Entrypoint for constructing an instance of this class.- Returns:
- A new Builder.
- Since:
- 8.10.0
-
getIndex
Page index to start return results from. Default is 1.- Returns:
- The cursor index, or
nullif unspecified.
-
getSize
Page size. Default is 10, max is 100.- Returns:
- The number of results to return, or
nullif unspecified.
-
getCountry
Two character country code in ISO 3166-1 alpha-2 format.- Returns:
- The number's country code.
-
getPattern
Number pattern to narrow down the results by.- Returns:
- The number pattern, or
nullif unspecified.
-
getSearchPattern
Strategy to use for matching.- Returns:
- The pattern matching strategy as an enum, or
nullif unspecified.
-
setIndex
Deprecated. -
setSize
Deprecated.Set the maximum number of matching results to be returned.- Parameters:
size- An Integer between 10 and 100 (inclusive) or null, to indicate that the default value should be used.
-
setPattern
Deprecated. -
setSearchPattern
Deprecated.UseBaseNumbersFilter.Builder.pattern(SearchPattern, String). This will be removed in the next major release.- Parameters:
searchPattern- The pattern you want to search for. Use the * wildcard to match the start or end of the number. For example, *123* matches all numbers that contain the pattern 123.
-
builder().