Class GetCommitmentRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.osubsubscription.requests.GetCommitmentRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<GetCommitmentRequest,Void>
- Enclosing class:
- GetCommitmentRequest
public static class GetCommitmentRequest.Builder extends Object implements BmcRequest.Builder<GetCommitmentRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetCommitmentRequestbuild()Build the instance of GetCommitmentRequest as configured by this builderGetCommitmentRequestbuildWithoutInvocationCallback()Build the instance of GetCommitmentRequest as configured by this builderGetCommitmentRequest.BuildercommitmentId(String commitmentId)The Commitment IdGetCommitmentRequest.Buildercopy(GetCommitmentRequest o)Copy method to populate the builder with values from the given instance.GetCommitmentRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.GetCommitmentRequest.BuilderopcRequestId(String opcRequestId)Unique Oracle-assigned identifier for the request.GetCommitmentRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.GetCommitmentRequest.BuilderxOneGatewaySubscriptionId(String xOneGatewaySubscriptionId)This header is meant to be used only for internal purposes and will be ignored on any public request.GetCommitmentRequest.BuilderxOneOriginRegion(String xOneOriginRegion)The OCI home region name in case home region is not us-ashburn-1 (IAD), e.g.-
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
-
commitmentId
public GetCommitmentRequest.Builder commitmentId(String commitmentId)
The Commitment Id- Parameters:
commitmentId- the value to set- Returns:
- this builder instance
-
opcRequestId
public GetCommitmentRequest.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
-
xOneGatewaySubscriptionId
public GetCommitmentRequest.Builder xOneGatewaySubscriptionId(String xOneGatewaySubscriptionId)
This header is meant to be used only for internal purposes and will be ignored on any public request.The purpose of this header is to help on Gateway to API calls identification.
- Parameters:
xOneGatewaySubscriptionId- the value to set- Returns:
- this builder instance
-
xOneOriginRegion
public GetCommitmentRequest.Builder xOneOriginRegion(String xOneOriginRegion)
The OCI home region name in case home region is not us-ashburn-1 (IAD), e.g.ap-mumbai-1, us-phoenix-1 etc.
- Parameters:
xOneOriginRegion- the value to set- Returns:
- this builder instance
-
invocationCallback
public GetCommitmentRequest.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 GetCommitmentRequest.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 GetCommitmentRequest.Builder copy(GetCommitmentRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<GetCommitmentRequest,Void>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public GetCommitmentRequest build()
Build the instance of GetCommitmentRequest 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<GetCommitmentRequest,Void>- Returns:
- instance of GetCommitmentRequest
-
buildWithoutInvocationCallback
public GetCommitmentRequest buildWithoutInvocationCallback()
Build the instance of GetCommitmentRequest 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 GetCommitmentRequest
-
-