Package com.oracle.bmc.database.requests
Class ListBackupsRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.database.requests.ListBackupsRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListBackupsRequest,Void>
- Enclosing class:
- ListBackupsRequest
public static class ListBackupsRequest.Builder extends Object implements BmcRequest.Builder<ListBackupsRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListBackupsRequest.Builder
backupDestinationType(String backupDestinationType)
A filter to return only resources that match the given backup destination type.ListBackupsRequest
build()
Build the instance of ListBackupsRequest as configured by this builderListBackupsRequest
buildWithoutInvocationCallback()
Build the instance of ListBackupsRequest as configured by this builderListBackupsRequest.Builder
compartmentId(String compartmentId)
The compartment OCID.ListBackupsRequest.Builder
copy(ListBackupsRequest o)
Copy method to populate the builder with values from the given instance.ListBackupsRequest.Builder
databaseId(String databaseId)
The OCID of the database.ListBackupsRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.ListBackupsRequest.Builder
lifecycleState(BackupSummary.LifecycleState lifecycleState)
A filter to return only resources that match the given lifecycle state exactly.ListBackupsRequest.Builder
limit(Integer limit)
The maximum number of items to return per page.ListBackupsRequest.Builder
page(String page)
The pagination token to continue listing from.ListBackupsRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.ListBackupsRequest.Builder
shapeFamily(ListBackupsRequest.ShapeFamily shapeFamily)
If provided, filters the results to the set of database versions which are supported for the given shape family.ListBackupsRequest.Builder
timeExpiryScheduledGreaterThanOrEqualTo(Date timeExpiryScheduledGreaterThanOrEqualTo)
The start of date-time range of expiration for the long term backups to be fetched.ListBackupsRequest.Builder
timeExpiryScheduledLessThan(Date timeExpiryScheduledLessThan)
The end of date-time range of expiration for the long term backups to be fetched.ListBackupsRequest.Builder
type(String type)
A filter to return only backups that matches with the given type of Backup.ListBackupsRequest.Builder
version(String version)
A filter to return only resources that match the given database version.-
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
-
databaseId
public ListBackupsRequest.Builder databaseId(String databaseId)
The OCID of the database.- Parameters:
databaseId
- the value to set- Returns:
- this builder instance
-
compartmentId
public ListBackupsRequest.Builder compartmentId(String compartmentId)
The compartment OCID.- Parameters:
compartmentId
- the value to set- Returns:
- this builder instance
-
limit
public ListBackupsRequest.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 ListBackupsRequest.Builder page(String page)
The pagination token to continue listing from.- Parameters:
page
- the value to set- Returns:
- this builder instance
-
shapeFamily
public ListBackupsRequest.Builder shapeFamily(ListBackupsRequest.ShapeFamily shapeFamily)
If provided, filters the results to the set of database versions which are supported for the given shape family.- Parameters:
shapeFamily
- the value to set- Returns:
- this builder instance
-
version
public ListBackupsRequest.Builder version(String version)
A filter to return only resources that match the given database version.- Parameters:
version
- the value to set- Returns:
- this builder instance
-
type
public ListBackupsRequest.Builder type(String type)
A filter to return only backups that matches with the given type of Backup.- Parameters:
type
- the value to set- Returns:
- this builder instance
-
lifecycleState
public ListBackupsRequest.Builder lifecycleState(BackupSummary.LifecycleState lifecycleState)
A filter to return only resources that match the given lifecycle state exactly.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder instance
-
timeExpiryScheduledGreaterThanOrEqualTo
public ListBackupsRequest.Builder timeExpiryScheduledGreaterThanOrEqualTo(Date timeExpiryScheduledGreaterThanOrEqualTo)
The start of date-time range of expiration for the long term backups to be fetched.- Parameters:
timeExpiryScheduledGreaterThanOrEqualTo
- the value to set- Returns:
- this builder instance
-
timeExpiryScheduledLessThan
public ListBackupsRequest.Builder timeExpiryScheduledLessThan(Date timeExpiryScheduledLessThan)
The end of date-time range of expiration for the long term backups to be fetched.- Parameters:
timeExpiryScheduledLessThan
- the value to set- Returns:
- this builder instance
-
backupDestinationType
public ListBackupsRequest.Builder backupDestinationType(String backupDestinationType)
A filter to return only resources that match the given backup destination type.- Parameters:
backupDestinationType
- the value to set- Returns:
- this builder instance
-
invocationCallback
public ListBackupsRequest.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 ListBackupsRequest.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 ListBackupsRequest.Builder copy(ListBackupsRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<ListBackupsRequest,Void>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public ListBackupsRequest build()
Build the instance of ListBackupsRequest 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:
build
in interfaceBmcRequest.Builder<ListBackupsRequest,Void>
- Returns:
- instance of ListBackupsRequest
-
buildWithoutInvocationCallback
public ListBackupsRequest buildWithoutInvocationCallback()
Build the instance of ListBackupsRequest 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 ListBackupsRequest
-
-