Package com.oracle.bmc.budget.requests
Class UpdateCostAnomalyEventRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.budget.requests.UpdateCostAnomalyEventRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<UpdateCostAnomalyEventRequest,UpdateCostAnomalyEventDetails>
- Enclosing class:
- UpdateCostAnomalyEventRequest
public static class UpdateCostAnomalyEventRequest.Builder extends Object implements BmcRequest.Builder<UpdateCostAnomalyEventRequest,UpdateCostAnomalyEventDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateCostAnomalyEventRequest.Builderbody$(UpdateCostAnomalyEventDetails body)Alternative setter for the body parameter.UpdateCostAnomalyEventRequestbuild()Build the instance of UpdateCostAnomalyEventRequest as configured by this builderUpdateCostAnomalyEventRequestbuildWithoutInvocationCallback()Build the instance of UpdateCostAnomalyEventRequest as configured by this builderUpdateCostAnomalyEventRequest.Buildercopy(UpdateCostAnomalyEventRequest o)Copy method to populate the builder with values from the given instance.UpdateCostAnomalyEventRequest.BuildercostAnomalyEventId(String costAnomalyEventId)The unique costAnomalyEventId OCID.UpdateCostAnomalyEventRequest.BuilderifMatch(String ifMatch)For optimistic concurrency control.UpdateCostAnomalyEventRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.UpdateCostAnomalyEventRequest.BuilderopcRequestId(String opcRequestId)The client request ID for tracing.UpdateCostAnomalyEventRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.UpdateCostAnomalyEventRequest.BuilderupdateCostAnomalyEventDetails(UpdateCostAnomalyEventDetails updateCostAnomalyEventDetails)The information to be updated.
-
-
-
Method Detail
-
costAnomalyEventId
public UpdateCostAnomalyEventRequest.Builder costAnomalyEventId(String costAnomalyEventId)
The unique costAnomalyEventId OCID.- Parameters:
costAnomalyEventId- the value to set- Returns:
- this builder instance
-
updateCostAnomalyEventDetails
public UpdateCostAnomalyEventRequest.Builder updateCostAnomalyEventDetails(UpdateCostAnomalyEventDetails updateCostAnomalyEventDetails)
The information to be updated.- Parameters:
updateCostAnomalyEventDetails- the value to set- Returns:
- this builder instance
-
ifMatch
public UpdateCostAnomalyEventRequest.Builder ifMatch(String ifMatch)
For optimistic concurrency control.In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value.
- Parameters:
ifMatch- the value to set- Returns:
- this builder instance
-
opcRequestId
public UpdateCostAnomalyEventRequest.Builder opcRequestId(String opcRequestId)
The client request ID for tracing.- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
invocationCallback
public UpdateCostAnomalyEventRequest.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 UpdateCostAnomalyEventRequest.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 UpdateCostAnomalyEventRequest.Builder copy(UpdateCostAnomalyEventRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<UpdateCostAnomalyEventRequest,UpdateCostAnomalyEventDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public UpdateCostAnomalyEventRequest build()
Build the instance of UpdateCostAnomalyEventRequest 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<UpdateCostAnomalyEventRequest,UpdateCostAnomalyEventDetails>- Returns:
- instance of UpdateCostAnomalyEventRequest
-
body$
public UpdateCostAnomalyEventRequest.Builder body$(UpdateCostAnomalyEventDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<UpdateCostAnomalyEventRequest,UpdateCostAnomalyEventDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public UpdateCostAnomalyEventRequest buildWithoutInvocationCallback()
Build the instance of UpdateCostAnomalyEventRequest 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 UpdateCostAnomalyEventRequest
-
-