Class GetComputedUsageRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.onesubscription.requests.GetComputedUsageRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<GetComputedUsageRequest,Void>
- Enclosing class:
- GetComputedUsageRequest
public static class GetComputedUsageRequest.Builder extends Object implements BmcRequest.Builder<GetComputedUsageRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetComputedUsageRequest
build()
Build the instance of GetComputedUsageRequest as configured by this builderGetComputedUsageRequest
buildWithoutInvocationCallback()
Build the instance of GetComputedUsageRequest as configured by this builderGetComputedUsageRequest.Builder
compartmentId(String compartmentId)
The OCID of the root compartment.GetComputedUsageRequest.Builder
computedUsageId(String computedUsageId)
The Computed Usage IdGetComputedUsageRequest.Builder
copy(GetComputedUsageRequest o)
Copy method to populate the builder with values from the given instance.GetComputedUsageRequest.Builder
fields(String singularValue)
Singular setter.GetComputedUsageRequest.Builder
fields(List<String> fields)
Partial response refers to an optimization technique offered by the RESTful web APIs to return only the information (fields) required by the client.GetComputedUsageRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.GetComputedUsageRequest.Builder
opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.GetComputedUsageRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.-
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
-
computedUsageId
public GetComputedUsageRequest.Builder computedUsageId(String computedUsageId)
The Computed Usage Id- Parameters:
computedUsageId
- the value to set- Returns:
- this builder instance
-
compartmentId
public GetComputedUsageRequest.Builder compartmentId(String compartmentId)
The OCID of the root compartment.- Parameters:
compartmentId
- the value to set- Returns:
- this builder instance
-
fields
public GetComputedUsageRequest.Builder fields(List<String> fields)
Partial response refers to an optimization technique offered by the RESTful web APIs to return only the information (fields) required by the client.This parameter is used to control what fields to return.
- Parameters:
fields
- the value to set- Returns:
- this builder instance
-
fields
public GetComputedUsageRequest.Builder fields(String singularValue)
Singular setter.Partial response refers to an optimization technique offered by the RESTful web APIs to return only the information (fields) required by the client. This parameter is used to control what fields to return.
- Parameters:
singularValue
- the singular value to set- Returns:
- this builder instance
-
opcRequestId
public GetComputedUsageRequest.Builder opcRequestId(String opcRequestId)
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
-
invocationCallback
public GetComputedUsageRequest.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 GetComputedUsageRequest.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 GetComputedUsageRequest.Builder copy(GetComputedUsageRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<GetComputedUsageRequest,Void>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public GetComputedUsageRequest build()
Build the instance of GetComputedUsageRequest 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<GetComputedUsageRequest,Void>
- Returns:
- instance of GetComputedUsageRequest
-
buildWithoutInvocationCallback
public GetComputedUsageRequest buildWithoutInvocationCallback()
Build the instance of GetComputedUsageRequest 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 GetComputedUsageRequest
-
-