Class ListCustomProtectionRulesRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.waas.requests.ListCustomProtectionRulesRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListCustomProtectionRulesRequest,Void>
- Enclosing class:
- ListCustomProtectionRulesRequest
public static class ListCustomProtectionRulesRequest.Builder extends Object implements BmcRequest.Builder<ListCustomProtectionRulesRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListCustomProtectionRulesRequest
build()
Build the instance of ListCustomProtectionRulesRequest as configured by this builderListCustomProtectionRulesRequest
buildWithoutInvocationCallback()
Build the instance of ListCustomProtectionRulesRequest as configured by this builderListCustomProtectionRulesRequest.Builder
compartmentId(String compartmentId)
The OCID of the compartment.ListCustomProtectionRulesRequest.Builder
copy(ListCustomProtectionRulesRequest o)
Copy method to populate the builder with values from the given instance.ListCustomProtectionRulesRequest.Builder
displayName(String singularValue)
Singular setter.ListCustomProtectionRulesRequest.Builder
displayName(List<String> displayName)
Filter custom protection rules using a list of display names.ListCustomProtectionRulesRequest.Builder
id(String singularValue)
Singular setter.ListCustomProtectionRulesRequest.Builder
id(List<String> id)
Filter custom protection rules using a list of custom protection rule OCIDs.ListCustomProtectionRulesRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.ListCustomProtectionRulesRequest.Builder
lifecycleState(LifecycleStates singularValue)
Singular setter.ListCustomProtectionRulesRequest.Builder
lifecycleState(List<LifecycleStates> lifecycleState)
Filter Custom Protection rules using a list of lifecycle states.ListCustomProtectionRulesRequest.Builder
limit(Integer limit)
The maximum number of items to return in a paginated call.ListCustomProtectionRulesRequest.Builder
opcRequestId(String opcRequestId)
The unique Oracle-assigned identifier for the request.ListCustomProtectionRulesRequest.Builder
page(String page)
The value of the opc-next-page response header from the previous paginated call.ListCustomProtectionRulesRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.ListCustomProtectionRulesRequest.Builder
sortBy(ListCustomProtectionRulesRequest.SortBy sortBy)
The value by which custom protection rules are sorted in a paginated ‘List’ call.ListCustomProtectionRulesRequest.Builder
sortOrder(ListCustomProtectionRulesRequest.SortOrder sortOrder)
The value of the sorting direction of resources in a paginated ‘List’ call.ListCustomProtectionRulesRequest.Builder
timeCreatedGreaterThanOrEqualTo(Date timeCreatedGreaterThanOrEqualTo)
A filter that matches Custom Protection rules created on or after the specified date-time.ListCustomProtectionRulesRequest.Builder
timeCreatedLessThan(Date timeCreatedLessThan)
A filter that matches custom protection rules created before the specified date-time.-
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 ListCustomProtectionRulesRequest.Builder compartmentId(String compartmentId)
The OCID of the compartment.This number is generated when the compartment is created.
- Parameters:
compartmentId
- the value to set- Returns:
- this builder instance
-
opcRequestId
public ListCustomProtectionRulesRequest.Builder opcRequestId(String opcRequestId)
The unique Oracle-assigned identifier for the request.If you need to contact Oracle about a particular request, please provide the request ID.
- Parameters:
opcRequestId
- the value to set- Returns:
- this builder instance
-
limit
public ListCustomProtectionRulesRequest.Builder limit(Integer limit)
The maximum number of items to return in a paginated call.If unspecified, defaults to 10.
- Parameters:
limit
- the value to set- Returns:
- this builder instance
-
page
public ListCustomProtectionRulesRequest.Builder page(String page)
The value of the opc-next-page response header from the previous paginated call.- Parameters:
page
- the value to set- Returns:
- this builder instance
-
sortBy
public ListCustomProtectionRulesRequest.Builder sortBy(ListCustomProtectionRulesRequest.SortBy sortBy)
The value by which custom protection rules are sorted in a paginated ‘List’ call.If unspecified, defaults to timeCreated.
- Parameters:
sortBy
- the value to set- Returns:
- this builder instance
-
sortOrder
public ListCustomProtectionRulesRequest.Builder sortOrder(ListCustomProtectionRulesRequest.SortOrder sortOrder)
The value of the sorting direction of resources in a paginated ‘List’ call.If unspecified, defaults to DESC.
- Parameters:
sortOrder
- the value to set- Returns:
- this builder instance
-
id
public ListCustomProtectionRulesRequest.Builder id(List<String> id)
Filter custom protection rules using a list of custom protection rule OCIDs.- Parameters:
id
- the value to set- Returns:
- this builder instance
-
id
public ListCustomProtectionRulesRequest.Builder id(String singularValue)
Singular setter.Filter custom protection rules using a list of custom protection rule OCIDs.
- Parameters:
singularValue
- the singular value to set- Returns:
- this builder instance
-
displayName
public ListCustomProtectionRulesRequest.Builder displayName(List<String> displayName)
Filter custom protection rules using a list of display names.- Parameters:
displayName
- the value to set- Returns:
- this builder instance
-
displayName
public ListCustomProtectionRulesRequest.Builder displayName(String singularValue)
Singular setter.Filter custom protection rules using a list of display names.
- Parameters:
singularValue
- the singular value to set- Returns:
- this builder instance
-
lifecycleState
public ListCustomProtectionRulesRequest.Builder lifecycleState(List<LifecycleStates> lifecycleState)
Filter Custom Protection rules using a list of lifecycle states.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder instance
-
lifecycleState
public ListCustomProtectionRulesRequest.Builder lifecycleState(LifecycleStates singularValue)
Singular setter.Filter Custom Protection rules using a list of lifecycle states.
- Parameters:
singularValue
- the singular value to set- Returns:
- this builder instance
-
timeCreatedGreaterThanOrEqualTo
public ListCustomProtectionRulesRequest.Builder timeCreatedGreaterThanOrEqualTo(Date timeCreatedGreaterThanOrEqualTo)
A filter that matches Custom Protection rules created on or after the specified date-time.- Parameters:
timeCreatedGreaterThanOrEqualTo
- the value to set- Returns:
- this builder instance
-
timeCreatedLessThan
public ListCustomProtectionRulesRequest.Builder timeCreatedLessThan(Date timeCreatedLessThan)
A filter that matches custom protection rules created before the specified date-time.- Parameters:
timeCreatedLessThan
- the value to set- Returns:
- this builder instance
-
invocationCallback
public ListCustomProtectionRulesRequest.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 ListCustomProtectionRulesRequest.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 ListCustomProtectionRulesRequest.Builder copy(ListCustomProtectionRulesRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<ListCustomProtectionRulesRequest,Void>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public ListCustomProtectionRulesRequest build()
Build the instance of ListCustomProtectionRulesRequest 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<ListCustomProtectionRulesRequest,Void>
- Returns:
- instance of ListCustomProtectionRulesRequest
-
buildWithoutInvocationCallback
public ListCustomProtectionRulesRequest buildWithoutInvocationCallback()
Build the instance of ListCustomProtectionRulesRequest 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 ListCustomProtectionRulesRequest
-
-