Class ListKeysRequest.Builder
- java.lang.Object
- 
- com.oracle.bmc.keymanagement.requests.ListKeysRequest.Builder
 
- 
- All Implemented Interfaces:
- BmcRequest.Builder<ListKeysRequest,Void>
 - Enclosing class:
- ListKeysRequest
 
 public static class ListKeysRequest.Builder extends Object implements BmcRequest.Builder<ListKeysRequest,Void> 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ListKeysRequest.Builderalgorithm(ListKeysRequest.Algorithm algorithm)The algorithm used by a key’s key versions to encrypt or decrypt data.ListKeysRequestbuild()Build the instance of ListKeysRequest as configured by this builderListKeysRequestbuildWithoutInvocationCallback()Build the instance of ListKeysRequest as configured by this builderListKeysRequest.BuildercompartmentId(String compartmentId)The OCID of the compartment.ListKeysRequest.Buildercopy(ListKeysRequest o)Copy method to populate the builder with values from the given instance.ListKeysRequest.BuildercurveId(ListKeysRequest.CurveId curveId)The curve ID of the keys.ListKeysRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.ListKeysRequest.Builderlength(Integer length)The length of the key in bytes, expressed as an integer.ListKeysRequest.Builderlimit(Integer limit)The maximum number of items to return in a paginated “List” call.ListKeysRequest.BuilderopcRequestId(String opcRequestId)Unique identifier for the request.ListKeysRequest.Builderpage(String page)The value of the opc-next-page response header from the previous “List” call.ListKeysRequest.BuilderprotectionMode(ListKeysRequest.ProtectionMode protectionMode)A key’s protection mode indicates how the key persists and where cryptographic operations that use the key are performed.ListKeysRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.ListKeysRequest.BuildersortBy(ListKeysRequest.SortBy sortBy)The field to sort by.ListKeysRequest.BuildersortOrder(ListKeysRequest.SortOrder sortOrder)The sort order to use, either ascending (ASC) or descending (DESC).- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.oracle.bmc.requests.BmcRequest.Builderbody$
 
- 
 
- 
- 
- 
Method Detail- 
compartmentIdpublic ListKeysRequest.Builder compartmentId(String compartmentId) The OCID of the compartment.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder instance
 
 - 
limitpublic ListKeysRequest.Builder limit(Integer limit) The maximum number of items to return in a paginated “List” call.- Parameters:
- limit- the value to set
- Returns:
- this builder instance
 
 - 
pagepublic ListKeysRequest.Builder page(String page) The value of the opc-next-page response header from the previous “List” call.- Parameters:
- page- the value to set
- Returns:
- this builder instance
 
 - 
opcRequestIdpublic ListKeysRequest.Builder opcRequestId(String opcRequestId) Unique identifier for the request.If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service. - Parameters:
- opcRequestId- the value to set
- Returns:
- this builder instance
 
 - 
sortBypublic ListKeysRequest.Builder sortBy(ListKeysRequest.SortBy sortBy) The field to sort by.You can specify only one sort order. The default order for TIMECREATED is descending. The default order for DISPLAYNAME is ascending. - Parameters:
- sortBy- the value to set
- Returns:
- this builder instance
 
 - 
sortOrderpublic ListKeysRequest.Builder sortOrder(ListKeysRequest.SortOrder sortOrder) The sort order to use, either ascending (ASC) or descending (DESC).- Parameters:
- sortOrder- the value to set
- Returns:
- this builder instance
 
 - 
protectionModepublic ListKeysRequest.Builder protectionMode(ListKeysRequest.ProtectionMode protectionMode) A key’s protection mode indicates how the key persists and where cryptographic operations that use the key are performed.A protection mode of HSM means that the key persists on a hardware security module (HSM) and all cryptographic operations are performed inside the HSM. A protection mode of SOFTWARE means that the key persists on the server, protected by the vault’s RSA wrapping key which persists on the HSM. All cryptographic operations that use a key with a protection mode of SOFTWARE are performed on the server. A protection mode of EXTERNAL mean that the key persists on the customer’s external key manager which is hosted externally outside of oracle. Oracle only hold a reference to that key. All cryptographic operations that use a key with a protection mode of EXTERNAL are performed by external key manager. - Parameters:
- protectionMode- the value to set
- Returns:
- this builder instance
 
 - 
algorithmpublic ListKeysRequest.Builder algorithm(ListKeysRequest.Algorithm algorithm) The algorithm used by a key’s key versions to encrypt or decrypt data.Currently, support includes AES, RSA, and ECDSA algorithms. - Parameters:
- algorithm- the value to set
- Returns:
- this builder instance
 
 - 
lengthpublic ListKeysRequest.Builder length(Integer length) The length of the key in bytes, expressed as an integer.Supported values include 16, 24, or 32. - Parameters:
- length- the value to set
- Returns:
- this builder instance
 
 - 
curveIdpublic ListKeysRequest.Builder curveId(ListKeysRequest.CurveId curveId) The curve ID of the keys.(This pertains only to ECDSA keys.) - Parameters:
- curveId- the value to set
- Returns:
- this builder instance
 
 - 
invocationCallbackpublic ListKeysRequest.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
 
 - 
retryConfigurationpublic ListKeysRequest.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
 
 - 
copypublic ListKeysRequest.Builder copy(ListKeysRequest o) Copy method to populate the builder with values from the given instance.- Specified by:
- copyin interface- BmcRequest.Builder<ListKeysRequest,Void>
- Parameters:
- o- other request from which to copy values
- Returns:
- this builder instance
 
 - 
buildpublic ListKeysRequest build() Build the instance of ListKeysRequest 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 interface- BmcRequest.Builder<ListKeysRequest,Void>
- Returns:
- instance of ListKeysRequest
 
 - 
buildWithoutInvocationCallbackpublic ListKeysRequest buildWithoutInvocationCallback() Build the instance of ListKeysRequest 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 ListKeysRequest
 
 
- 
 
-