Class ListLongTermBackupsRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.recovery.requests.ListLongTermBackupsRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListLongTermBackupsRequest,Void>
- Enclosing class:
- ListLongTermBackupsRequest
public static class ListLongTermBackupsRequest.Builder extends Object implements BmcRequest.Builder<ListLongTermBackupsRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListLongTermBackupsRequestbuild()Build the instance of ListLongTermBackupsRequest as configured by this builderListLongTermBackupsRequestbuildWithoutInvocationCallback()Build the instance of ListLongTermBackupsRequest as configured by this builderListLongTermBackupsRequest.BuildercompartmentId(String compartmentId)The compartment OCID.ListLongTermBackupsRequest.Buildercopy(ListLongTermBackupsRequest o)Copy method to populate the builder with values from the given instance.ListLongTermBackupsRequest.BuilderdisplayName(String displayName)A filter to return only resources that match the entire ‘displayname’ given.ListLongTermBackupsRequest.Builderid(String id)The long-term backup OCID.ListLongTermBackupsRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.ListLongTermBackupsRequest.BuilderlifecycleState(LifecycleState lifecycleState)A filter to return only the resources that match the specified lifecycle state.ListLongTermBackupsRequest.Builderlimit(Integer limit)The maximum number of items to return per page.ListLongTermBackupsRequest.BuilderopcRequestId(String opcRequestId)Unique identifier for the request.ListLongTermBackupsRequest.Builderpage(String page)The page token representing the page at which to start retrieving results.ListLongTermBackupsRequest.BuilderprotectedDatabaseId(String protectedDatabaseId)The protected database OCID.ListLongTermBackupsRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.ListLongTermBackupsRequest.BuildersortBy(ListLongTermBackupsRequest.SortBy sortBy)The field to sort by.ListLongTermBackupsRequest.BuildersortOrder(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 ListLongTermBackupsRequest.Builder compartmentId(String compartmentId)
The compartment OCID.- Parameters:
compartmentId- the value to set- Returns:
- this builder instance
-
id
public ListLongTermBackupsRequest.Builder id(String id)
The long-term backup OCID.Use longTermBackupId to filter a long-term backup based on its unique identifier.
- Parameters:
id- the value to set- Returns:
- this builder instance
-
displayName
public ListLongTermBackupsRequest.Builder displayName(String displayName)
A filter to return only resources that match the entire ‘displayname’ given.- Parameters:
displayName- the value to set- Returns:
- this builder instance
-
protectedDatabaseId
public ListLongTermBackupsRequest.Builder protectedDatabaseId(String protectedDatabaseId)
The protected database OCID.Use protectedDatabaseId to list the long-term backups of a specific protected database.
- Parameters:
protectedDatabaseId- the value to set- Returns:
- this builder instance
-
lifecycleState
public ListLongTermBackupsRequest.Builder lifecycleState(LifecycleState lifecycleState)
A filter to return only the resources that match the specified lifecycle state.- Parameters:
lifecycleState- the value to set- Returns:
- this builder instance
-
limit
public ListLongTermBackupsRequest.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 ListLongTermBackupsRequest.Builder page(String page)
The page token representing the page at which to start retrieving results.This is usually retrieved from a previous list call.
- Parameters:
page- the value to set- Returns:
- this builder instance
-
sortOrder
public ListLongTermBackupsRequest.Builder sortOrder(SortOrder sortOrder)
The sort order to use, either ascending (ASC) or descending (DESC).Allowed values are: - ASC - DESC
- Parameters:
sortOrder- the value to set- Returns:
- this builder instance
-
sortBy
public ListLongTermBackupsRequest.Builder sortBy(ListLongTermBackupsRequest.SortBy sortBy)
The field to sort by.You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If you do not specify a value, then TIMECREATED is used as the default sort order. Allowed values are:
- TIMECREATED - DISPLAYNAME
- Parameters:
sortBy- the value to set- Returns:
- this builder instance
-
opcRequestId
public ListLongTermBackupsRequest.Builder opcRequestId(String opcRequestId)
Unique identifier for the request.- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
invocationCallback
public ListLongTermBackupsRequest.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 ListLongTermBackupsRequest.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 ListLongTermBackupsRequest.Builder copy(ListLongTermBackupsRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<ListLongTermBackupsRequest,Void>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public ListLongTermBackupsRequest build()
Build the instance of ListLongTermBackupsRequest 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<ListLongTermBackupsRequest,Void>- Returns:
- instance of ListLongTermBackupsRequest
-
buildWithoutInvocationCallback
public ListLongTermBackupsRequest buildWithoutInvocationCallback()
Build the instance of ListLongTermBackupsRequest 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 ListLongTermBackupsRequest
-
-