Package com.oracle.bmc.recovery.requests
Class ListProtectionPoliciesRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.recovery.requests.ListProtectionPoliciesRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListProtectionPoliciesRequest,Void>
- Enclosing class:
- ListProtectionPoliciesRequest
public static class ListProtectionPoliciesRequest.Builder extends Object implements BmcRequest.Builder<ListProtectionPoliciesRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListProtectionPoliciesRequest
build()
Build the instance of ListProtectionPoliciesRequest as configured by this builderListProtectionPoliciesRequest
buildWithoutInvocationCallback()
Build the instance of ListProtectionPoliciesRequest as configured by this builderListProtectionPoliciesRequest.Builder
compartmentId(String compartmentId)
The compartment OCID.ListProtectionPoliciesRequest.Builder
copy(ListProtectionPoliciesRequest o)
Copy method to populate the builder with values from the given instance.ListProtectionPoliciesRequest.Builder
displayName(String displayName)
A filter to return only resources that match the entire ‘displayname’ given.ListProtectionPoliciesRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.ListProtectionPoliciesRequest.Builder
lifecycleState(LifecycleState lifecycleState)
A filter to return only resources their lifecycleState matches the given lifecycleState.ListProtectionPoliciesRequest.Builder
limit(Integer limit)
The maximum number of items to return.ListProtectionPoliciesRequest.Builder
opcRequestId(String opcRequestId)
Unique identifier for the request.ListProtectionPoliciesRequest.Builder
owner(ListProtectionPoliciesRequest.Owner owner)
A filter to return only the policies that match the owner as ‘Customer’ or ‘Oracle’.ListProtectionPoliciesRequest.Builder
page(String page)
The page token representing the page at which to start retrieving results.ListProtectionPoliciesRequest.Builder
protectionPolicyId(String protectionPolicyId)
The protection policy OCID.ListProtectionPoliciesRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.ListProtectionPoliciesRequest.Builder
sortBy(ListProtectionPoliciesRequest.SortBy sortBy)
The field to sort by.ListProtectionPoliciesRequest.Builder
sortOrder(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 ListProtectionPoliciesRequest.Builder compartmentId(String compartmentId)
The compartment OCID.- Parameters:
compartmentId
- the value to set- Returns:
- this builder instance
-
lifecycleState
public ListProtectionPoliciesRequest.Builder lifecycleState(LifecycleState lifecycleState)
A filter to return only resources their lifecycleState matches the given lifecycleState.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder instance
-
displayName
public ListProtectionPoliciesRequest.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
-
protectionPolicyId
public ListProtectionPoliciesRequest.Builder protectionPolicyId(String protectionPolicyId)
The protection policy OCID.- Parameters:
protectionPolicyId
- the value to set- Returns:
- this builder instance
-
owner
public ListProtectionPoliciesRequest.Builder owner(ListProtectionPoliciesRequest.Owner owner)
A filter to return only the policies that match the owner as ‘Customer’ or ‘Oracle’.- Parameters:
owner
- the value to set- Returns:
- this builder instance
-
limit
public ListProtectionPoliciesRequest.Builder limit(Integer limit)
The maximum number of items to return.Specify a value greater than 4.
- Parameters:
limit
- the value to set- Returns:
- this builder instance
-
page
public ListProtectionPoliciesRequest.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 ListProtectionPoliciesRequest.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 ListProtectionPoliciesRequest.Builder sortBy(ListProtectionPoliciesRequest.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 ListProtectionPoliciesRequest.Builder opcRequestId(String opcRequestId)
Unique identifier for the request.- Parameters:
opcRequestId
- the value to set- Returns:
- this builder instance
-
invocationCallback
public ListProtectionPoliciesRequest.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 ListProtectionPoliciesRequest.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 ListProtectionPoliciesRequest.Builder copy(ListProtectionPoliciesRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<ListProtectionPoliciesRequest,Void>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public ListProtectionPoliciesRequest build()
Build the instance of ListProtectionPoliciesRequest 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<ListProtectionPoliciesRequest,Void>
- Returns:
- instance of ListProtectionPoliciesRequest
-
buildWithoutInvocationCallback
public ListProtectionPoliciesRequest buildWithoutInvocationCallback()
Build the instance of ListProtectionPoliciesRequest 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 ListProtectionPoliciesRequest
-
-