public class SecureConfigsRequestExecutor extends PaginatedRequestExecutor<Configs>
ConfigsApi
. Use this class if you want to obtain
secure configs through fluent API in chained fashion. Here is an example of how to use this executor:
IKontaktCloud kontaktCloud = KontaktCloud.newInstance();
Configs configs = kontaktCloud.configs().secure()
.withIds("7HuT", "2Fge", "dFGh")
.maxResult(10)
.execute();
eTag, maxResult, order, orderBy, query, startIndex
Constructor and Description |
---|
SecureConfigsRequestExecutor(ConfigsService configsService)
Constructs request executor initialized with corresponding service class.
|
Modifier and Type | Method and Description |
---|---|
SecureConfigsRequestExecutor |
eTag(java.lang.String eTag)
Specifies HTTP entity tag purposed for caching REST API calls.
|
SecureConfigsRequestExecutor |
filter(java.lang.String query)
Specifies the filter for requested data.
|
SecureConfigsRequestExecutor |
maxResult(int maxResult)
Specifies the maximum size of response data collection.
|
SecureConfigsRequestExecutor |
orderBy(OrderBy orderBy,
Order order)
Specifies the ordering of response data elements.
|
protected java.util.Map<java.lang.String,java.lang.String> |
params()
Composes the request's query parameters in map.
|
protected retrofit2.Call<Configs> |
prepareCall()
Prepares a request to execute.
|
SecureConfigsRequestExecutor |
startIndex(int startIndex)
Specifies the start index of requested data.
|
SecureConfigsRequestExecutor |
withIds(java.util.List<java.lang.String> uniqueIds)
Specifies config unique IDs.
|
SecureConfigsRequestExecutor |
withIds(java.lang.String... uniqueIds)
Specifies config unique IDs.
|
execute, execute
public SecureConfigsRequestExecutor(ConfigsService configsService)
configsService
- the configs API service.public SecureConfigsRequestExecutor withIds(java.lang.String... uniqueIds)
uniqueIds
- config unique identifiers.public SecureConfigsRequestExecutor withIds(java.util.List<java.lang.String> uniqueIds)
uniqueIds
- config unique identifiers.public SecureConfigsRequestExecutor startIndex(int startIndex)
startIndex
in class PaginatedRequestExecutor<Configs>
startIndex
- the start index.public SecureConfigsRequestExecutor maxResult(int maxResult)
maxResult
in class PaginatedRequestExecutor<Configs>
maxResult
- the maximum response size value.public SecureConfigsRequestExecutor filter(java.lang.String query)
filter
in class PaginatedRequestExecutor<Configs>
query
- the query filter.public SecureConfigsRequestExecutor orderBy(OrderBy orderBy, Order order)
orderBy
in class PaginatedRequestExecutor<Configs>
orderBy
- the field type that specifies the order by column.order
- ascending or descending.public SecureConfigsRequestExecutor eTag(java.lang.String eTag)
eTag
in class PaginatedRequestExecutor<Configs>
eTag
- the entity tag value.protected retrofit2.Call<Configs> prepareCall()
prepareCall
in class RequestExecutor<Configs>
protected java.util.Map<java.lang.String,java.lang.String> params()
params
in class PaginatedRequestExecutor<Configs>