Package com.oracle.bmc.database.requests
Class ListDatabaseSnapshotsRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.database.requests.ListDatabaseSnapshotsRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListDatabaseSnapshotsRequest,Void>
- Enclosing class:
- ListDatabaseSnapshotsRequest
public static class ListDatabaseSnapshotsRequest.Builder extends Object implements BmcRequest.Builder<ListDatabaseSnapshotsRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListDatabaseSnapshotsRequestbuild()Build the instance of ListDatabaseSnapshotsRequest as configured by this builderListDatabaseSnapshotsRequestbuildWithoutInvocationCallback()Build the instance of ListDatabaseSnapshotsRequest as configured by this builderListDatabaseSnapshotsRequest.BuilderclusterId(String clusterId)A filter to return only Exadata Database Snapshots that match the given VM cluster.ListDatabaseSnapshotsRequest.BuildercompartmentId(String compartmentId)The compartment OCID.ListDatabaseSnapshotsRequest.Buildercopy(ListDatabaseSnapshotsRequest o)Copy method to populate the builder with values from the given instance.ListDatabaseSnapshotsRequest.BuilderdatabaseId(String databaseId)A filter to return only Exadata Database Snapshots that match the given Database Id.ListDatabaseSnapshotsRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.ListDatabaseSnapshotsRequest.BuilderlifecycleState(DatabaseSnapshot.LifecycleState lifecycleState)A filter to return only Exadata Database Snapshots that match the given lifecycle state exactly.ListDatabaseSnapshotsRequest.Builderlimit(Integer limit)The maximum number of items to return per page.ListDatabaseSnapshotsRequest.Buildername(String name)A filter to return only resources that match the entire name given.ListDatabaseSnapshotsRequest.BuilderopcRequestId(String opcRequestId)Unique identifier for the request.ListDatabaseSnapshotsRequest.Builderpage(String page)The pagination token to continue listing from.ListDatabaseSnapshotsRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.ListDatabaseSnapshotsRequest.BuildersortBy(ListDatabaseSnapshotsRequest.SortBy sortBy)The field to sort by.ListDatabaseSnapshotsRequest.BuildersortOrder(ListDatabaseSnapshotsRequest.SortOrder sortOrder)The sort order to use, either ascending (ASC) or descending (DESC).-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.oracle.bmc.requests.BmcRequest.Builder
body$
-
-
-
-
Method Detail
-
compartmentId
public ListDatabaseSnapshotsRequest.Builder compartmentId(String compartmentId)
The compartment OCID.- Parameters:
compartmentId- the value to set- Returns:
- this builder instance
-
limit
public ListDatabaseSnapshotsRequest.Builder limit(Integer limit)
The maximum number of items to return per page.- Parameters:
limit- the value to set- Returns:
- this builder instance
-
page
public ListDatabaseSnapshotsRequest.Builder page(String page)
The pagination token to continue listing from.- Parameters:
page- the value to set- Returns:
- this builder instance
-
sortBy
public ListDatabaseSnapshotsRequest.Builder sortBy(ListDatabaseSnapshotsRequest.SortBy sortBy)
The field to sort by.You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for NAME is ascending. The NAME sort order is case sensitive.
- Parameters:
sortBy- the value to set- Returns:
- this builder instance
-
name
public ListDatabaseSnapshotsRequest.Builder name(String name)
A filter to return only resources that match the entire name given.The match is not case sensitive.
- Parameters:
name- the value to set- Returns:
- this builder instance
-
sortOrder
public ListDatabaseSnapshotsRequest.Builder sortOrder(ListDatabaseSnapshotsRequest.SortOrder sortOrder)
The sort order to use, either ascending (ASC) or descending (DESC).- Parameters:
sortOrder- the value to set- Returns:
- this builder instance
-
lifecycleState
public ListDatabaseSnapshotsRequest.Builder lifecycleState(DatabaseSnapshot.LifecycleState lifecycleState)
A filter to return only Exadata Database Snapshots that match the given lifecycle state exactly.- Parameters:
lifecycleState- the value to set- Returns:
- this builder instance
-
databaseId
public ListDatabaseSnapshotsRequest.Builder databaseId(String databaseId)
A filter to return only Exadata Database Snapshots that match the given Database Id.- Parameters:
databaseId- the value to set- Returns:
- this builder instance
-
clusterId
public ListDatabaseSnapshotsRequest.Builder clusterId(String clusterId)
A filter to return only Exadata Database Snapshots that match the given VM cluster.- Parameters:
clusterId- the value to set- Returns:
- this builder instance
-
opcRequestId
public ListDatabaseSnapshotsRequest.Builder opcRequestId(String opcRequestId)
Unique identifier for the request.- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
invocationCallback
public ListDatabaseSnapshotsRequest.Builder invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.- Parameters:
invocationCallback- the invocation callback to be set for the request- Returns:
- this builder instance
-
retryConfiguration
public ListDatabaseSnapshotsRequest.Builder retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.- Parameters:
retryConfiguration- the retry configuration to be used for the request- Returns:
- this builder instance
-
copy
public ListDatabaseSnapshotsRequest.Builder copy(ListDatabaseSnapshotsRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<ListDatabaseSnapshotsRequest,Void>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public ListDatabaseSnapshotsRequest build()
Build the instance of ListDatabaseSnapshotsRequest as configured by this builderNote that this method takes calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)into account, while the methodbuildWithoutInvocationCallback()does not.This is the preferred method to build an instance.
- Specified by:
buildin interfaceBmcRequest.Builder<ListDatabaseSnapshotsRequest,Void>- Returns:
- instance of ListDatabaseSnapshotsRequest
-
buildWithoutInvocationCallback
public ListDatabaseSnapshotsRequest buildWithoutInvocationCallback()
Build the instance of ListDatabaseSnapshotsRequest as configured by this builderNote that this method does not take calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)into account, while the methodbuild()does- Returns:
- instance of ListDatabaseSnapshotsRequest
-
-