Package com.dtsx.astra.sdk.db.domain
Class DatabaseFilter
java.lang.Object
com.dtsx.astra.sdk.db.domain.DatabaseFilter
Represent a criteria in a database search.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder.static enum
Inclide Enum. -
Field Summary
-
Constructor Summary
ConstructorDescriptionDefault constructor.DatabaseFilter
(int limit, DatabaseFilter.Include i, CloudProviderType p, String startingAfter) Full constructor. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Helper to create a builder.Getter accessor for attribute 'include'.int
getLimit()
Getter accessor for attribute 'limit'.Getter accessor for attribute 'provider'.Getter accessor for attribute 'startingAfterDbId'.Build the URL based on current parameters.
-
Field Details
-
DEFAULT_LIMIT
public static final int DEFAULT_LIMITdefault limit- See Also:
-
-
Constructor Details
-
DatabaseFilter
public DatabaseFilter()Default constructor. -
DatabaseFilter
public DatabaseFilter(int limit, DatabaseFilter.Include i, CloudProviderType p, String startingAfter) Full constructor.- Parameters:
limit
- limit to the number of db returnedi
- which db to incluep
- which cloud providers to providestartingAfter
- when to start
-
-
Method Details
-
urlParams
Build the URL based on current parameters.- Returns:
- target url to retrieved databases.
-
builder
Helper to create a builder.- Returns:
- an instance of the builder
-
getLimit
public int getLimit()Getter accessor for attribute 'limit'.- Returns:
- current value of 'limit'
-
getStartingAfterDbId
Getter accessor for attribute 'startingAfterDbId'.- Returns:
- current value of 'startingAfterDbId'
-
getInclude
Getter accessor for attribute 'include'.- Returns:
- current value of 'include'
-
getProvider
Getter accessor for attribute 'provider'.- Returns:
- current value of 'provider'
-