Class AddServiceRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.dif.requests.AddServiceRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<AddServiceRequest,AddServiceDetails>
- Enclosing class:
- AddServiceRequest
public static class AddServiceRequest.Builder extends Object implements BmcRequest.Builder<AddServiceRequest,AddServiceDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddServiceRequest.BuilderaddServiceDetails(AddServiceDetails addServiceDetails)The information to be updated.AddServiceRequest.Builderbody$(AddServiceDetails body)Alternative setter for the body parameter.AddServiceRequestbuild()Build the instance of AddServiceRequest as configured by this builderAddServiceRequestbuildWithoutInvocationCallback()Build the instance of AddServiceRequest as configured by this builderAddServiceRequest.Buildercopy(AddServiceRequest o)Copy method to populate the builder with values from the given instance.AddServiceRequest.BuilderifMatch(String ifMatch)For optimistic concurrency control.AddServiceRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.AddServiceRequest.BuilderopcRequestId(String opcRequestId)Unique Oracle-assigned identifier for the request.AddServiceRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.AddServiceRequest.BuilderstackId(String stackId)The OCID of the Stack.
-
-
-
Method Detail
-
stackId
public AddServiceRequest.Builder stackId(String stackId)
The OCID of the Stack.- Parameters:
stackId- the value to set- Returns:
- this builder instance
-
addServiceDetails
public AddServiceRequest.Builder addServiceDetails(AddServiceDetails addServiceDetails)
The information to be updated.- Parameters:
addServiceDetails- the value to set- Returns:
- this builder instance
-
ifMatch
public AddServiceRequest.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 AddServiceRequest.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. The only valid characters for request IDs are letters, numbers, underscore, and dash.
- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
invocationCallback
public AddServiceRequest.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 AddServiceRequest.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 AddServiceRequest.Builder copy(AddServiceRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<AddServiceRequest,AddServiceDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public AddServiceRequest build()
Build the instance of AddServiceRequest 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<AddServiceRequest,AddServiceDetails>- Returns:
- instance of AddServiceRequest
-
body$
public AddServiceRequest.Builder body$(AddServiceDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<AddServiceRequest,AddServiceDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public AddServiceRequest buildWithoutInvocationCallback()
Build the instance of AddServiceRequest 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 AddServiceRequest
-
-